for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Arcanesoft\Auth\Http\Controllers\Admin;
use Arcanesoft\Auth\Http\Controllers\Admin\Controller;
use Arcanesoft\Auth\Policies\DashboardPolicy;
/**
* Class DashboardController
*
* @package Arcanesoft\Auth\Http\Controllers\Foundation
* @author ARCANEDEV <[email protected]>
* @todo: Adding the authorization checks
*/
class DashboardController extends Controller
{
/* ------------------------------------------------------------------------------------------------
| Constructor
| ------------------------------------------------------------------------------------------------
* Instantiate the controller.
public function __construct()
parent::__construct();
$this->setCurrentPage('auth-dashboard');
}
| Main Functions
public function index()
$this->authorize(DashboardPolicy::PERMISSION_STATS);
$title = 'Authorization - Dashboard';
$this->setTitle($title);
$this->addBreadcrumb('Statistics');
return $this->view('admin.dashboard');