Trying to Redirect to a route:
return Redirect::route('job_view', array('id' =>$id))
                ->with('succes','Alread Apply for this post');
Error :InvalidArgumentException in UrlGenerator.php line 314 Route [job_view] not defined.
The route Define in Web.php
Route::get('/job_view/{id}','jobseekerController@job_view');
In your web definition you defined Id but when you were calling the redirect to the job_view, you did not add the id to it. Do this instead
return redirect()->to('job_view/'.$id);
you can pass parameter and some status like this
return Redirect::to('job_view')
->with(['id'=>$id,'succes' => 'Alread Apply for this post']);
['id'=>$id,'succes' => 'Alread Apply for this post'] thats mean you pass two parameters first id and second is succes and then you get in view like this
for id: {{$id}}
for succes: {{$succes}}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With