Welcome Guest, Not a member yet? Register   Sign In
Proper way to get array from session
#6

(04-18-2021, 03:20 AM)iRedds Wrote: This will return null because there is no matching data.

You cannot get the data using:
session('error')['meta']['featured_image']
for ['error' => ['meta.featured_image' => '...']]

the input I have is this:

PHP Code:
<input type="file" id="featuredImage" accept=".png, .jpg, .jpeg" name="meta[featured_image]"

I guess session('error.meta.featured_image') should be correct?
Reply


Messages In This Thread
RE: Proper way to get array from session - by sfarzoso - 04-18-2021, 07:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB