PHP code example of jeffersongoncalves / laravel-erp-projects
1. Go to this page and download the library: Download jeffersongoncalves/laravel-erp-projects 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/ */
jeffersongoncalves / laravel-erp-projects example snippets
use JeffersonGoncalves\Erp\Projects\Services\TimesheetService;
// Timesheet -> Sales Invoice (draft; caller supplies the Receivable + income accounts)
$invoice = app(TimesheetService::class)->createSalesInvoice($timesheet, $receivable->id, $income->id);
$invoice->submit();
bash
php artisan vendor:publish --tag="erp-core-migrations"
php artisan vendor:publish --tag="erp-accounting-migrations"
php artisan vendor:publish --tag="erp-projects-migrations"
php artisan migrate
bash
php artisan vendor:publish --tag="erp-projects-config"