skip to Main Content

Inertia redirect issue in Laravel with Vue

I have a modal in vue where I call this function const createChat = async (id) =>{ try { const response = await axios.post('/pdf-chat/create-chat', { name: name.value, pdfId: id, }); dialogVisible.value = false; console.log(response) } catch (error) { console.error('Error sending…

VIEW QUESTION

Laravel Controller date query

this is my code in my controller: public function getPublicPost($school_id){ $public_feeds = app(AllyFeedRepository::class)->query() ->whereHas('user_detail', function($q){ $q->whereNull('deleted_at'); }) ->with('user_detail:id,name,profile_photo_path,deleted_at','userInstance:id,user_id,role_id','userInstance.role:id,name','announcement:id,description,file_path,type,deleted_at') ->whereSchoolId($school_id) ->orWhere('school_id' ,'=', null) ->orderBy('created_at','DESC') ->paginate(15); return $public_feeds; } then I add ->whereDate('deadline_viewing', '>=', now()) in my query suddenly I can't fetch…

VIEW QUESTION

Javascript – Vue3 – How to enable/disable text input and checkbox based on input number

<div class="container-body" v-for="index in 10" :key="index"> <div class="container-content"></div> <div class="container-content"> <input :id="'Row'+index+'-input1'" type="text"> </div> <div class="container-content"> <input :id="'Row'+index+'-input2'" type="text" class="disabled"> </div> <div class="container-content"> <div class="custom-control custom-checkbox"> <input :id="'Row'+index+'checkbox'" class="form-check-input" type="checkbox" disabled> </div> </div> <div class="container-content delete"> <img/> </div> </div> I…

VIEW QUESTION
Back To Top
Search