PHP code example of headerx / laravel-jetstream-installers

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

    

headerx / laravel-jetstream-installers example snippets



// config for HeaderX/JetstreamInstallers
return [
    'lab404-impersonate' => [
        'enabled' => env('LAB404_IMPERSONATE', false),
        'middleware' => [
            'web',
            'auth:sanctum',
            // 'can:impersonate',
        ],
        'route_prefix' => 'lab404-impersonate',
    ],
];

Installer::insertLineAfter(
    app_path('Models/User.php'),
    'use Laravel\\Jetstream\\HasProfilePhoto;',
    'use Lab404\\Impersonate\Models\\Impersonate;'
)
bash
php artisan vendor:publish --tag="laravel-jetstream-installers-config"
bash
php artisan vendor:publish --tag="laravel-jetstream-installers-views"