1. Go to this page and download the library: Download robrogers3/laracastle 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/ */
robrogers3 / laracastle example snippets
php artisan ui bootstrap --auth
# or
php artisan ui vue --auth
# or
php artisan ui react --auth
Route::get('home', function () {
// Only verified users may enter...
})->middleware('verified'); // verified middleware is the key!
//...
use App\User;
use robrogers3\Laracastle\UserInterface;
//...
public function boot()
{
$this->app->bind(UserInterface::class, function ($app) {
return User::class;
});
}