Skip to content

Commit 23ace06

Browse files
authored
Update README.md
1 parent 63a788e commit 23ace06

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ It is important to note that if you use your own routes **you must protect your
2727
If, for example, you want to ensure that only logged in users have the ability to access the Laravel-Filemanager, simply wrap the routes in a group, perhaps like this:
2828

2929
```php
30-
Route::group(array('before' => 'auth'), function ()
31-
{
30+
Route::group(['before' => 'auth'], function () {
3231
Route::get('/laravel-filemanager', '\Unisharp\Laravelfilemanager\controllers\LfmController@show');
3332
Route::post('/laravel-filemanager/upload', '\Unisharp\Laravelfilemanager\controllers\LfmController@upload');
3433
// list all lfm routes here...

0 commit comments

Comments
 (0)