skip to Main Content

How to change index in Laravel Builder Eloquent

Is it possible to customize the index of array in Laravel Builder? I need the index is not incremented from 0 but with some integer This is my code: foreach ($members as $member) { $check[$member->id] = TransactionInNon::where('member_id', $member->id) ->whereYear('created_at', $year)…

VIEW QUESTION

Bug on checkboxes in laravel livewire

I'm having a doble problems with my checkboxes on livewire component. I'm trying to save in my form's table two checkboxes. This checkboxes take their value in an other table named "Garde_type". Checkbox "home" save in my form's table the…

VIEW QUESTION

Laravel Eloquent for where Like

I'm trying to filter account in laravel.1 user can have many accounts with different format. It doesnt seem to work.The query: $accounts = $user->account()->where('account_no','like', ['34%','35%','3303%','3304%'])->get(); i'm wondering if this can be done or not?

VIEW QUESTION
Back To Top
Search