Namespaced models and refactored filters

This commit is contained in:
Graham Campbell
2015-01-02 00:18:19 +00:00
parent 15a6694865
commit 0ccb5e289c
66 changed files with 310 additions and 195 deletions

View File

@@ -0,0 +1,38 @@
<?php
namespace CachetHQ\Cachet\Http\Controllers;
use Illuminate\Routing\Controller;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Input;
use Illuminate\Support\Facades\Redirect;
use Illuminate\Support\Facades\View;
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);
}
}