Skip to content

Commit fd168d8

Browse files
committed
update documents
1 parent 777f41f commit fd168d8

File tree

4 files changed

+25
-13
lines changed

4 files changed

+25
-13
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ This approach ensures that only authenticated users have access to the Laravel-F
7676
* [x] (done) Bootstrap 4 support
7777
* [x] (done) Remove bootbox
7878
* [ ] Documents for v2.0
79+
* [x] (done) Resize function RWD refactor
80+
* [ ] ConfigHandler should overwrite most configs
81+
* [ ] Events should pass object instead of only file path
7982

8083

8184
## Contributors & Credits

docs/installation.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
* requires [intervention/image](https://github.com/Intervention/image) (to make thumbs, crop and resize images).
88

99
## Installation
10-
1. Install package
10+
1. Install package
1111

1212
```bash
1313
composer require unisharp/laravel-filemanager:~1.8
1414
```
1515

1616
1. Edit `config/app.php` :
1717

18-
\* *For Laravel 5.5 and up, skip to step 3. All service providers and facades are automatically discovered.*
18+
\* *For Laravel 5.5 and up, skip to step 3. All service providers and facades are automatically discovered.*
1919

2020
Add service providers
2121

@@ -35,7 +35,12 @@
3535

3636
1. (Alpha version only) Edit `routes/web.php` :
3737

38-
Create route group to wrap package routes
38+
Create route group to wrap package routes.
39+
40+
Make sure `auth` middleware is present to :
41+
42+
1. prevent unauthorized uploads
43+
1. properly work with multi-user mode
3944

4045
```php
4146
Route::group(['prefix' => 'laravel-filemanager', 'middleware' => ['web', 'auth']], function () {
@@ -49,17 +54,17 @@
4954
php artisan vendor:publish --tag=lfm_config
5055
php artisan vendor:publish --tag=lfm_public
5156
```
52-
57+
5358
1. Run commands to clear cache :
54-
59+
5560
```bash
5661
php artisan route:clear
5762
php artisan config:clear
5863
```
59-
64+
6065
1. Ensure that the files & images directories (in `config/lfm.php`) are writable by your web server (run commands like `chown` or `chmod`).
6166
62-
1. Create symbolic link :
67+
1. Create symbolic link :
6368
6469
```bash
6570
php artisan storage:link

docs/upgrade.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
## Upgrade instructions
22

33
1. Please backup your own `config/lfm.php` before upgrading.
4-
4+
55
1. Run commands:
66

77
```bash
88
composer update unisharp/laravel-filemanager
9-
9+
1010
php artisan vendor:publish --tag=lfm_view --force
1111
php artisan vendor:publish --tag=lfm_public --force
1212
php artisan vendor:publish --tag=lfm_config --force
13-
13+
1414
php artisan route:clear
1515
php artisan config:clear
1616
```
17-
17+
1818
1. Clear browser cache if page is broken after upgrading.
1919

20+
## Errors with namespace
21+
We have changed namespace from `Unisharp` to `UniSharp`, and change the first character of every namespace into capital.
22+
23+
If you are updating this package and encounter any errors like `Class not found`, please remove this package entirely and reinstall again.

src/LaravelFilemanagerServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ public function boot()
3535
$this->publishes([
3636
__DIR__.'/Handlers/LfmConfigHandler.php' => base_path('app/Handlers/LfmConfigHandler.php'),
3737
], 'lfm_handler');
38-
39-
if(config('lfm.use_package_routes')) {
38+
39+
if (config('lfm.use_package_routes')) {
4040
\UniSharp\LaravelFilemanager\Lfm::routes();
4141
}
4242
}

0 commit comments

Comments
 (0)