When I use php artisan make:model CustomNamespace\TestModel
, I get a model based on default stub as this :
namespace App\Models\CustomNamespace;
use Illuminate\Database\Eloquent\Model;
class TestModel extends Model
{
//
}
But what I want to create is a dynamic Model based on my own stub to get something like this:
namespace App\Models\CustomNamespace;
use App\Models\MyParent;
/**
* Put a dynamic doc here
*/
class MyModel extends MyParent
{
/*put custom methods here*/
}
I've checked Laravel docs and other tutos but nothing on this, could you help guys ?