mirror of
https://github.com/ZorgCC/lumen-generators.git
synced 2025-01-13 22:07:55 +03:00
Model softDeletes trait fixed
This commit is contained in:
parent
8e57d36894
commit
5cf6f6ed9c
@ -117,7 +117,7 @@ use Illuminate\Database\Eloquent\Model;
|
|||||||
|
|
||||||
class TestingModel extends Model {
|
class TestingModel extends Model {
|
||||||
|
|
||||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
use \Illuminate\Database\Eloquent\SoftDeletes;
|
||||||
|
|
||||||
protected $fillable = [];
|
protected $fillable = [];
|
||||||
|
|
||||||
|
@ -128,7 +128,7 @@ class ModelCommand extends BaseCommand {
|
|||||||
protected function getUses()
|
protected function getUses()
|
||||||
{
|
{
|
||||||
return $this->option('soft-deletes') == 'true'
|
return $this->option('soft-deletes') == 'true'
|
||||||
? ' use Illuminate\Database\Eloquent\SoftDeletes;' . PHP_EOL . PHP_EOL
|
? ' use \Illuminate\Database\Eloquent\SoftDeletes;' . PHP_EOL . PHP_EOL
|
||||||
: '';
|
: '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user