PHP code example of jetwaves / laravel-bootcamp

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

    

jetwaves / laravel-bootcamp example snippets


    composer 
 
    Jetwaves\LaravelBootcamp\Providers\LaravelBootcampServiceProvider::class,
    

                php artisan bootcamp:init
            

                it works !!! 
                

                "error": "Token is 

                The name field is 

                {
                    "status": true,
                    "message": "JwtUser created successfully",
                    "data": {
                        "name": "test1",
                        "email": "[email protected]",
                        "updated_at": "2018-02-17 12:12:36",
                        "created_at": "2018-02-17 12:12:36",
                        "id": 2
                    }
                }
                

                The email field is 

                "invalid_email_or_password"
                

                "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.***********************"
                

                it works !!! 
                

                "result": {
                        "id": 1,
                        "name": "test1",
                        "email": "[email protected]",
                        "created_at": "2018-02-17 11:57:01",
                        "updated_at": "2018-02-17 11:57:01"
                    }
                
 php artisan serve