Support the ongoing development of Laravel.io →

4,597 Threads

Moving to Laravel, if I have a Codeigniter background?

Suppose I'm familiar with developing applications in Codeigniter, but now I'd like to start using La...

0 Likes
0 Replies

Composite PK for organization, role, permission?

I am trying to implement a DB schema in which I have users that belong to one organization or more,...

0 Likes
1 Replies

Laravel 5 – querying items by many-to-many related model (value in pivot table)

Hello! I've got a following many-to-many relation: attendees - attendee_tag - tag where attendee_ta...

0 Likes
0 Replies

Distribute collection into collection of related domain model

So I have relations : class Folder extends Model { public function files() { return...

0 Likes
0 Replies

Why Laravel consumes more memory compared to normal PHP?

I am checking the memory usage in normal PHP as well as Laravel and Laravel is consuming more memory...

0 Likes
0 Replies

Eloquent cursor not working as expected - trying to load whole table

Hi, I am having an issue with the Eloquent's cursor method. foreach (ORM::where('sent', false)->w...

0 Likes
0 Replies

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'email' cannot be null

In my application I am trying to get the user logged in via social media such as Instagram. With the...

0 Likes
0 Replies
posted 7 years ago

SQL

Good morning, how to do the query below add the two counts and calculate the percentage of one resul...

0 Likes
1 Replies

Distinct returns wrong count in Laravel 5.4

I am using Laravel 5.4 and MYSQL I have a table 'products' and a related attribute table 'products_a...

0 Likes
2 Replies
posted 9 years ago

Discussion: is it me or does SQL suck badly?

Hi guys, I would love to hear your opinions. I think that SQL sucks. I consider it one of leftovers...

0 Likes
15 Replies

Check the status of a record in the Database and return a value

Hello everyone, I'm starting with Laravel and I'm really enjoying it. I need your help, I need to qu...

0 Likes
1 Replies

The response content must be a string with first()

I use Lumen and I get this error when I use the first() method to get a single result from a query:...

0 Likes
1 Replies

Eloquent and Unions

Hi, I'm using Laravel 5.1 It is possible to construct this query with eloquent ORM? SELECT SUM(CASE...

0 Likes
1 Replies

Laravel Eloquent Saving by batch

is there any way on how to save a Whole batch of file using eloquent ? For example I have a 1000 ite...

0 Likes
1 Replies

Customer count by day for the last 30

Hi Everyone! I am working on building out charts and a little confused on the best approach. I am lo...

0 Likes
0 Replies

Eloquent Query pivot data

Hi, I am having problem with my query. I have 4 tables users,prospects,leads,items. All of them rela...

0 Likes
0 Replies
posted 7 years ago

In query, Laravel shows error, but query works

I have an interesting conundrum where creating a query in Laravel is giving me an error, but if I co...

0 Likes
1 Replies

Define a relationship as a union

Hi, I would like to know if there is a way to define a relationship as a union of two tables? I've a...

0 Likes
1 Replies

Laravel 5.4 Database Placement Questions

I know how I can get the data needed, but want to follow Laravel/MVC practices here and new to it. I...

0 Likes
1 Replies

what should contain in pivot table

I'm trying to use pivot table. But I'm confused how should I define my database tables. Concept: Pac...

0 Likes
1 Replies
Solved

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.

© 2024 Laravel.io - All rights reserved.