Skip to content

Commit 556f556

Browse files
authored
Merge pull request #157 from pderiy/master
fix route caching problem
2 parents b44b264 + 51389d2 commit 556f556

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

src/controllers/DemoController.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php namespace Unisharp\Laravelfilemanager\controllers;
2+
3+
/**
4+
* Class DemoController
5+
* @package Unisharp\Laravelfilemanager\controllers
6+
*/
7+
class DemoController extends LfmController
8+
{
9+
10+
/**
11+
* @return mixed
12+
*/
13+
public function index()
14+
{
15+
return view('laravel-filemanager::demo');
16+
}
17+
}

src/routes.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,5 @@
7777
'as' => 'getDelete'
7878
]);
7979

80-
Route::get('/demo', function () {
81-
return view('laravel-filemanager::demo');
82-
});
80+
Route::get('/demo', 'DemoController@index');
8381
});

0 commit comments

Comments
 (0)