1. Go to this page and download the library: Download esanj/public-pages library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
esanj / public-pages example snippets
return [
// Name shown on the home and error pages.
'app_name' => env('APP_NAME', 'eSanj'),
// Home page route.
'home' => [
'enabled' => env('PUBLIC_PAGES_HOME_ENABLED', true), // register the home route?
'path' => env('PUBLIC_PAGES_HOME_PATH', '/'), // URI for the home page
'view' => 'publicpages::home', // view to render
],
// Middleware applied to the package routes.
'routes' => [
'middleware' => ['web'],
],
// Custom error pages.
'errors' => [
'enabled' => env('PUBLIC_PAGES_ERRORS_ENABLED', true), // use package error pages?
'layout' => 'errors::layout', // base layout each error view extends
],
];