- Created stubs for JavaScript and SASS assets. - Added stubs for channel, command, component, controller, event, factory, job, listener, mail, middleware, migration, model, notification, observer, policy, request, resource, route provider, seeder, and validation rule. - Implemented scaffolding for configuration, service provider, and Vite integration. - Included example views for module structure. - Introduced a module loader for Vite to handle asset paths dynamically.
23 lines
462 B
Plaintext
23 lines
462 B
Plaintext
<?php
|
|
|
|
namespace $NAMESPACE$;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use $MODULE_NAMESPACE$\$MODULE$\Database\factories\$NAME$Factory;
|
|
|
|
class $CLASS$ extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*/
|
|
protected $fillable = $FILLABLE$;
|
|
|
|
protected static function newFactory(): $NAME$Factory
|
|
{
|
|
//return $NAME$Factory::new();
|
|
}
|
|
}
|