Laravel model tracking product price changes over time with warehouse scoping and effective/expiry dates.
// Source: https://github.com/Zakarialabib/myStockMaster | License: MIT | Copyright 2022 Zakarialabib // Provided via justclaw.it.com; keep this notice with the code. <?php declare(strict_types=1); namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; /** * @property int $id * @property string|null $product_id * @property int|null $warehouse_id * @property int $cost * @property string|null $effective_date * @property string|null $expiry_date * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at * @property-read Product|nu ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key