fix: fixing seeders that were actually failing
This commit is contained in:
parent
f6b15ec050
commit
9ad56e22aa
2 changed files with 4 additions and 2 deletions
|
|
@ -26,7 +26,7 @@ class NewsCorporateSeeder extends Seeder
|
|||
$newsCorporate->picture = FileStorageHelper::storeFile(
|
||||
$newsCorporate,
|
||||
new \SplFileInfo(\resource_path(
|
||||
'../database/factories/assets/newsCorporates/default-304x184.png'
|
||||
'../database/factories/assets/news_corporate/default-304x184.png'
|
||||
))
|
||||
);
|
||||
$newsCorporate->saveQuietly();
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ class StaticPageSeeder extends Seeder
|
|||
*/
|
||||
private function seedStaticPage(StaticPageType $type, array $data = []): void
|
||||
{
|
||||
StaticPage::query()->updateOrCreate(
|
||||
$staticPage = new StaticPage(
|
||||
['type' => $type],
|
||||
[
|
||||
'type' => $type,
|
||||
|
|
@ -141,5 +141,7 @@ class StaticPageSeeder extends Seeder
|
|||
'data' => $data,
|
||||
]
|
||||
);
|
||||
$staticPage->slug = str($type->label())->slug();
|
||||
$staticPage->saveQuietly();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue