oasis setup script

This commit is contained in:
Peter Papp
2021-05-03 08:12:37 +02:00
parent fe0ed38157
commit 434c45299c
10 changed files with 1189 additions and 1743 deletions

View File

@@ -149,5 +149,45 @@ class SetupOasisEnvironment extends Command
], [
'value' => '#ae5fec',
]);
// Get system images
collect(['logo.png', 'logo-horizontal.png', 'favicon.png', 'oasis-og-image.jpg'])
->each(function ($file) {
Storage::putFileAs('system', storage_path("demo/oasis/$file"), $file, 'private');
});
collect([
[
'name' => 'app_title',
'value' => 'Oasis',
],
[
'name' => 'app_description',
'value' => 'Chytrý, bezpečný, pohodlný šanon vždy s Vámi.',
],
[
'name' => 'app_logo',
'value' => 'system/logo.png',
],
[
'name' => 'app_logo_horizontal',
'value' => 'system/logo-horizontal.png',
],
[
'name' => 'app_favicon',
'value' => 'system/favicon.png',
],
[
'name' => 'app_og_image',
'value' => 'system/oasis-og-image.jpg',
],
])->each(function ($option) {
Setting::updateOrCreate([
'name' => $option['name'],
], [
'value' => $option['value'],
]);
});
}
}

View File

@@ -1,6 +1,7 @@
<?php
namespace App\Models;
use App\Notifications\ResetPassword;
use App\Traits\Oasis;
use ByteUnits\Metric;
use Illuminate\Support\Str;