PHP code example of hesamrad / laravel-flashlight

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

    

hesamrad / laravel-flashlight example snippets


composer 

php artisan vendor:publish --provider="HesamRad\Flashlight\FlashlightServiceProvider" --tag="flashlight-config"

php artisan vendor:publish --provider="HesamRad\Flashlight\FlashlightServiceProvider" --tag="flashlight-migration"

Route::middleware('flashlight')->group(function () {
    Route::get('/', [SomeController::class, 'index']);
});

'enabled' => true

'driver' => 'file'

'excluded_methods' => [
    'put',
]

'log_headers' => true

'log_body' => true

'excluded_parameters' => [
    'password',
    'password_confirmation',
]

'excluded_uris' => [
    'admins*',
]