PHP code example of mozhuilungdsuo / impersonator
1. Go to this page and download the library: Download mozhuilungdsuo/impersonator 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/ */
mozhuilungdsuo / impersonator example snippets
return [
'enabled' => false,
'allowed_emails' => [
'[email protected]',
],
'restricted_emails' => [
'[email protected]',
],
];
return redirect()->back()->with('error', 'User not found.');
bash
php artisan vendor:publish --provider="Mozhuilungdsuo\Impersonator\ImpersonateServiceProvider"
bash
php artisan migrate