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
php artisan serve
Now its working properly