User profile can be updated by clicking on profile picture

This commit is contained in:
James Brooks
2014-12-21 10:14:58 +00:00
parent c84217d5be
commit feb7dfea84
5 changed files with 73 additions and 1 deletions

View File

@@ -0,0 +1,28 @@
<?php
class DashUserController extends Controller
{
/**
* Shows the user view.
* @return \Illuminate\View\View
*/
public function showUser()
{
return View::make('dashboard.user')->with([
'pageTitle' => 'User - Dashboard',
]);
}
/**
* Updates the statsu page user.
* @return \Illuminate\View\View
*/
public function postUser()
{
$items = Input::all();
$updated = Auth::user()->update($items);
return Redirect::back()->with('updated', $updated);
}
}