-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…n-deployment
- Loading branch information
Showing
3 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Keating\Console\Commands; | ||
|
||
use Illuminate\Console\Command; | ||
|
||
class FlushCache extends Command | ||
{ | ||
protected $signature = "cache:flush"; | ||
protected $description = "Flush cached data"; | ||
|
||
public function handle(): void | ||
{ | ||
$this->call(FlushCachedPageTitle::class); | ||
$this->call(FlushCachedScheduleLink::class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Keating\Console\Commands; | ||
|
||
use Illuminate\Cache\CacheManager; | ||
use Illuminate\Console\Command; | ||
|
||
class FlushCachedScheduleLink extends Command | ||
{ | ||
protected $signature = "cache:link:flush"; | ||
protected $description = "Flush cached schedule link"; | ||
|
||
public function handle(CacheManager $cache): void | ||
{ | ||
$cache->forget("scheduleLink"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Database\Seeders; | ||
|
||
use Illuminate\Database\Seeder; | ||
use Keating\Models\SectionSettings; | ||
use Keating\Models\Setting; | ||
use Keating\Models\User; | ||
|
||
class ProductionSeeder extends Seeder | ||
{ | ||
public function run(): void | ||
{ | ||
User::factory()->create(["email" => "[email protected]"]); | ||
|
||
Setting::factory()->create(); | ||
SectionSettings::query()->create([ | ||
"banner_enabled" => true, | ||
"about_enabled" => true, | ||
"counters_enabled" => true, | ||
"contact_enabled" => true, | ||
]); | ||
} | ||
} |