mirror of
https://github.com/ZorgCC/lumen-generators.git
synced 2024-12-26 14:05:29 +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 {
|
||||
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
use \Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
protected $fillable = [];
|
||||
|
||||
|
@ -128,7 +128,7 @@ class ModelCommand extends BaseCommand {
|
||||
protected function getUses()
|
||||
{
|
||||
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…
Reference in New Issue
Block a user