40 lines
1.2 KiB
PHP
40 lines
1.2 KiB
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace Database\Seeders;
|
||
|
|
|
||
|
|
use App\Models\BasicBanner;
|
||
|
|
use Illuminate\Database\Seeder;
|
||
|
|
use SplFileInfo;
|
||
|
|
|
||
|
|
class BasicBannerSeeder extends Seeder
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Run the database seeds.
|
||
|
|
*
|
||
|
|
* @return void
|
||
|
|
*/
|
||
|
|
public function run()
|
||
|
|
{
|
||
|
|
$ban = new BasicBanner();
|
||
|
|
$ban->slug = 'main_whoarewebanner';
|
||
|
|
$ban->title = 'Qui sommes-nous ?';
|
||
|
|
$ban->picture = new SplFileInfo(resource_path('assets/images/qui_sommes_nous/banner.jpg'));
|
||
|
|
$ban->alt_text_picture = $ban->title;
|
||
|
|
$ban->save();
|
||
|
|
|
||
|
|
$ban = new BasicBanner();
|
||
|
|
$ban->slug = 'main_gammebanner';
|
||
|
|
$ban->title = 'Nos produits';
|
||
|
|
$ban->picture = new SplFileInfo(resource_path('assets/images/produits_categorie/banner.jpg'));
|
||
|
|
$ban->alt_text_picture = $ban->title;
|
||
|
|
$ban->save();
|
||
|
|
|
||
|
|
$ban = new BasicBanner();
|
||
|
|
$ban->slug = 'faq_banner';
|
||
|
|
$ban->title = 'Foir aux questions';
|
||
|
|
$ban->picture = new SplFileInfo(resource_path('assets/images/faq/banner.jpg'));
|
||
|
|
$ban->alt_text_picture = $ban->title;
|
||
|
|
$ban->save();
|
||
|
|
}
|
||
|
|
}
|