Target class [Controller Name] does not exist. #5670
Unanswered
HazemMohamed252
asked this question in
Q&A
Replies: 2 comments
-
Can we see the actual error stack? |
Beta Was this translation helpful? Give feedback.
0 replies
-
You need to add the namespace. Instead of just |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I just create Target class NotificationController as laravel creation, the related model and views and add new nav in AppServiceProvider like that :
Nav::extend(function ($nav) {
$nav->content('Notification')
->url('notification')
->icon('shopping-cart');
});
and the route in web route is : Route::get('cp/notification', 'NotificationController@index')->name('notification.index');
but it shows me Target class [NotificationController] does not exist. How to fix this please.
when i edit the route to be : Route::get('notification', 'NotificationController@index')->name('notification'); it route but show me on empty page that Page Not Found ??????
Beta Was this translation helpful? Give feedback.
All reactions