/** * Show the "create thread" page * * @param Channel $channel * @return void */ public function showCreateThread(Channel $channel) { if (!$channel->canView(Auth::user())) { abort(403); } if (!$channel->can(1, Auth::user())) { abort(403); } return view('core.forum.create-thread', ['channel' => $channel]); }
public function getForChannel(Channel $channel) { return $this->model->whereIn('topic_id', $channel->topics()->lists('id'))->get(); }
/** * Display a listing of the resource. * * @return Response */ public function index() { // $channels = Channel::all(); return view('core.admin.forums.permission-editor.channel.index', array('channels' => $channels)); }