diff --git a/src/controllers/ProfileController.php b/src/controllers/ProfileController.php index e9d4de9..be1e890 100644 --- a/src/controllers/ProfileController.php +++ b/src/controllers/ProfileController.php @@ -5,19 +5,17 @@ class ProfileController extends Controller { - - public function getEdit(){ - $admin = Admin::find(\Auth::user()->id); - return \View::make('editProfile')->with('admin',$admin); + public function getEdit() { + $admin = Admin::find(\Auth::user()->id); + return \View::make('panelViews::editProfile')->with('admin', $admin); } - - public function postEdit(){ + + public function postEdit() { $admin = Admin::find(\Auth::user()->id); $inputs = \Input::all(); $admin->update($inputs); $admin->save(); - return \View::make('editProfile')->with(array('admin'=>$admin, - 'message'=>'Successfully Updated Profile' )); + return \View::make('panelViews::editProfile')->with(array('admin' => $admin, + 'message'=>'Successfully Updated Profile')); } - -} \ No newline at end of file +}