예제 #1
0
 public function edit($id)
 {
     $user = $this->user->find($id);
     $counties = DB::table('counties')->get();
     if (All::checkEditRight($user)) {
         return All::checkEditRight($user);
     }
     if (is_null($user)) {
         return Redirect::route('users.index');
     }
     return View::make('users.edit', compact('user'));
 }