/** * Display a listing of clients * * @return Response */ public function index() { $user = Auth::user()->id; // Grab all the user clients $clients = $this->client->where('user_id', $user)->get(); //Include deleted clients if (Input::get('withTrashed')) { } else { if (Input::get('onlyTrashed')) { $clients = $this->client->onlyTrashed()->where('user_id', $user)->get(); } } return View::make('clients.index', compact('clients')); }