Simply add public $timestamps = false; in your model where you want disable timestamps.
Example:
namespace App;
use Illuminate\Database\Eloquent\Model;
class YourModel extends Model
{
public $timestamps = false;
}
This post is submitted by one of our members. You may submit a new post here.
Laravel interview Questions © 2019 - Designed by PSD to HTML