master_template/app/Http/Controllers/Installer/PermissionsController.php
2024-06-11 12:16:24 +05:45

37 lines
764 B
PHP
Executable File

<?php
namespace App\Http\Controllers\Installer;
use Illuminate\Routing\Controller;
use App\Helpers\Installer\PermissionsChecker;
class PermissionsController extends Controller
{
/**
* @var PermissionsChecker
*/
protected $permissions;
/**
* @param PermissionsChecker $checker
*/
public function __construct(PermissionsChecker $checker)
{
$this->permissions = $checker;
}
/**
* Display the permissions check page.
*
* @return \Illuminate\View\View
*/
public function permissions()
{
$permissions = $this->permissions->check(
config('installer.permissions')
);
return view('vendor.installer.permissions', compact('permissions'));
}
}