31 lines
540 B
PHP
31 lines
540 B
PHP
|
<?php
|
||
|
|
||
|
namespace Pterodactyl\Http\Controllers\Admin;
|
||
|
|
||
|
use Debugbar;
|
||
|
|
||
|
use Pterodactyl\Http\Controllers\Controller;
|
||
|
use Illuminate\Http\Request;
|
||
|
|
||
|
class BaseController extends Controller
|
||
|
{
|
||
|
|
||
|
/**
|
||
|
* Controller Constructor
|
||
|
*/
|
||
|
public function __construct()
|
||
|
{
|
||
|
|
||
|
// All routes in this controller are protected by the authentication middleware.
|
||
|
$this->middleware('auth');
|
||
|
$this->middleware('admin');
|
||
|
|
||
|
}
|
||
|
|
||
|
public function getIndex(Request $request)
|
||
|
{
|
||
|
return view('admin.index');
|
||
|
}
|
||
|
|
||
|
}
|