@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Akibatech\Crud\Exceptions\InvalidModelException; |
6 | 6 | use Akibatech\Crud\Exceptions\NoFieldsException; |
7 | -use Akibatech\Crud\Fields\Field; |
|
8 | 7 | use Akibatech\Crud\Traits\Crudable; |
9 | 8 | use Illuminate\Database\Eloquent\Model; |
10 | 9 | use Illuminate\Support\Facades\View; |
@@ -47,8 +47,7 @@ |
||
47 | 47 | if (is_string($crudable)) |
48 | 48 | { |
49 | 49 | return new CrudEntry(new $crudable); |
50 | - } |
|
51 | - else if (is_object($crudable) && array_key_exists(Crudable::class, class_uses($crudable))) |
|
50 | + } else if (is_object($crudable) && array_key_exists(Crudable::class, class_uses($crudable))) |
|
52 | 51 | { |
53 | 52 | return new CrudEntry($crudable); |
54 | 53 | } |