for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Install GitHub App
<?php
namespace Backpack\CRUD\app\Http\Controllers;
use Illuminate\Routing\Controller;
class AdminController extends Controller
{
protected $data = []; // the information we send to the view
/**
* Create a new controller instance.
*/
public function __construct()
$this->middleware(backpack_middleware());
}
* Show the admin dashboard.
*
* @return \Illuminate\Http\Response
public function dashboard()
$this->data['title'] = trans('backpack::base.dashboard'); // set the page title
$this->data['breadcrumbs'] = [
trans('backpack::crud.admin') => backpack_url('dashboard'),
trans('backpack::base.dashboard') => false,
];
return view(backpack_view('dashboard'), $this->data);
return view(backpack_vie...shboard'), $this->data)
Illuminate\View\View
Illuminate\Http\Response
* Redirect to the dashboard.
* @return \Illuminate\Routing\Redirector|\Illuminate\Http\RedirectResponse
public function redirect()
// The '/admin' route is not to be used as a page, because it breaks the menu's active state.
return redirect(backpack_url('dashboard'));
* Show the 404 error page.
* @return \Illuminate\View\View
public function notFound()
return view('errors.404');