1. Go to this page and download the library: Download buzkall/finisterre 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/ */
use Arzcode\Finisterre\Contracts\FinisterreReportable;
use Arzcode\Finisterre\Traits\InteractsWithFinisterreReports;
class Order extends Model implements FinisterreReportable
{
use InteractsWithFinisterreReports;
}
public function getFinisterreReportLabel(): string
{
return "Order {$this->reference}";
}
public function getFinisterreReportUrl(): ?string
{
return route('orders.show', $this);
}
use Arzcode\Finisterre\Filament\Actions\ReportIssueAction;
ReportIssueAction::make();