/**
  * Get the current permissions.
  *
  * @return \Illuminate\Database\Eloquent\Collection
  */
 protected function getPermissions()
 {
     return $this->cache->rememberForever($this->cacheKey, function () {
         return Permission::with('roles')->get();
     });
 }
Esempio n. 2
0
 /**
  * Display a listing of the Permission.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $permessi = Permission::with('roles.users')->get();
     // return $permessi;
     return view('admin.acl.permessi.index', compact('permessi'));
 }