The default Eloquent Model is generated with a structure as below.
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory;use Illuminate\Database\Eloquent\Model; class Post extends Model{ use HasFactory;}
And it has a trait HasFactory
. What if you want to remove it because you won't use it in the project and want all new Models not to have it?
You can overwrite the default structure by...