Exemplo n.º 1
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     //
     /*
     $user=User::find(1);
     echo ($user->can('update.sites')) ? 'can update':'nope';
     dd($user->getPermissions());
     */
     $sites = Site::withTrashed()->get();
     return view('pages.sites.list', compact('sites'));
 }