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


return [
    'ssl', 'pdo', 'mbstring', 'tokenizer', 'xml', 'ctype', 'json', 'bcmath',
    ],
    'folders' => [
        'storage/logs',
        'bootstrap/cache',
        'storage/framework',
    ],
];

use AmbroseTheBuild\LaravelInstaller\LaravelInstaller;

public function boot(): void
{
    if (!app()->runningInConsole() && !LaravelInstaller::isInstalled() && !request()->is('installer*')) {
        redirect('/installer/welcome')->send();
    }
}
bash
php artisan vendor:publish --tag="laravel-installer-config"
sh
php artisan vendor:publish --tag=laravel-installer-assets