use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration;
class AddSomeUsers extends Migration { /** * Run the migrations. * * @return void */ public function up() { User::create(array( 'email' => 'your@email.com', 'password' => Hash::make('password'), 'name' => 'Ganesh Pandey' )); }
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire