updated module compatibility

This commit is contained in:
Denis Duliçi
2020-10-17 14:53:24 +03:00
parent 86de28d87d
commit 77e4109b03
5 changed files with 93 additions and 59 deletions

View File

@ -3,8 +3,21 @@
namespace $NAMESPACE$;
use App\Abstracts\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
class $CLASS$ extends Model
{
use HasFactory;
protected $fillable = $FILLABLE$;
/**
* Create a new factory instance for the model.
*
* @return \Illuminate\Database\Eloquent\Factories\Factory
*/
protected static function newFactory()
{
return \$FACTORY_NAMESPACE$\$NAME$::new();
}
}