Laravel - Validation - Quick Defining The Routes
First, let's assume we have the following routes defined in our
use App\Http\Controllers\PostController; Route::get('/post/create', [PostController::class, 'create']); Route::post('/post', [PostController::class, 'store']);
GET route will display a form for the user to create a new blog post, while the
POST route will store the new blog post in the database.