1. Go to this page and download the library: Download andreaselia/laravel-firefly 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/ */
andreaselia / laravel-firefly example snippets
namespace App\Models;
use Firefly\Traits\FireflyUser;
use Illuminate\Notifications\Notifiable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
use HasFactory, Notifiable, FireflyUser;
}
namespace App\Policies;
use Illuminate\Auth\Access\HandlesAuthorization;
use Firefly\Policies\GroupPolicy;
class MyGroupPolicy extends GroupPolicy
{
// ...