for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Anomaly\UsersModule\Http\Controller\Admin;
use Anomaly\Streams\Platform\Http\Controller\AdminController;
use Anomaly\Streams\Platform\Ui\ControlPanel\Component\Navigation\NavigationCollection;
use Illuminate\Contracts\Config\Repository;
use Illuminate\Routing\Redirector;
/**
* Class HomeController
*
* @link http://pyrocms.com/
* @author PyroCMS, Inc. <[email protected]>
* @author Ryan Thompson <[email protected]>
*/
class HomeController extends AdminController
{
* Redirect to the users home page.
* @param NavigationCollection $navigation
* @param Redirector $redirect
* @return \Illuminate\Http\RedirectResponse
public function index(NavigationCollection $navigation, Redirector $redirect)
$home = $navigation->home();
return $redirect->to($home->getHref());
}