PHP code example of nonsapiens / laravel-app-init
1. Go to this page and download the library: Download nonsapiens/laravel-app-init 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/ */
nonsapiens / laravel-app-init example snippets
use Nonsapiens\LaravelAppInit\AppInit;
public function boot(): void
{
AppInit::loadInitsFrom(__DIR__.'/../../inits');
}
bash
php artisan app:init
bash
php artisan init:create MyInitName
# or, using the alias
php artisan make:init MyInitName