on-internet
← Community

Laravel form route not defined

Stack Overflow ·

I am trying to send a route the old way, without using Blade's {{}} tags. I am encountering a problem, because the framework throws my route as not defined. Can someone help me? This is my form tag: <form method="POST" action="{{ route('store') }}"> My route Route::post('store', 'Controller@store'); My controller (the function name might help you undertand) public function store(Request $request){ return redirect('/XXXXX/home'); } The error is always: Route [store] not defined. (View:

Comments

Sign in or sign up to comment and upvote.

No comments yet.