PHP code example of abnermouke / easy-builder

1. Go to this page and download the library: Download abnermouke/easy-builder 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/ */

    

abnermouke / easy-builder example snippets


Abnermouke\EasyBuilder\EasyBuilderServiceProvider::class,

public function register()
{
  if ($this->app->environment() !== 'production') {
      $this->app->register(\Abnermouke\EasyBuilder\EasyBuilderServiceProvider::class);
  }
  // ...
}

protected $middleware = [
    
    ///
   
    \App\Http\Middleware\Abnermouke\EasyBuilderBaseMiddleware::class,
];

     "autoload": {
       
       // 
        
        "files": [
            "app/Helpers/functions.php",
            "app/Helpers/helpers.php",
            "app/Helpers/auth.php",
            "app/Helpers/response.php",
            "app/Helpers/projects.php"
        ]
    },


     "mysql" => [
        
        //关闭严格模式
        "strict" => false
        
     ],

shell
php artisan vendor:publish --provider="Abnermouke\EasyBuilder\EasyBuilderServiceProvider"
shell
php artisan builder:init
shell
composer dump-autoload
shell
$ php artisan builder:package accounts
shell
$ php artisan builder:interface accounts
shell
composer 
shell
composer