PHP code example of areia-lab / laravel-maintainer
1. Go to this page and download the library: Download areia-lab/laravel-maintainer 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/ */
areia-lab / laravel-maintainer example snippets
Route::get('/', function () {
return view('welcome');
})->middleware(['maintenance.check']);
# Or as a group
Route::middleware(['maintenance.check'])->group(function () {
Route::get('/', function () {
return view('welcome');
});
});