PHP code example of seblhaire / specialauth
1. Go to this page and download the library: Download seblhaire/specialauth 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/ */
seblhaire / specialauth example snippets
'providers' => [
Seblhaire\Specialauth\SpecialauthServiceProvider::class,
Seblhaire\Specialauth\PasswordResetServiceProvider::class
]
'guest' => \Seblhaire\Specialauth\Http\Requests\RedirectIfAuthenticated::class,
php artisan make:policy UserPolicy
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
{{ csrf_field() }}
</form>