updateOrCreate( [ 'type' => StaticPageType::legals, ], [ 'seo_title' => 'Seo title pour la page mentions légales', 'seo_description' => 'Seo description pour la page mentions légales', 'title' => 'Mentions légales', 'slug' => Str::slug('Mentions légales'), 'type' => StaticPageType::legals, 'content' => \clean(\fake()->randomHtml(6, 7)), ] ); StaticPage::query()->updateOrCreate( [ 'type' => StaticPageType::confidentiality, ], [ 'seo_title' => 'Seo title pour la page charte de confidentialité', 'seo_description' => 'Seo description pour la page charte de confidentialité', 'title' => 'Charte de confidentialité', 'slug' => Str::slug('Charte de confidentialité'), 'type' => StaticPageType::confidentiality, 'content' => \clean(\fake()->randomHtml(6, 7)), ] ); StaticPage::query()->updateOrCreate( [ 'type' => StaticPageType::home, ], [ 'seo_title' => 'Seo title pour la page Accueil', 'seo_description' => 'Seo description pour la page Accueil', 'title' => 'Accueil', 'slug' => Str::slug('Accueil'), 'type' => StaticPageType::home, 'content' => '', ] ); StaticPage::query()->updateOrCreate( [ 'type' => StaticPageType::unveil, ], [ 'seo_title' => 'Seo title pour la page On se Dévoile', 'seo_description' => 'Seo description pour la page On se Dévoile', 'title' => 'On se Dévoile', 'slug' => Str::slug('On se Dévoile'), 'type' => StaticPageType::unveil, 'content' => '', ] ); StaticPage::query()->updateOrCreate( [ 'type' => StaticPageType::we_hire, ], [ 'seo_title' => 'Seo title pour la page On Embauche', 'seo_description' => 'Seo description pour la page On Embauche', 'title' => 'On Embauche', 'slug' => Str::slug('On Embauche'), 'type' => StaticPageType::we_hire, 'content' => '', ] ); StaticPage::query()->updateOrCreate( [ 'type' => StaticPageType::we_commit, ], [ 'seo_title' => 'Seo title pour la page On s\'Engage', 'seo_description' => 'Seo description pour la page On s\'Engage', 'title' => 'On s\'Engage', 'slug' => Str::slug('On s\'Engage'), 'type' => StaticPageType::we_commit, 'content' => '', ] ); StaticPage::query()->updateOrCreate( [ 'type' => StaticPageType::we_move, ], [ 'seo_title' => 'Seo title pour la page On Bouge Ensemble', 'seo_description' => 'Seo description pour la page On Bouge Ensemble', 'title' => 'On Bouge Ensemble', 'slug' => Str::slug('On Bouge Ensemble'), 'type' => StaticPageType::we_move, 'content' => '', ] ); StaticPage::query()->updateOrCreate( [ 'type' => StaticPageType::we_produce, ], [ 'seo_title' => 'Seo title pour la page On Produit', 'seo_description' => 'Seo description pour la page On Produit', 'title' => 'On Produit', 'slug' => Str::slug('On Produit'), 'type' => StaticPageType::we_produce, 'content' => '', ] ); StaticPage::query()->updateOrCreate( [ 'type' => StaticPageType::we_listen, ], [ 'seo_title' => 'Seo title pour la page On Vous Ecoute', 'seo_description' => 'Seo description pour la page On Vous Ecoute', 'title' => 'On Vous Ecoute', 'slug' => Str::slug('On Vous Ecoute'), 'type' => StaticPageType::we_listen, 'content' => '', ] ); } finally { StaticPage::setEventDispatcher(new \Illuminate\Events\Dispatcher()); } //end try } }