public function index() { $permissions = Permission::all(); return view('admin.permissions.index', compact('permissions')); }
public function permissions($id) { $role = Role::find($id); $permissions = Permission::all(); return view('admin.roles.permissions', compact('role', 'permissions')); }