My database seeder stopped working at one point. it says its working but nothing happens, no error no nothing. Even when i corrupt the whole seeder file it still gives no error.
This is my table ----------
Schema::create('users', function (Blueprint $table) {
$table->increments('id');
$table->string('naam');
$table->string('email')->unique();
$table->string('password');
$table->integer('level');
$table->rememberToken();
$table->timestamps();
});
My seeder --------
DB::table('users')->insert([
'naam' => 'test',
'email' => 'test@wolters.nl',
'password' => Hash::make('wolters'),
'level' => 1,
'created_at' => new DateTime(),
'updated_at' => new DateTime(),
]);
Migrations work fine. But when i run php artisan db:seed, no errors and nothing in the database.
It worked fine untill this morning.
Any ideas?
Thanks in advance
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2947UBZ
via IFTTT
Aucun commentaire:
Enregistrer un commentaire