laravel controller does not use created_at code example
Example 1: laravel model without timestamps
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Post extends Model
{
public $timestamps = false;
//
}
Example 2: crrate model in laravel
php artisan make:model Flight -mcr
#it will make model with name of Flight
#it will also create conctroller file with FlightController name
#all function will present in this Controller (index, create, store, show, edit, update, destroy)