private function validateForumId($id)
    {
        try {
            $forum = Forum::where('id', $id)->firstOrFail();
            return $forum;
        } catch (\Exception $e) {
            return false;
        }
    }
private function validateForumId($id)
    {
        try {
            $forum = Forum::where('id', $id)->firstOrFail();
            return $forum;
        } catch (\Exception $e) {
            return false;
        }
    }
private function validateForumId ( $ id ) { try { $ forum = Forum :: where ( 'id' , $ id ) -> firstOrFail ( ) ; return $ forum ; } catch ( \ Exception $ e ) { return false ; } }
Validates if the forum exists, if so returns it.

@param integer $id

@return mixed
Validates if the forum exists if so returns it .