Closed frama21 closed 4 years ago
Is this an exact paste of your AppServiceProvider, because the import for App\Models\Comment
isn't included?
Have you also registered the service provider in bootstrap/app.php
:
$app->register(App\Providers\AppServiceProvider::class);
it's fixed !
i change Comment::class
to App\Models\Comment
thanks for remind me
i have a problem with polymorph relation in Lumen default polymorph name in database inserted like this
App\Models\Comment
but i want this polymorph name inserted like thisComment
this my bootAppServiceProvider
codewhen i use Laravel, this code work with inserted name 'Comment' but in Lumen this not working
i use lumen 6.0
if you have a suggest or a example code let me know