PHP code example of bpocallaghan / impersonate
1. Go to this page and download the library: Download bpocallaghan/impersonate 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/ */
bpocallaghan / impersonate example snippets
public function register()
{
if ($this->app->environment() == 'local') {
$this->app->register(\Bpocallaghan\Impersonate\ImpersonateServiceProvider::class);
}
}
php artisan vendor:publish --provider="Bpocallaghan\Impersonate\ImpersonateServiceProvider" --tag=view
php artisan vendor:publish --provider="Bpocallaghan\Impersonate\ImpersonateServiceProvider" --tag=config