I store the data correctly but when I try to get a data in edit function it shows me this error SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘staff.staff_id’ in ‘field list’ (SQL: select users.*, staff.staff_id as pivot_staff_id, staff.user_id as pivot_user_id, staff.staff_type as pivot_staff_type, staff.role as pivot_role, staff.created_at as pivot_created_at, staff.updated_at as pivot_updated_at from users inner join staff on users.id
Tag: laravel-4
Trying to get property ‘page’ of non-object while using session variable
I am trying to put $request in the session variable but when I try to get in the controller its showing error Trying to get property ‘page’ of non-object. code below Session::put(‘request’, $request-&…
Laravel redirect()->intended() is not working in custom login controller
I have a custom login controller and its using return redirect()->intended(route(‘home’)) , as per the documentation this should send the user redirect the user to the URL they were attempting to access before being intercepted by the authentication middleware. But for my case every time it is redirecting to home route.I am sure i have done correctly or at least
Decrease product quantity in database after order is placed with Laravel
I have cart on the site and so far everything work perfectly. Now I’m trying to make quantity for each product which admin can add in backend ( already done ) and when customer order product(s) to …
Required_if laravel with multiple value
I have a dropdown menu like this: