/**
  * Display a list of all of the user's tickets.
  *
  * @return Response
  */
 public function index()
 {
     $user = Auth::user();
     //dd($user);
     $projects = Project::all();
     $tickets = $this->tickets->forUser($user);
     return view('dashboard.index', ['projects' => $projects, 'tickets' => $tickets]);
 }
 /**
  * Display a list of all of the user's tickets.
  *
  * @return Response
  */
 public function myTickets()
 {
     $user = Auth::user();
     $tickets = $this->tickets->forUser($user);
     return view('tickets.my', ['tickets' => $tickets]);
 }
 /**
  * Display a list of all of the user's tickets.
  *
  * @param  Request  $request
  * @return Response
  */
 public function myTickets(Request $request)
 {
     $user = $request->user();
     $tickets = $this->tickets->forUser($user);
     return view('tickets.my', ['tickets' => $tickets]);
 }