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', 'HomeController@index')->name('home');
Route::get('/profile','ProfileController@index');
Route::get('/profile/add','ProfileController@create');
my ProfileController have store function
public function save(Request $request){
print_r($request);
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire