Skip to content

Commit 51d329a

Browse files
author
songzou
committed
first commit
0 parents  commit 51d329a

File tree

9 files changed

+1017
-0
lines changed

9 files changed

+1017
-0
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.DS_Store
2+
phpunit.phar
3+
/vendor
4+
composer.phar
5+
composer.lock
6+
*.project
7+
.idea/

LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015 Jens Segers
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
laravel-admin-ext/media-manager
2+
===============================
3+
4+
Media manager for `local` disk.
5+
6+
7+
## Installation
8+
9+
```
10+
$ composer require laravel-admin-ext/media-manager -vvv
11+
12+
```
13+
14+
Open `app/Providers/AppServiceProvider.php`, and call the `MediaManager::boot` method within the `boot` method:
15+
16+
```php
17+
<?php
18+
19+
namespace App\Providers;
20+
21+
use Encore\Admin\Media\MediaManager;
22+
use Illuminate\Support\ServiceProvider;
23+
24+
class AppServiceProvider extends ServiceProvider
25+
{
26+
public function boot()
27+
{
28+
MediaManager::boot();
29+
}
30+
}
31+
```
32+
33+
At last run:
34+
35+
```
36+
$ php artisan admin:import media-manager
37+
```
38+
39+
Add a disk
40+
41+
Finally open `http://localhost/admin/media`.
42+
43+
License
44+
------------
45+
Licensed under [The MIT License (MIT)](LICENSE).

composer.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"name": "laravel-admin-ext/media-manager",
3+
"description": "Media manager for laravel",
4+
"type": "library",
5+
"keywords": ["laravel-admin", "media", "manager"],
6+
"homepage": "https://github.com/laravel-admin-extensions/media-manager",
7+
"license": "MIT",
8+
"authors": [
9+
{
10+
"name": "z-song",
11+
"email": "[email protected]"
12+
}
13+
],
14+
"require": {
15+
"php": ">=7.0.0",
16+
"laravel/framework": "5.5.*",
17+
"encore/laravel-admin": "1.5.*"
18+
},
19+
"require-dev": {
20+
"phpunit/phpunit": "~6.0",
21+
"laravel/laravel": "5.*"
22+
},
23+
"autoload": {
24+
"psr-4": {
25+
"Encore\\Admin\\Media\\": "src/"
26+
}
27+
},
28+
"extra": {
29+
"laravel": {
30+
"providers": [
31+
"Encore\\Admin\\Media\\MediaServiceProvider"
32+
]
33+
34+
}
35+
}
36+
}

0 commit comments

Comments
 (0)