PHP code example of neoson / laravel-api-min-boilerplate

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

    

neoson / laravel-api-min-boilerplate example snippets


//run this queue worker
php artisan queue:work

//email template directories
resources/views/emails

POST api/auth/register        //register an account and send verification email
POST api/auth/login           //perform login and get jwt token
GET  api/auth/email/verify    //verify email for new account
POST api/auth/recovery        //send a recovery email
GET  api/auth/reset           //reset password after verify recovery email
POST api/auth/refresh         //refresh the jwt token

//the following api 
bash
php artisan migrate
bash
php artisan jwt:generate
bash
php artisan serve