1. Go to this page and download the library: Download xuple/evolayer-base 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 Xuple\EvoLayer\Base\Support\Toast;
Toast::success('Done.');
// or directly:
Inertia::flash('toast', ['type' => 'success', 'message' => 'Done.']);
interface AdminGate {
public function isAdmin(?Authenticatable $user): bool;
public function can(?Authenticatable $user, string $ability, mixed $resource = null): bool;
}
// In a variant package's ServiceProvider::boot()
app(\Xuple\EvoLayer\Base\Support\OntologyRegistry::class)
->register('evolayer.commerce', __DIR__.'/../ontology.yaml');