Question

Laravel handles user authentication and stuff, which is fine, but its documentation is lacking.

All I can really do is experiment and when Laravel throws an exception, add the field it is expecting, but aren't there, to the user table, because Google or its documentation does not give me a single clue as to which fields Laravel expects to find in the user table.

Latest example;
Column not found: 1054 Unknown column 'updated_at' in 'field list'

Was it helpful?

Solution

This is one of the timestamps. If you don't want and don't have fields updated_at and created_at then set on your User model protected $timestamps = false; and it will solve the problem.

This is not User model thing, all Eloquent models work like this.

Be sure to check http://laravel.com/docs/eloquent

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top