PHP code example of timerlau / errcode

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

    

timerlau / errcode example snippets

`
修改 config/app.php 如下:
1. providers 增加 Timerlau\Errcode\ErrcodeServiceProvider::class,
2. aliases   增加 'Errcode' => Timerlau\Errcode\Facades\Errcode::class,

php artisan vendor:publish --provider="Timerlau\Errcode\ErrcodeServiceProvider"