Carga inicial
This commit is contained in:
30
database/seeds/SucursalesTableSeeder.php
Normal file
30
database/seeds/SucursalesTableSeeder.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class SucursalesTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
DB::table('sucursales')->insert([
|
||||
[
|
||||
'nombre' => 'Culiacán',
|
||||
'calle' => 'Pascual Orozco',
|
||||
'num_ext' => '1949',
|
||||
'colonia' => 'Nuevo Culiacán',
|
||||
'cp' => '80170',
|
||||
'telefono' => '6677139250',
|
||||
'gerente' => 'Gabriel Salazar',
|
||||
'encargado' => 'Brenda Tamayo',
|
||||
'created_at' => Carbon::now()->toDateTimeString(),
|
||||
'updated_at' => Carbon::now()->toDateTimeString(),
|
||||
]
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user