fix migration forceCreate
This commit is contained in:
parent
ca5b55e588
commit
04a84de3b2
1 changed files with 2 additions and 1 deletions
|
|
@ -107,8 +107,9 @@ return new class extends Migration
|
|||
$staticPage->data = $data;
|
||||
$staticPage->saveQuietly();
|
||||
} else {
|
||||
StaticPage::createQuietly([
|
||||
StaticPage::query()->forceCreateQuietly([
|
||||
'type' => StaticPageType::ourFarms->value(),
|
||||
'slug' => 'les-elevages',
|
||||
'seo_title' => sprintf('Seo title pour la page %s', StaticPageType::ourFarms->label()),
|
||||
'seo_description' => sprintf('Seo description pour la page %s', StaticPageType::ourFarms->label()),
|
||||
'title' => StaticPageType::ourFarms->label(),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue