invoiceninja/app/Console/Commands/stubs/model.stub

35 lines
573 B
Text
Raw Normal View History

2016-12-08 15:41:35 +02:00
<?php
namespace $NAMESPACE$;
use App\Models\EntityModel;
use Laracasts\Presenter\PresentableTrait;
use Illuminate\Database\Eloquent\SoftDeletes;
class $CLASS$ extends EntityModel
{
use PresentableTrait;
use SoftDeletes;
/**
* @var string
*/
2016-12-08 22:39:15 +02:00
protected $presenter = 'Modules\$CLASS$\Presenters\$CLASS$Presenter';
2016-12-08 15:41:35 +02:00
2016-12-08 22:39:15 +02:00
/**
* @var string
*/
2016-12-08 15:41:35 +02:00
protected $fillable = $FILLABLE$;
2016-12-08 21:37:07 +02:00
2016-12-08 22:39:15 +02:00
/**
* @var string
*/
2016-12-08 21:37:07 +02:00
protected $table = '$LOWER_NAME$';
2016-12-08 22:39:15 +02:00
public function getEntityType()
{
return '$LOWER_NAME$';
}
2016-12-08 15:41:35 +02:00
}