skip to Main Content

How to access array of files from Laravel request

I have an Laravel request in which there is an array for uploaded files. When doing dd($request); I get the following response for the request object. +request: SymfonyComponentHttpFoundationInputBag {#37 ▼ #parameters: array:6 [▼ "_token" => "0YgPQyZ6fDvKfqohFzLTrV6GVs2xLmu60Vh2H3Je" "_method" => "post" "shortdescription"…

VIEW QUESTION

Query Correction of Laravel

I am using this Query. Safety::with( ['imageName'] )->where( ['property_id', '=', $property->property_id ], ['unit_id', '=', $property->unit_id ],['type','=', 'gas' ])->latest()->first(); I am getting error SQLSTATE[42S22]: Column not found: 1054 Unknown column '0' in 'where clause' . Is there any issue in the…

VIEW QUESTION

Laravel – How I can import all js and all css that reside in resourced folder, in my vite config without need to define them one by one?

In my laravel 10 project I load a js as: @vite(['resources/js/myjs.js']) And my vite.config.js contains the follwoing settings import { defineConfig } from 'vite'; import laravel from 'laravel-vite-plugin'; import inject from "@rollup/plugin-inject"; export default defineConfig({ plugins: [ laravel({ input: […

VIEW QUESTION
Back To Top
Search