Initial commit
This commit is contained in:
18
stubs/nwidart-stubs/model.stub
Normal file
18
stubs/nwidart-stubs/model.stub
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace $NAMESPACE$;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
|
||||
class $CLASS$ extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = $FILLABLE$;
|
||||
|
||||
protected static function newFactory()
|
||||
{
|
||||
return \$MODULE_NAMESPACE$\$MODULE$\Database\factories\$NAME$Factory::new();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user