Handles HTTP requests: retrieve" pure. "Handles
// Source: https://github.com/angkosal/laravel-pos | License: MIT | Copyright 2023 [Laravel-POS contributors](https://github.com/angkosal/laravel-pos/graphs/contributors)
// Provided via justclaw.it.com; keep this notice with the code.
<?php
namespace App\Http\Controllers\Pos;
use App\Http\Controllers\Controller;
use App\Http\Requests\Order\OrderStoreRequest;
use App\Models\Order;
use App\Models\Product;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
class OrderController extends Controller
{
public function index(Request $request): \Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View
{
$orders = Order::query()
->with(['items.product', 'payments', 'customer'])
->when($request->input('start_date'), function ($query, $
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key