PHP code example of limewell / laravel-make-extender

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

    

limewell / laravel-make-extender example snippets


php artisan make:helper UserHelper

php artisan make:helper Module/UserHelper

php artisan make:service UserService

(new UserService())->handle();

php artisan make:service UserService --invokable

(new UserService())();

php artisan make:trait UserTrait

php artisan make:trait UserTrait --bootable

php artisan make:scope UserScope

php artisan make:cast JsonCast

php artisan make:macro toUpper

php artisan vendor:publish --provider="Limewell\LaravelMakeExtender\LaravelMakeExtenderServiceProvider" --tag="config"

php artisan make:composer MovieComposer

use App\ViewComposers\MovieComposer;

return [
    MovieComposer::class => [
      'view1','view2'
    ],
];

php artisan vendor:publish --provider="Limewell\LaravelMakeExtender\LaravelMakeExtenderServiceProvider" --tag="stubs"