コード例 #1
0
 /**
  *
  * @param CreateRoleRequest $request
  * @return View
  */
 public function store(CreatePermissionRequest $request)
 {
     Permission::create($request->except('id', '_token'));
     return $this->toIndex('save success');
 }
コード例 #2
0
 /**
  *
  * @param CreateRoleRequest $request
  * @return View
  */
 public function store(CreatePermissionRequest $request)
 {
     Permission::create($request->only(['name', 'readable_name', 'is_nav']));
     return redirect()->route('admin.permissions.index');
 }