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?



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

Aucun commentaire:

Enregistrer un commentaire