PHP code example of yabhq / flightdeck

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

    

yabhq / flightdeck example snippets




namespace App\Http\Controllers\Customer;

use Yab\FlightDeck\Http\Controllers\AuthController as FlightAuthController;

class AuthController extends FlightAuthController
{
    /**
     * Get the guard to be used for login, logout and token refreshes.
     *
     * @return \Illuminate\Contracts\Auth\StatefulGuard
     */
    protected function guard()
    {
        return auth()->guard('customer');
    }
}
bash
php artisan flightdeck:generate app1
bash
php artisan flightdeck:list