1 year ago

Why did not redirect to page in update controller?

Posted 1 year ago by Amalmax

my laravel 5.6 project I have following redirect in update function of controller,

 return redirect()->route('vehicles.myads')->with('info','Your Advertisment has been updated successfully');

and I have following route,

Route::get('myads', function(){
    return view('vehicles.myads');

but when I update form it is not redirect to (vehicles.myads), it come back. how can fix this problem?

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