PHP code example of mtownsend / laravel-make-trait

1. Go to this page and download the library: Download mtownsend/laravel-make-trait 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/ */

    

mtownsend / laravel-make-trait example snippets


/*
 * Package Service Providers...
 */
Mtownsend\MakeTrait\Providers\MakeTraitServiceProvider::class,

$app->register(Mtownsend\MakeTrait\Providers\MakeTraitServiceProvider::class);

php artisan make:trait YourTraitName

php artisan make:trait Orders\\StatusCompleted --scope

php artisan make:trait YourTraitName --boot

php artisan make:trait YourTraitName --scope