PHP code example of wang-tech-commits / laravel-certification
1. Go to this page and download the library: Download wang-tech-commits/laravel-certification 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/ */
wang-tech-commits / laravel-certification example snippets
use MrwangTc\UserCertification\Certification\Traits\UserHasCertification;
class User {
use UserHasCertification;
}
use MrwangTc\UserCertification\UserCertification;
/**
* $prefix string 路由前缀
* 当前方法推荐放置于需授权的路由作用域内
*/
UserCertification::routes('user');
shell script
php artisan vendor:publish --provider="MrwangTc\UserCertification\ServiceProvider"
php artisan migrate