Skip to content

Commit 99ed4c0

Browse files
authored
Merge pull request #99 from zzzaaa/master
Abbility to change default action
2 parents 9ff2669 + 4986dab commit 99ed4c0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/Config/quickadmin.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
'route' => 'admin',
2020
// Default home route
2121
'homeRoute' => 'admin',
22+
23+
//Default home action
24+
// 'homeAction' => '\App\Http\Controllers\MyOwnController@index',
2225
// Default role to access users and CRUD
2326
'defaultRole' => 1
2427

src/routes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
'middleware' => ['web', 'auth']
4545
], function () {
4646
// Dashboard home page route
47-
Route::get(config('quickadmin.homeRoute'), 'QuickadminController@index');
47+
Route::get(config('quickadmin.homeRoute'), config('quickadmin.homeAction','QuickadminController@index'));
4848
Route::group([
4949
'middleware' => 'role'
5050
], function () {

0 commit comments

Comments
 (0)