When I use php artisan make:model CustomNamespace\\TestModel, I get a model based on default stub as this :
php artisan make:model CustomNamespace\\TestModel
namespace App\\Models\\CustomNamespace;
Create a new command, extend the Illuminate\Foundation\Console\ModelMakeCommand class and override the getStub() method:
Illuminate\Foundation\Console\ModelMakeCommand
getStub()
protected function getStub() { if ($this->option('pivot')) { return __DIR__.'/stubs/pivot.model.stub'; } return storage_path('/stubs/my-own-model.stub'); }