Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #476
    dan
    Participant

    I believe my problem is in the route. I already checked the routes via php artisan route:list and the route is registered there.

    Here is my routes in web.php

    Route::get(‘/posts/{post}’, [PostController::class, ‘show’])->name(‘posts.show’);
    Route::get(‘/posts/create’, [PostController::class, ‘create’])->name(‘posts.create’);

    #477
    dan
    Participant

    The route is /questions/create

    • This reply was modified 1 year ago by dan.
    #479

    Interchange your route:

    Route::get(‘/posts/create’, [PostController::class, ‘create’])->name(‘posts.create’);
    Route::get(‘/posts/{post}’, [PostController::class, ‘show’])->name(‘posts.show’);

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.