PHP code example of jag / common

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

    

jag / common example snippets

 bash
$ php artisan vendor:publish
 bash
$ php artisan ide-helper:generate
 bash
$ php artisan vendor:publish --provider="Jag\Common\OptionServiceProvider"
 php
protected $middleware = [
    'Clockwork\Support\Laravel\ClockworkMiddleware',
    ...
]
 php
'aliases' => [
    ...
    'Socialite' => 'Laravel\Socialite\Facades\Socialite',
    'Image'     => 'Intervention\Image\Facades\Image',
    'Html'      => 'Illuminate\Html\HtmlFacade',
    'Form'      => 'Illuminate\Html\FormFacade',
    'Entrust'   => 'Zizaco\Entrust\EntrustFacade',
],