1. Go to this page and download the library: Download chivincent/laravel-kratos 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/ */
// app/Models/User.php
use Chivincent\LaravelKratos\Models\KratosIdentity;
use Chivincent\LaravelKratos\Models\KratosUser;
use Illuminate\Contracts\Auth\MustVerifyEmail;
// If using "kratos" user provider:
class User extends KratosIdentity implements MustVerifyEmail
{
}
// If using "kratos-database" user provider:
//class User extends KratosUser implements MustVerifyEmail
//{
//}