문제

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'

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top