PHP code example of kregel / laravel-flight
1. Go to this page and download the library: Download kregel/laravel-flight 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/ */
kregel / laravel-flight example snippets
protected $middlewareGroups = [
'web' => [
\Illuminate\Cookie\Middleware\EncryptCookies::class,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
\Illuminate\Session\Middleware\StartSession::class,
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
\Illuminate\Foundation\Http\Middleware\VerifyCsrfToke::class,
\Illuminate\Routing\Middleware\SubstituteBindings::class,
],
];
'auth' => \Kregel\Flight\Middleware\Authenticate::class,
'guest' => \Kregel\Flight\Middleware\RedirectIfAuthenticated::class,
'driver_name' => [
'client_id' => env('DRIVER_NAME_CLIENT_ID'),
'client_secret' => env('DRIVER_NAME_CLIENT_SECRET'),
'redirect' => env('DRIVER_NAME_REDIRECT_URI'),
],
'github' => [
'client_id' => env('GITHUB_CLIENT_ID'),
'client_secret' => env('GITHUB_CLIENT_SECRET'),
'redirect' => env('GITHUB_REDIRECT'),
],
php artisan vendor:publish --provider=Kregel\\Flight\\FlightServiceProvider