Support the ongoing development of Laravel.io →

4,606 Threads

Why Eloquent use count(*) to join ?

Hi Everyone. I Was wondering why Eloquent use count(*) to join between two tables? For exemple, if I...

0 Likes
0 Replies

Show more after @foreach

Im new to laravel and hoping someone can help me out. I have a simple classifieds page that pulls a...

0 Likes
2 Replies

retrieving multiple records

I am trying to retrieve and show with a blade file more than one record and cant figure out how. If...

0 Likes
3 Replies

How to add/prepend new item in collection without altering the collection keys?

Hi, Any idea how to add an item to the beginning of the collection without altering the collection k...

0 Likes
0 Replies
posted 10 years ago

Date Range starts at 1970, need a date for 1930

MySQL docs states: The supported range is '1000-01-01' to '9999-12-31' But if I create a carbon obje...

0 Likes
3 Replies

Is this relationship possible in Laravel?

I have been banging my head for the last few hours trying to get this to work and have started to qu...

0 Likes
11 Replies

undefined index:car

I have a table called dealer_services having structure as id dealer_id (foreign key) bike car financ...

0 Likes
1 Replies
Solved

Saving dynamically created form field array to db Laravel way

I have this input in my view: {{ Form::text('first_name[]', null, array('class'=>'form-contro...

0 Likes
9 Replies

Laravel 5 Blog Tutorial

Thanks everyone for your support on Larashop tutorial project. Based on requests, we just published...

0 Likes
0 Replies

Which laravel query to use to sort top entries according to related table

Hi all, I have two models: posts and likes. Posts and likes have one-to-many relationship (so, one p...

0 Likes
1 Replies

Inserting data into table with foreign Key

During registration, I am inserting rows into various tables which references another table using fo...

0 Likes
1 Replies
Solved

XML to JSON/Array for Storage

I am working on a project that gets criminal and credit reports for renters from a Credit Bureau. Th...

0 Likes
0 Replies

Migrate only once before testing?

Hello, Is there any way to migrate the testing database only once before all the tests? The Database...

0 Likes
0 Replies
posted 9 years ago

Conditional update query from array

I want to add multiple where clause and multiple field to update in a single query. The code below d...

0 Likes
0 Replies

Get the latest 8 votes on each users.

Hi, I have a table like this: id mobile_number code position_id 1 123123 1...

0 Likes
0 Replies

How to check if user has already invested on a project

I am working on social app where user can invest on many projects and each project corresponds to a...

0 Likes
1 Replies
Solved

Save data into Many To Many relationship

hello , i have some troubles when i try to save into a manytomany's relationship basically i don't k...

0 Likes
0 Replies

Header won't set

I am trying to return an image, however I cannot get the 'Content-type' to set and when I navigate t...

0 Likes
2 Replies
posted 9 years ago

Fire event after all query (eloquent and fluent also).

Dear All! In an application I have to track data table record changes, so I need to define some even...

0 Likes
5 Replies
Solved

Properly save Relationship data

I am attempting to save a related model (Access.php) from my AuthenticationController on login Authe...

0 Likes
0 Replies

Thanks to our community

Solutions given in the past year. Excluding solutions from thread authors.

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.