PHP code example of youhujun / laravel-fast-api

1. Go to this page and download the library: Download youhujun/laravel-fast-api 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/ */

    

youhujun / laravel-fast-api example snippets


php artisan stub:publish

php artisan vendor:publish --tag=cover --force

php artisan vendor:publish --tag=init 

php artisan storage:link

php artisan vendor:publish --tag=static --force

php artisan vendor:publish --tag=stub --force

php artisan migrate

php artisan db:seed --class=DatabaseSeeder

#fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/tmp/:/proc/";

location /
{
 	try_files $uri $uri/ /index.php?$query_string;
}

php artisan call:facade 路径/名称

php artisan call:facade Test/TestFacade

php artisan queue:work

laravel-echo-server start

php artisan websocket:serve