Target class [PostController] does not exist.
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.