Skip to content
This repository was archived by the owner on Aug 10, 2021. It is now read-only.

Commit 2913231

Browse files
committed
Fix #466
1 parent 4b644c9 commit 2913231

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/Seeds/SettingsTableSeeder.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Kordy\Ticketit\Seeds;
44

55
use Illuminate\Database\Seeder;
6+
use Kordy\Ticketit\Helpers\LaravelVersion;
67
use Kordy\Ticketit\Models\Setting;
78

89
class 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

src/TicketitServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)