jeudi 30 juin 2016

Database seeders not working laravel 5

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. enter image description here

It worked fine untill this morning.

Any ideas?

Thanks in advance



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire