
Whenever you got this types of error go to your Route/web.php file and checkout your Controller class is mention there or not.

Next Go to PostController file and copy your controller class

Now go to Routes/web.php and class this class
use App\Http\Controllers\PostController;

php artisan serve
Now its working properly

Thanks.
Latest posts by rajeshkumar (see all)
- Mastering GitLab in 2025: The Ultimate Guide to Training, Certification, and Expert Mentorship - June 16, 2025
- DevSecOps Foundation Certification - June 14, 2025
- SRE Foundation Certification - June 14, 2025