/** * Show the form for editing the specified propertieschannel. * * @param int $channelId * @return Response */ public function getEdit($channelId) { $propertieschannel = PropertiesChannel::firstOrNew(['channel_id' => $channelId, 'property_id' => Property::getLoggedId()]); $channel = Channel::find($propertieschannel->channel_id); return View::make('properties_channels.edit', compact('propertieschannel', 'channel')); }