Cachet/app/controllers/DashUserController.php

29 lines
562 B
PHP
Raw Normal View History

<?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',
]);
}
/**
2014-12-21 10:19:18 +00:00
* 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);
}
}