Support the ongoing development of Laravel.io →

4,604 Threads

posted 10 years ago

Geometry field and Eloquent

I'm setting up my models and the table with a GEOMETRY field for geolocation is causing a UTF-8 erro...

0 Likes
2 Replies

Laravel 5.4 login not working!!

After using laravel 5.4 and its awesomeness, i read on a tutorial on multiple authentication of diff...

0 Likes
0 Replies

Issue with Pagination and Group By

Ive got an issue with my application when i add paginate to the statement, it comes up with an error...

0 Likes
1 Replies

What's the best way to access distant relations through a method in my Address Model?

I have an Address, Zip, City and State model and I would like to create an easy way to access the St...

0 Likes
0 Replies

Update multiple user details when new user is registered in laravel php

Here is register new user code in php laravel-5.4 mysql ####################code here starts######...

0 Likes
2 Replies
Solved

Call to a member function getDateFormat() on null

I've just installed laravel 5.3.16 And I've added composer require jenssegers/mongodb package to my...

0 Likes
1 Replies

Laravel Query Builder Issue with get()

I'm following the Laravel from Scratch series from laracasts and am trying to build my own website....

0 Likes
1 Replies
Solved

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

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.