PHP code example of depakespedro / laravel-auth-url

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

    

depakespedro / laravel-auth-url example snippets


use Depakespedro\LaravelAuthUrl\Facades\Manager;
$user = App\User::find(1);
$redirectSuccess = '/success';
$paramsQuery = ['foo' => 'bar'];
$authUrlModel = Manager::createUrl($user, $redirectSuccess, $paramsQuery);

Depakespedro\LaravelAuthUrl\Models\AuthUrl

$authUrl = $authUrlModel->getUrlAuth()
config/app.php
text
php artisan vendor:publish --provider='Depakespedro\LaravelAuthUrl\Providers\AuthUrlServiceProvider' --tag=config
text
php artisan vendor:publish --provider='Depakespedro\LaravelAuthUrl\Providers\AuthUrlServiceProvider' --tag=migrations
php artisan migrate
text
php artisan vendor:publish --provider='Depakespedro\LaravelAuthUrl\Providers\AuthUrlServiceProvider' --tag=controller