munafio / chatify-demo

Chatify Laravel Package Demo application
https://github.com/munafio/chatify
482 stars 179 forks source link

Target class [MessagesController] does not exist. #14

Closed jalallinux closed 3 years ago

jalallinux commented 3 years ago

Target class [MessagesController] does not exist.

https://flareapp.io/share/qm1rblrP

jamesof commented 3 years ago

Hi there, starting with Laravel 8, the App\Http\Controllers namespace is no longer automatically available (it is set to null). As per the docs: "This allows your controller route declarations to use the standard PHP callable syntax, which provides better support for jumping to the controller class in many IDEs". See here for more info

To fix this issue, simply import the MessagesController class via use keyword or use the fully qualified namespace i.e \Chatify\Http\Controllers\MessagesController in all the routes. Note the file to edit is: path-to-your-project/vendor/munafio/chatify/routes/web.php

developers4p2g commented 3 years ago

Hi @jamesof I'm using the Laravel 6, and facing same above problem. See Screenshot: https://prnt.sc/yua221

munafio commented 3 years ago

@jamesof @developers4p2g Please check out these links on the official package's repository, which have discussed and solved your issue before: Issue No. 46: https://github.com/munafio/chatify/issues/46 Issue No. 62: https://github.com/munafio/chatify/issues/62