skip to Main Content

Grouping returned collection by a date – Laravel

I've got this function: public function getOverdue() { $jobs = Job::where('RequiredTime', '<', Carbon::now()->addDays(10)->endOfDay()) ->where('JobCancelled', '=', 0) ->where('JobCompleted', '=', 0) ->where('Ref9', '=', null) ->where('CreateDateTime', '>=', Carbon::now()->startOfMonth()) //->groupBy('RequiredTime') ->orderBy('RequiredTime', 'asc') ->get(); return view('pages.dispatch.overdue', [ 'title' => 'Overdue', 'page' => 'Overdue', 'js_action' =>…

VIEW QUESTION

Laravel – How to dispatch function in x-data alpine from livewire 3

I would like to call a function called "syncBudget" <div wire:key="extendForm" class="card p-3 border-0 shadow-sm space-y-3" x-data="() => { return { length: @entangle('length'), lengthType: @entangle('lengthType'), coupon: @entangle('coupon'), partnerPackage: {{ $partnerPackage }}, total: @entangle('total'), couponDiscount: @entangle('couponDiscount'), lengthDiscount: @entangle('lengthDiscount'), amountToPay: @entangle('amountToPay'), syncBudget:…

VIEW QUESTION

Laravel AJAX error 419 (unknown status) (Even though has CSRF token)

POST http://127.0.0.1:8000/admin/upload/services 419 (unknown status) CSRF token mismatch Even though it has csrf token, it still has error 419 (unknown status) CSRF token mismatch ................................. $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); /* Upload file */ $("#upload").change(function(){ const form =…

VIEW QUESTION
Back To Top
Search