samedi 25 juin 2016

How to set correct URL in Laravel?

I use Laravel 5 and have the following routing configuration:

$router->resource('restaurants', 'Registration');

And method:

public function store(Auth $userModel, Request $request){
});

In my view file I specifed form like:

{!! Form::open(array('url' => 'restaurants.store')) !!}

When I submit form I am transfered on the address: restaurants.store and get error:

Sorry, the page you are looking for could not be found.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/28YxoF6
via IFTTT

Aucun commentaire:

Enregistrer un commentaire