1. Go to this page and download the library: Download laravel-persona/monorepo 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/ */
laravel-persona / monorepo example snippets
use Illuminate\Support\Facades\Schedule;
Schedule::command('persona:clean-orphans')->dailyAt('03:00');
namespace App\Models;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Persona\Traits\HasPersona;
class User extends Authenticatable
{
use HasPersona;
}
use Persona\Traits\HasPersona;
class Customer extends Model
{
use HasPersona;
// Retain Persona data even if the Customer record is deleted
public bool $preservePersonaOnDelete = true;
}