misc_pterodactyl-panel/app/Http/Controllers/Admin/Mounts/MountController.php

38 lines
885 B
PHP
Raw Normal View History

2020-05-20 23:29:03 +00:00
<?php
namespace Pterodactyl\Http\Controllers\Admin\Mounts;
use Pterodactyl\Contracts\Repository\LocationRepositoryInterface;
use Pterodactyl\Http\Controllers\Controller;
class MountController extends Controller
{
/**
* @var \Pterodactyl\Contracts\Repository\LocationRepositoryInterface
*/
protected $repository;
/**
* LocationController constructor.
*
* @param \Pterodactyl\Contracts\Repository\LocationRepositoryInterface $repository
*/
public function __construct(
LocationRepositoryInterface $repository
) {
$this->repository = $repository;
}
/**
* Return the mount overview page.
*
* @return \Illuminate\View\View
*/
public function index()
{
return view('admin.mounts.index', [
'locations' => $this->repository->getAllWithDetails(),
]);
}
}