PHP code example of ambrosethebuild / laravel-installer
1. Go to this page and download the library: Download ambrosethebuild/laravel-installer 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/ */
ambrosethebuild / laravel-installer example snippets
use AmbroseTheBuild\LaravelInstaller\LaravelInstaller;
public function boot(): void
{
if (!app()->runningInConsole() && !LaravelInstaller::isInstalled() && !request()->is('installer*')) {
redirect('/installer/welcome')->send();
}
}