Home > Enterprise >  Laravel Route Not Defined, How to fix it?
Laravel Route Not Defined, How to fix it?

Time:01-04

view blade file

    <form method="post" action="{{ route('appointments.change.status') }}" >
    </form>

in route


 Route::post('/appointments/status', 'AppointmentController@changeStatus')->name('appointments.change.status');

Error:

production.ERROR: Route [appointments.change.status] not defined.

CodePudding user response:

try to reload all routes by

php artisan route:cache

Then check if the route exists

php artisan route:list

make sure whether the defined route is in a prefix group.

CodePudding user response:

Run this command

php artisan route:clear
php artisan view:clear
php artisan cache:clear
  •  Tags:  
  • Related