diff --git a/.env.example b/.env.example index e1bf0707..950519e0 100644 --- a/.env.example +++ b/.env.example @@ -2,7 +2,7 @@ APP_ENV=production APP_DEBUG=false APP_URL= APP_CIPHER=AES-256-CBC -APP_KEY= +APP_KEY=base64:b+IDeKd6fuC3vhnP4pjIqtx4AG3pnYWrOQ9zO+w8gxo= APP_TIMEZONE= DB_TYPE=mysql diff --git a/app/Console/Commands/Install.php b/app/Console/Commands/Install.php index 1d0b643d..011d7337 100644 --- a/app/Console/Commands/Install.php +++ b/app/Console/Commands/Install.php @@ -99,7 +99,7 @@ class Install extends Command $user_data['is_parent'] = 1; $user_data['is_admin'] = 1; $user_data['is_registered'] = 1; - $user = User::create($user_data); + User::create($user_data); DB::commit(); $this->info('Admin User Successfully Created'); @@ -127,12 +127,12 @@ class Install extends Command // $a = " _ -// | | +// | | // /\ /\ ___ _ __ __| | __ _ _ __ // / \/ \ / _ \ '_ \ / _` |/ _' | '_ \ // / /\ /\ \ __/ | '-| (_| | (_| | | | | // /_/ \/ \_\___|_| \__,_|\__,_|_| |_| -// +// // "; $this->comment('Success! You can now run Attendize'); } diff --git a/app/Models/User.php b/app/Models/User.php index 7127fe43..ef558642 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -54,7 +54,8 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon 'is_registered', 'is_confirmed', 'is_parent', - 'remember_token' + 'remember_token', + 'is_admin' ]; /** diff --git a/config/app.php b/config/app.php index 747c6726..3ac3ebd7 100644 --- a/config/app.php +++ b/config/app.php @@ -13,7 +13,7 @@ return [ | */ - 'env' => env('APP_ENV', 'production'), + 'env' => env('APP_ENV', 'local'), /* |-------------------------------------------------------------------------- diff --git a/config/laravellocalization.php b/config/laravellocalization.php index aadc50cb..697fae80 100644 --- a/config/laravellocalization.php +++ b/config/laravellocalization.php @@ -42,7 +42,7 @@ return [ //'et' => ['name' => 'Estonian', 'script' => 'Latn', 'native' => 'eesti', 'regional' => 'et_EE'], //'na' => ['name' => 'Nauru', 'script' => 'Latn', 'native' => 'Ekakairũ Naoero', 'regional' => ''], //'guz' => ['name' => 'Ekegusii', 'script' => 'Latn', 'native' => 'Ekegusii', 'regional' => ''], - 'en' => ['name' => 'English', 'script' => 'Latn', 'native' => 'English', 'regional' => 'en_GB'], + 'en' => ['name' => 'English', 'script' => 'Latn', 'native' => 'English', 'regional' => 'en_GB'], //'en-AU' => ['name' => 'Australian English', 'script' => 'Latn', 'native' => 'Australian English', 'regional' => 'en_AU'], //'en-GB' => ['name' => 'British English', 'script' => 'Latn', 'native' => 'British English', 'regional' => 'en_GB'], //'en-US' => ['name' => 'U.S. English', 'script' => 'Latn', 'native' => 'U.S. English', 'regional' => 'en_US'], @@ -309,7 +309,7 @@ return [ // 'hideDefaultLocaleInURL' => false, - // If you want to display the locales in particular order in the language selector you should write the order here. + // If you want to display the locales in particular order in the language selector you should write the order here. //CAUTION: Please consider using the appropriate locale code otherwise it will not work //Example: 'localesOrder' => ['es','en'], 'localesOrder' => [ "ru", "tk","en"], diff --git a/resources/views/Bilettm/Partials/PublicHeader.blade.php b/resources/views/Bilettm/Partials/PublicHeader.blade.php index 993c0f90..cfc48dd7 100644 --- a/resources/views/Bilettm/Partials/PublicHeader.blade.php +++ b/resources/views/Bilettm/Partials/PublicHeader.blade.php @@ -67,11 +67,15 @@ {{--