/**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $title = $this->title;
     $module_name = $this->module_name;
     $module_icon = $this->module_icon;
     $page_heading = "All " . $module_name;
     ${$module_name} = Permission::paginate(5);
     return view("backend.{$module_name}.index", compact('title', 'page_heading', 'module_icon', "module_name", "{$module_name}"));
 }
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     if (Gate::denies('permission.read')) {
         return view(config('app.template') . '.error.403');
     }
     $limit = 20;
     $data = ['limit' => $limit, 'permissions' => Permission::paginate($limit)->setPath('permission')];
     return view(config('app.template') . '.permission.table', $data);
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     //
     $q = \Request::get('q');
     if ($q != '') {
         $permissions = \App\Permission::where('name', 'RLIKE', $q)->paginate(10);
     } else {
         $permissions = \App\Permission::paginate(10);
     }
     return view('permissions.index', compact('permissions', 'q'));
 }
 public function index()
 {
     $permissions = Permission::paginate(15);
     return view('admin.permission.index', compact('permissions'));
 }
Beispiel #5
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $permissions = Permission::paginate(5);
     return view('pages.admin_pages.permissions')->with('permissions', $permissions);
 }