Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel Method does not exist after rename

I have a little problem here after I renamed a method from store to save also I was renamed in the Route

Route::post('blog', 'Backend\BlogController@store');

to

Route::post('blog', 'Backend\BlogController@save');

but when I hit submit it still shows me:

Method [store] does not exist.

anyone can help me out?

like image 301
0x00b0 Avatar asked Sep 04 '25 17:09

0x00b0


1 Answers

Run the following command.

composer dump-autoload -o

if the problem persists, please use below commands also

php artisan config:clear
php artisan cache:clear
php artisan view:clear

Hope it will help.

like image 158
Dev Ramesh Avatar answered Sep 07 '25 00:09

Dev Ramesh