PHP code example of ilbronza / clients
1. Go to this page and download the library: Download ilbronza/clients 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/ */
ilbronza / clients example snippets
route('clientsmanagerclients.index');
route('clientsmanagerclients.edit', ['client' => $client->getKey()]);
route('clientsmanagerdestinations.index');
route('clientsmanagerreferents.index');
'defaultRoles' => ['administrator', 'clientsManager'],
'routeRoles' => [
'clientsmanagerclients.destroy' => ['administrator'],
'clientsmanagerdestinations.deleteMedia' => ['administrator'],
'clientsmanagerclients.update' => [], // nega l'accesso a tutti
],
route('clientsmanagerdestinations.deleteMedia', [
'destination' => $destination->getKey(),
'media' => $media->getKey(),
]);
'validation' => [
'rejectDuplicateFiscalIdentifiers' => false,
],
$destination = $client->createDestination();
$destination->setAsDefault();
$destination->setAsLegal();
$referent = $client->createReferent(['email' => '[email protected] ']);
$destination->referents()->syncWithoutDetaching([$referent->getKey()]);
$this->app['config']->set('clients.models.client.class', \App\Models\Client::class);
$this->app['config']->set('clients.models.client.controllers.index', \App\Http\Controllers\ClientIndexController::class);
$this->app['config']->set('clients.models.client.parametersFiles.edit', \App\Http\Parameters\ClientEditParameters::class);
sh
composer n vendor:publish --tag=clients.config
php artisan migrate
sh
php artisan vendor:publish --tag=clients.translations
sh
php artisan storage:link
sh
php ../.ibtest/vendor/phpunit/phpunit/phpunit -c phpunit.xml