title: Is try catch block necessary inside controller in laravel?
body: <p>I'm currently working on a project with my friend. He follows this method of writing codes. Is it good or bad? I'm also not that much experience developer.</p>
  
  <pre><code>public function store(Request $request)
   {  
      try   
      {  
          $comment = new TicketComment();  
          $comment-&gt;content = $request['comment'];  
          $comment-&gt;user_id = Auth::user()-&gt;id;  
          $comment-&gt;ticket_id = $request['ticketId'];  
          $comment-&gt;save();  
          $ticket = Ticket::where('id', '=', $comment-&gt;ticket_id)-&gt;first();  
          $ticket-&gt;updated_at = $comment-&gt;created_at;  
          $ticket-&gt;update();  
      }    
      catch(Exception $e)  
      {  
          request()-&gt;session()-&gt;flash('unsuccessMessage', 'Failed to add comment !!!');  
          return redirect()-&gt;back();  
      }  
      request()-&gt;session()-&gt;flash('successMessage', 'Comment has been successfully added !!!');  
      return redirect()-&gt;back();  
  }  
  </code></pre>