Hide attribute API resource

Hello guyz I have a question please , I'am using api resource to build my api I have a relation between contact and lead , in the lead resource I have...

SQLSTATE[HY000]: General error: 1364 Field 'album_id' doesn't have a default value

I want to link images to the related album and I want to link multiple images to multiple albums. I get the following error: "SQLSTATE[HY000]: General error: 1364 Fiel...

"syntax error, unexpected 'return' (T_RETURN)"

I am trying to use a destroy and then redirect back to the cart with a success method but getting the following error. "syntax error, unexpected 'return' (T_RET...
Laravel
14
65

Merge arrays into one array on a collection

I have my $data which I do $data->pluck('services') which returns a array of arrays, or is it a collection of arrays? Anyways, how can I merge it all down to a single ar...

Only social login

I am building an app specifically for my school and as such would like to only use social logins, not username and password. How would I go about doing that?...

This page isn’t working 127.0.0.1 redirected you too many times pagination error

adding the pagination for filters when it redirects to second page returns error This page isn’t working 127.0.0.1 redirected you too many times. controller...

laravel tinker error

when i insert a data to the database table using laravel tinker it display null what is the problem can someone help me...

Display Data based on user role

Greetings, i am novice in laravel ,I am trying to fetch all the data on admin profile .On the admin page he want to see the requests made by all users. Login function for r...

Dynamic fields in a table not working after hitting submit button

Am working on a Laravel app whereby am fetching some data from the controller and displaying on the view in a table structure (inside the tbody). On each row I have added a...

How to Fetch Relations in Laravel Activity Log

How do i get relations in Activity->properties column For Example :- This is the output of $logs->properties I want to fetch leave type nam...

Guzzle Get Request Loading

Guzzle version(s) affected: "guzzlehttp/guzzle": "^6.3", PHP Version:"7.2.10", Client {#827 ...

Block request

Does anybody know how to block two request or more on the same route in the same second?...

Bind a select field from db

Hello everyone! I want to bind db value to <option> tag of select field so that db value will be first in select list, and other option...
Laravel
14
186

Where condition with related data

I need to do an where condition in query. Users::with('job')->get(); This will get all Users with related jobs, i need to do where condition l...

How to get the duration date and time between two timestamp("create_at")

Hey, I need some help, I want to get the duration or difference of two timestamps in the same column in the database, how to deal with it?...
Laravel
19
94

How can i get resource store route laravel

My Add form code <form method="post" name="m_form" action="{{url('post')}}"> <input type="hidden" name="...
Laravel
39
250

How to manage multiple authentication guards and rights ?

Hello, I used on my project laravel 5.6 a multiple authentication guards as follows (Super Admin guard, Admin guard, Agency User guard, and simple user guard) For t...

Cashier Error, name cannot be null

Hi. I'm just trying to get the subscriptions working but I keep hitting this error, PDOException: SQLSTATE[23000]: Integrity constraint violation: 104...

Passport 'Frontend Quickstart' usage / docs

I'm familiarising myself with Passport. I've just been through the Passport docs and noticed what se...
Create a New Discussion Button
Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels