PHP code example of freeline / pdv
1. Go to this page and download the library: Download freeline/pdv 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/ */
freeline / pdv example snippets
return [
'mode' => env('PDV_MODE', 'erp'),
'load_migrations' => true,
'load_standalone_migrations' => false,
'load_standalone_routes' => false,
'web_session_auth' => true,
'access_permission' => env('PDV_ACCESS_PERMISSION', 'pdv.acessar'),
'web_middleware' => ['web', 'auth', 'verified', 'pdv.web.access'],
'models' => [
'user' => App\Models\User::class,
'product' => App\Domain\Produtos\Models\Produto::class,
'produto' => App\Domain\Produtos\Models\Produto::class,
'estabelecimento' => App\Domain\Pessoas\Models\Estabelecimento::class,
],
'adapters' => [
'product_catalog' => App\Infrastructure\Pdv\Adapters\ErpProductCatalogRepository::class,
'stock_movement' => App\Infrastructure\Pdv\Adapters\ErpStockMovementService::class,
'operator' => App\Infrastructure\Pdv\Adapters\ErpOperatorResolver::class,
'company_context' => App\Infrastructure\Pdv\Adapters\ErpCompanyContextResolver::class,
'fiscal_config' => App\Infrastructure\Pdv\Adapters\ErpFiscalConfigProvider::class,
'payment_methods' => App\Infrastructure\Pdv\Adapters\ErpPaymentMethodRepository::class,
],
'vite_inputs' => [
'resources/js/pdv/app.js',
],
];
bash
php artisan optimize:clear
php artisan package:discover
bash
php artisan vendor:publish --tag=pdv-config
bash
php artisan vendor:publish --tag=pdv-assets --force
bash
php artisan migrate --pretend
bash
php artisan migrate --force
bash
php artisan migrate --path=vendor/freeline/pdv/database/migrations/core --force
bash
php artisan migrate --force
bash
composer update freeline/pdv notagil/integration-sdk -W
php artisan optimize:clear
php artisan vendor:publish --tag=pdv-assets --force
php artisan migrate --force
npm run build