rappasoft / vault

Roles & Permissions for the Laravel 5 Framework
MIT License
103 stars 10 forks source link

Error seeding #13

Closed unixtime closed 9 years ago

unixtime commented 9 years ago

Getting the following error.

php artisan db:seed --class="VaultTableSeeder"
[Illuminate\Database\QueryException]
  SQLSTATE[42S22]: Column not found: 1054 Unknown column 'users.deleted_at' in 'where clause' (SQL: select * from `users` where `users`.`deleted_at` is null limit 1)
[PDOException]
  SQLSTATE[42S22]: Column not found: 1054 Unknown column 'users.deleted_at' in 'where clause'

Do I need to add deleted_at into the users table?

Thanks

rappasoft commented 9 years ago

Soft deletes on your user model are a prerequisite for the package.

rappasoft commented 9 years ago

http://laravel.com/docs/5.0/eloquent#soft-deleting

unixtime commented 9 years ago

got it. I was missing the column. Thank you.

rappasoft commented 9 years ago

No problem.