Files
cachet-docker/app/controllers/DashUserController.php
2015-01-01 10:44:02 +00:00

31 lines
582 B
PHP

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