I want only use created_at , how to do it?
I know:
This can custom timestamps name
const CREATED_AT = \'created\'; const UPDATED_AT = \'updat
I solved by adding default value CURRENT_TIMESTAMP in my database for the column created_at. And In my model I use this below code
CURRENT_TIMESTAMP
created_at
public $timestamps = false; protected $dates = ['created_at'];
I hope this method works in all versions of laravel.