ldc-cocotte/database/seeders/MagasinsSeeder.php
2021-04-22 12:25:38 +02:00

26 lines
894 B
PHP

<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use App\Models\Magasin;
class MagasinsSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$shop = new Magasin();
$shop->name = 'Boutique du Canard';
$shop->address = 'ZI Le Moulin du Lay';
$shop->postcode = '56660';
$shop->city = 'Saint-Jean-Brévelay';
$shop->gmaps_embed_href = "https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d1338.6273890542313!2d-2.72895304171439!3d47.85402879462169!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x481027805e253b01%3A0x9238845cc1430920!2sCELVIA%20Centre%20d'Elaboration%20des%20Viandes!5e0!3m2!1sfr!2sfr!4v1619018555708!5m2!1sfr!2sfr";
$shop->gmaps_link_href = 'https://goo.gl/maps/CPWELAXDLHAbUsgeA';
$shop->save();
}
}