PHP code example of reynotech / dev-login-laravel

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

    

reynotech / dev-login-laravel example snippets


return [
    'output' => '/path/to/frontend/.dev-login/users.local.json',
    'profiles' => [
        ['id' => 'admin', 'title' => 'Administrator', 'user' => '[email protected]'],
    ],
    'persist' => static function (array $profile, string $password, array $options): void {
        // Create or update a local account using the project's models.
        // Apply its role and revoke old sessions if the password changed.
    },
];
bash
vendor/bin/dev-login-seed --config=/path/to/dev-login-config.php --organization=2