87 lines
2.4 KiB
PHP
87 lines
2.4 KiB
PHP
<?php
|
|
|
|
namespace Database\Seeders\Mandatory;
|
|
|
|
use App\Enums\StaticPageType;
|
|
use App\Models\Sticky;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class StickySeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
Sticky::query()->updateOrCreate(
|
|
[
|
|
'type' => StaticPageType::we_hire,
|
|
'title' => 'La vie d\'entreprise',
|
|
'anchor' => 'company-life'
|
|
],
|
|
);
|
|
Sticky::query()->updateOrCreate(
|
|
[
|
|
'type' => StaticPageType::we_hire,
|
|
'title' => 'L\'alternance et la formation',
|
|
'anchor' => 'formation'
|
|
],
|
|
);
|
|
Sticky::query()->updateOrCreate(
|
|
[
|
|
'type' => StaticPageType::we_hire,
|
|
'title' => 'Nos collaborateurs témoignent',
|
|
'anchor' => 'we-testimonials'
|
|
],
|
|
);
|
|
Sticky::query()->updateOrCreate(
|
|
[
|
|
'type' => StaticPageType::we_hire,
|
|
'title' => 'La parité',
|
|
'anchor' => 'parity'
|
|
],
|
|
);
|
|
Sticky::query()->updateOrCreate(
|
|
[
|
|
'type' => StaticPageType::we_hire,
|
|
'title' => 'En savoir plus',
|
|
'anchor' => 'on-se-retrouve'
|
|
],
|
|
);
|
|
Sticky::query()->updateOrCreate(
|
|
[
|
|
'type' => StaticPageType::unveil,
|
|
'title' => 'VOLENA',
|
|
'anchor' => 'key-numbers'
|
|
],
|
|
);
|
|
Sticky::query()->updateOrCreate(
|
|
[
|
|
'type' => StaticPageType::unveil,
|
|
'title' => 'Notre mission',
|
|
'anchor' => 'missions'
|
|
],
|
|
);
|
|
Sticky::query()->updateOrCreate(
|
|
[
|
|
'type' => StaticPageType::unveil,
|
|
'title' => 'Filière 100% française',
|
|
'anchor' => 'local'
|
|
],
|
|
);
|
|
Sticky::query()->updateOrCreate(
|
|
[
|
|
'type' => StaticPageType::unveil,
|
|
'title' => 'Nos sites',
|
|
'anchor' => 'sites'
|
|
],
|
|
);
|
|
Sticky::query()->updateOrCreate(
|
|
[
|
|
'type' => StaticPageType::unveil,
|
|
'title' => 'Notre histoire',
|
|
'anchor' => 'history'
|
|
],
|
|
);
|
|
}
|
|
}
|