File tree 3 files changed +20
-2
lines changed
3 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 26
26
27
27
'prefix ' => 'database ' ,
28
28
29
+ /*
30
+ |-------------------------------------------------------------
31
+ | Database Driver
32
+ |-------------------------------------------------------------
33
+ |
34
+ |
35
+ */
36
+
37
+ 'driver ' => 'mysql ' ,
38
+
29
39
/*
30
40
|-------------------------------------------------------------
31
41
| Global namespace
Original file line number Diff line number Diff line change @@ -84,6 +84,14 @@ public function handle(Filesystem $filesystem)
84
84
$ process ->setTimeout (null ); // Setting timeout to null to prevent installation from stopping at a certain point in time
85
85
$ process ->setWorkingDirectory (base_path ())->run ();
86
86
87
+ // Modify auth api driver token to passport
88
+ $ auth_config_contents = $ filesystem ->get (base_path ('config/auth.php ' ));
89
+ $ auth_config_contents = str_replace ('\'token \'' , '\'passport \'' , $ auth_config_contents );
90
+ $ filesystem ->put (
91
+ base_path ('config/auth.php ' ),
92
+ $ auth_config_contents
93
+ );
94
+
87
95
// Load Custom Database Manager routes into application's 'routes/web.php'
88
96
$ this ->info ('Adding Database Manager routes ' );
89
97
$ web_routes_contents = $ filesystem ->get (base_path ('routes/web.php ' ));
Original file line number Diff line number Diff line change 3
3
if (! function_exists ('dbm_asset ' )) {
4
4
function dbm_asset ($ path , $ secure = null )
5
5
{
6
- return route ( 'dbm.asset ' ).'?path= ' .urlencode ($ path );
6
+ return url ( config ( 'dbm.prefix ' ).'/assets ?path= ' .urlencode ($ path) );
7
7
}
8
8
}
9
9
10
10
if (! function_exists ('dbm_driver ' )) {
11
11
function dbm_driver ()
12
12
{
13
- return ( config ('database.default ' ) != '' ) ? config ( ' database.default ' ) : ' mysql ' ;
13
+ return config ('dbm.driver ' , ' mysql ') ;
14
14
}
15
15
}
16
16
You can’t perform that action at this time.
0 commit comments