The site gate provider
composer require phpfit/site
This module provide gate for site endpoint. The gate is configured as below:
<?php
return [
'site' => [
'host' => 'HOST',
'path' => '/',
'error' => 'App\\Site\\Handler\\ErrorHandler',
'shutdown' => 'App\\Site\\Handler\\ShutdownHandler',
'view' => 'App\\Site\\Handler\\View',
'middlewares' => [
'site' => 'App\\Site\\Middleware\\SiteMiddleware'
]
]
];
This module publish various files to src/Site
and view/site
.
New gate controller created named App\Site\SiteController
.
Provide site meta data on response html taken from future module named phpfit/setting
The phpfit/site
library is licensed under the MIT license.
See License File for more information.