예제 #1
0
 public function postUpdateRole()
 {
     if (is_numeric(Request::get('role'))) {
         $obj = new role();
         $obj->where('id', '=', Request::get('role'))->update(['name' => trim(Request::get('newRole'))]);
     }
     //return Redirect::to('admin/permission')->withErrors(['error' => 'Update role success !']);
     return "update role success!";
 }