softDeletes does not seem to work as expected
ja-tomasz opened this issue · 6 comments
ja-tomasz commented
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
webNeat commented
Hello, Thanks for reporting this bug, will to fix it soon
ja-tomasz commented
Great! Thanks!
ja-tomasz commented
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;
webNeat commented
my bad, willing to fix this
webNeat commented
This is fixed
Commit: 5cf6f6e
Release: https://github.com/webNeat/lumen-generators/releases/tag/1.3.3