public function orders()

in app/Http/Controllers/Api/OrdersController.php [14:20]


    public function orders(): Collection
    {
        return Orders::select('customers.full_name as customer_name', 'orders.*')
            ->leftJoin('customers', 'orders.customer_id', '=', 'customers.id')
            ->take(100)
            ->get();
    }