1. Go to this page and download the library: Download cmsig/seal-laravel-package 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/ */
cmsig / seal-laravel-package example snippets
// config/cmsig_seal.php
return [
/*
|--------------------------------------------------------------------------
| Schema configs
|--------------------------------------------------------------------------
|
| Define different directories for the schema loader.
*/
'schemas' => [
'app' => [
'dir' => resource_path('schemas'),
],
],
/*
|--------------------------------------------------------------------------
| engines
|--------------------------------------------------------------------------
|
| Directory where the latte templates can be found.
*/
'engines' => [
'default' => [
'adapter' => env(
'ENGINE_URL',
'meilisearch://127.0.0.1:7700',
),
],
],
];
class Some {
public function __construct(
private readonly \CmsIg\Seal\EngineInterface $engine,
) {
}
}
class Some {
private Engine $engine;
public function __construct(
private readonly \CmsIg\Seal\EngineRegistry $engineRegistry,
) {
$this->engine = $this->engineRegistry->get('algolia');
}
}
bash
php artisan cmsig:seal:index-create --help
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.