File tree Expand file tree Collapse file tree 3 files changed +50
-1
lines changed
Expand file tree Collapse file tree 3 files changed +50
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ public function handle()
1919 $ this ->comment ('Publishing Waterline Assets... ' );
2020 $ this ->callSilent ('vendor:publish ' , ['--tag ' => 'waterline-assets ' ]);
2121
22+ $ this ->comment ('Publishing Waterline Configuration... ' );
23+ $ this ->callSilent ('vendor:publish ' , ['--tag ' => 'waterline-config ' ]);
24+
2225 $ this ->registerWaterlineServiceProvider ();
2326
2427 $ this ->info ('Waterline installed successfully. ' );
Original file line number Diff line number Diff line change @@ -71,6 +71,10 @@ protected function offerPublishing()
7171 $ this ->publishes ([
7272 __DIR__ .'/Providers/WaterlineServiceProvider.stub ' => app_path ('Providers/WaterlineServiceProvider.php ' ),
7373 ], 'waterline-provider ' );
74+
75+ $ this ->publishes ([
76+ __DIR__ .'/../config/waterline.php ' => config_path ('waterline.php ' ),
77+ ], 'waterline-config ' );
7478 }
7579 }
7680
@@ -100,5 +104,4 @@ public function register()
100104 define ('WATERLINE_PATH ' , realpath (__DIR__ .'/../ ' ));
101105 }
102106 }
103-
104107}
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ return [
4+
5+ /*
6+ |--------------------------------------------------------------------------
7+ | Waterline Domain
8+ |--------------------------------------------------------------------------
9+ |
10+ | This is the subdomain where Waterline will be accessible from. If this
11+ | setting is null, Waterline will reside under the same domain as the
12+ | application. Otherwise, this value will serve as the subdomain.
13+ |
14+ */
15+
16+ 'domain ' => env ('WATERLINE_DOMAIN ' ),
17+
18+ /*
19+ |--------------------------------------------------------------------------
20+ | Waterline Path
21+ |--------------------------------------------------------------------------
22+ |
23+ | This is the URI path where Waterline will be accessible from. Feel free
24+ | to change this path to anything you like. Note that the URI will not
25+ | affect the paths of its internal API that aren't exposed to users.
26+ |
27+ */
28+
29+ 'path ' => env ('WATERLINE_PATH ' , 'waterline ' ),
30+
31+ /*
32+ |--------------------------------------------------------------------------
33+ | Waterline Route Middleware
34+ |--------------------------------------------------------------------------
35+ |
36+ | These middleware will get attached onto each Waterline route, giving you
37+ | the chance to add your own middleware to this list or change any of
38+ | the existing middleware. Or, you can simply stick with this list.
39+ |
40+ */
41+
42+ 'middleware ' => ['web ' ],
43+ ];
You can’t perform that action at this time.
0 commit comments