This repository was archived by the owner on Aug 10, 2021. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33namespace Kordy \Ticketit \Seeds ;
44
55use Illuminate \Database \Seeder ;
6+ use Kordy \Ticketit \Helpers \LaravelVersion ;
67use Kordy \Ticketit \Models \Setting ;
78
89class SettingsTableSeeder extends Seeder
@@ -99,9 +100,9 @@ public function getDefaults()
99100
100101 /*
101102 * Switches between bootstrap 3 and 4
102- * Default: 3
103+ * Default: 3 for <L5.6, 4 for >=L5.6
103104 */
104- 'bootstrap_version ' => '3 ' ,
105+ 'bootstrap_version ' => LaravelVersion:: min ( ' 5.6 ' ) ? ' 4 ' : '3 ' ,
105106
106107 /*
107108 * Template adherence: The email blade template to be extended
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ public function boot()
156156 || Request::path () == 'tickets-admin '
157157 || (isset ($ _SERVER ['ARTISAN_TICKETIT_INSTALLING ' ]) && $ _SERVER ['ARTISAN_TICKETIT_INSTALLING ' ])) {
158158 $ this ->loadTranslationsFrom (__DIR__ .'/Translations ' , 'ticketit ' );
159- $ this ->loadViewsFrom (__DIR__ .'/Views ' , 'ticketit ' );
159+ $ this ->loadViewsFrom (__DIR__ .'/Views/bootstrap3 ' , 'ticketit ' );
160160 $ this ->publishes ([__DIR__ .'/Migrations ' => base_path ('database/migrations ' )], 'db ' );
161161
162162 $ authMiddleware = Helpers \LaravelVersion::authMiddleware ();
You can’t perform that action at this time.
0 commit comments