Filippo Bertilotti
7 days ago 7146e93c75c6215af79fbfe523b7da0e339ec64a
commit | author | age
9f6455 1 <?php
DC 2
3 namespace Database\Seeders;
4
d83121 5 use App\Models\Msisdn;
9f6455 6 use Illuminate\Database\Seeder;
DC 7 use Illuminate\Support\Facades\DB;
8
9 class UsersTableSeeder extends Seeder
10 {
11     /**
12      * Run the database seeds.
13      *
14      * @return void
15      */
16     public function run()
17     {
18         DB::table('users')->insert([
19             'username' => 'vola01',
20             'email' => 'davide.cucurnia@vola.it',
21             'password' => bcrypt('Password01'),
22         ]);
d83121 23         // scrivo l'utente
D 24         // scrivo le sim associate all'utente
25         // PRESUMENDO CHE I PRODOTTI MENZIONATI ESISTANO GIA cerco i prodotti che dovrei associare alla sim
26         // scrivo relazioni prodotti - sim
9f6455 27         DB::table('users')->insert([
DC 28             'username' => 'vola02',
29             'email' => 'cristiano.mancini@vola.it',
30             'password' => bcrypt('Password02'),
31         ]);
d83121 32         // scrivo l'utente
D 33         // scrivo le sim associate all'utente
34         // PRESUMENDO CHE I PRODOTTI MENZIONATI ESISTANO GIA cerco i prodotti che dovrei associare alla sim
35         // scrivo relazioni prodotti - sim
9f6455 36     }
DC 37 }