Laravel – Unable to convert indexed array to associative array in php
The array $digit now has data in this form : 'numbers' => array ( 0 => '1,2,3', ) But I need that array in the below shown form: 'numbers' => array ( 0 => 1, 1 => 2, 2 =>…
The array $digit now has data in this form : 'numbers' => array ( 0 => '1,2,3', ) But I need that array in the below shown form: 'numbers' => array ( 0 => 1, 1 => 2, 2 =>…
I am working with PHP/Laravel/Inertia to connect with Azure's TTS for a project. I have been getting this consistent error for days with no solution. Any help will be appreciated. Here is the error -reasonPhrase: "Data at the root level…
I installed fresh Laravel 10 with Vite. When I execute from Docker container laravel.test command: npm run build then it works perfectly. However I made setup for this Laravel project in Vagrant where this command shows error: $ npm run…
i have a search feature like this, when you click on the row, it will added to the list. i've been trying to solve this about 3 days now. so i have the same version of the app in my…
i have table like this but, after the submit, the highlighted row disappear and i cannot use the functionality of the highlighted row (jquery) here is the jquery code $(document).ready(function() { // Your initial highlighting the last row var table…
I'm receiving from an external API a list with 3.000 values (car part codes). Now I'm trying to get from my database all entries that contains one of these codes. $q = Product::query(); $q->where('codigo', ''); foreach($keys as $v){ $q->orWhere('codfabrica', $v);…
after updating composer i'm getting this error. i delete the vendor folder and again install the composer but still have erorr . Laravel version is 8.75 php version is 8.0.25 could someone help ? thanks in advance
I have made a blogging application in Laravel 8. I am currently working on submitting comments and comment replies via AJAX instead of doing it "classically". The comment form: <form class="commentForm" method="post" action="{{ route('comment.submit') }}" autocomplete="off"> @csrf <fieldset> <input type="hidden"…
I want add days to created at in database but get this error in laravel, Unexpected data found. Trailing data format column created_at is datetime $packages = Package::find($id); $licenceF = Licence::where('tbl_package_id' , $id) ->select('created_at') ->get(); $date = Carbon::createFromFormat('Y-m-d', $licenceF); $findPackage…
I have a problem with my laravel 8 project, everything in the foreach column raises an error when I test the order, but when I don't order, the error doesn't show up. Controller public function index(Request $request) { $bookings =…