webNeat/lumen-generators

softDeletes does not seem to work as expected

ja-tomasz opened this issue · 6 comments

it doesn't add

use Illuminate\Database\Eloquent\SoftDeletes;
(...)
use SoftDeletes

...to the model. I tried php artisan wn:resource test tekst;string;; --add=timestamps;softDeletes and also the resources file

Hello, Thanks for reporting this bug, will to fix it soon

Fixed 8e57d36 😄

Great! Thanks!

this still does not work properly - the trait does not get found due to fully qualified class name being referenced from the App level:

Fatal error: Trait 'App\Illuminate\Database\Eloquent\SoftDeletes' not found in ...

this works fine:

use \Illuminate\Database\Eloquent\SoftDeletes;

my bad, willing to fix this