database/seeds/Usuarios.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        Usuario::create([
            'nome' => str_random(10),
            'login' => str_random(10),
            'senha' => bcrypt('secret'),
            'assinante' => true,
        ]);
        Usuario::create([
            'nome' => str_random(10),
            'login' => str_random(10),
            'senha' => bcrypt('secret'),
            'assinante' => false,
        ]);
    }
public function run ( ) { Usuario :: create ( [ 'nome' => str_random ( 10 ) , 'login' => str_random ( 10 ) , 'senha' => bcrypt ( 'secret' ) , 'assinante' => true , ] ) ; Usuario :: create ( [ 'nome' => str_random ( 10 ) , 'login' => str_random ( 10 ) , 'senha' => bcrypt ( 'secret' ) , 'assinante' => false , ] ) ; }
Run the database seeds.
Run the database seeds .