ProductUnitQuantitiesCrud

NexoPOS · pos, crud-operations, product-units, business-rules, validation

Manages CRUD operations for product unit quantities, enforcing business rules via exceptions.

<?php

namespace App\Crud;

use App\Exceptions\NotAllowedException;
use App\Models\ProductUnitQuantity;
use App\Models\User;
use App\Services\CrudEntry;
use App\Services\CrudService;
use Illuminate\Http\Request;
use TorMorten\Eventy\Facades\Events as Hook;

class ProductUnitQuantitiesCrud extends CrudService
{
    /**
     * Define the autoload status
     */
    const AUTOLOAD = true;

    /**
     * Define the identifier
     */
    const IDENTIFIER = 'ns.products-units';

    /**
     * define the base table
     */
    protected $table = 'nexopos_products_unit_quantities';

    /**
     * Define namespace
     *
     * @param  string
     */
    protected $namespace = 'ns.products-units';

    /**
     * Model Used
     */
    protected $model = ProductUnitQuantity::class;

    /**
   

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key