skip to Main Content

Laravel Multiple Record with single query not working

General error: 1364 Field 'challen_student_id' doesn't have a default value (SQL: insert into challens (updated_at, created_at) values (2022-10-04 08:53:41, 2022-10-04 08:53:41)) $students = Student::all('id'); $collection = collect($students)->map(function ($student) use($request) { $collect = collect(['challen_student_id', 'challen_month', 'challen_due_date', 'challen_fine', 'challen_exam_fees', 'challen_status']); return $collect->combine([$student->id,…

VIEW QUESTION

Why I can not call Implementation method from library class? – Laravel

In laravel 9 app I created class app/Implementations/LocalStorageUploadedFileManagement.php : <?php namespace AppImplementations; use AppInterfacesUploadedFileManagement; ... use InterventionImageFacadesImage as Image; class LocalStorageUploadedFileManagement implements UploadedFileManagement { ... public function getImageFileDetails(string $itemId, string $image = null, string $itemUploadsDirectory = '', bool $skipNonExistingFile =…

VIEW QUESTION

Laravel SOAP request call

I'm looking to get access to a specific API (found here: https://jigsaw.w3.org/css-validator/manual.html#api), however this is a SOAP api and I've never worked with SOAP. So I install this package: https://codedredd.github.io/laravel-soap/ and I try a test call. It looks like this:…

VIEW QUESTION
Back To Top
Search