Skip to content

Commit

Permalink
Merge branch 'laravel5'
Browse files Browse the repository at this point in the history
  • Loading branch information
alenoosh committed Mar 9, 2015
2 parents 500eee6 + 6d2f52e commit d6d881d
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/controllers/ProfileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}

}
}

0 comments on commit d6d881d

Please sign in to comment.