misc_pterodactyl-panel/app/Http/Controllers/Base/IndexController.php
Matthew Penner cbcf62086f
Upgrade to Laravel 9 (#4413)
Co-authored-by: DaneEveritt <dane@daneeveritt.com>
2022-10-14 10:59:20 -06:00

28 lines
632 B
PHP

<?php
namespace Pterodactyl\Http\Controllers\Base;
use Illuminate\View\View;
use Illuminate\View\Factory as ViewFactory;
use Pterodactyl\Http\Controllers\Controller;
use Pterodactyl\Contracts\Repository\ServerRepositoryInterface;
class IndexController extends Controller
{
/**
* IndexController constructor.
*/
public function __construct(
protected ServerRepositoryInterface $repository,
protected ViewFactory $view
) {
}
/**
* Returns listing of user's servers.
*/
public function index(): View
{
return $this->view->make('templates/base.core');
}
}