samedi 31 décembre 2016

Laravel 5.2. Checking logged user are the owner of the page and provide authentication for action

I am developed a web application similar with facebook. User can create a page and perform action inside their page. But now i facing a problems is how can i store the page id when user posting status. Because i am using Laravel RESTful Resource to create controller. If i want to passing page id through link it does not allow cuz the route is defined as Route::resource('posts','PostController');

if i change to

Route::resource('posts/{id}','PostController');

it will occurs error.

Can i know is there any way can passing the page id other than GET function?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire