Use a hidden from input then check to make sure if the given id is valid.
$channel = Channel::find(Input::get('channel_id');
if (!$channel)
throw new NotFoundHttpException ('channel not found);
if you want to restrict what users can edit the a specific channel the use filters.
Route::post('/channels',['before'=>'has_access', 'uses'=>'ChannelController@update']
Then of course you would have to define the has_access filter however you want. Check out http://laravel.com/docs/4.2/routing do figure out how to do filters.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community