sudhanshugargG
2 months ago
105
2
Laravel

Why route is not defined?

Posted 2 months ago by sudhanshugargG

My Form tag is

<form action="<?php echo route('profile.store'); ?>" method="post">
<input type="hidden" name="_token" id="csrf-token" value="<?php echo csrf_token(); ?>" />

and my web.php file have

Auth::routes();
Route::view('/','welcome');
Route::get('/home', '[email protected]')->name('home');
Route::get('/profile','[email protected]');
Route::get('/profile/add','[email protected]');

my ProfileController have store function

public function save(Request $request){
    print_r($request);
}

Please sign in or create an account to participate in this conversation.