Support the ongoing development of Laravel.io →

4,302 Threads

Append columns to the requested columns

OK, just need a quick help, hope you guys can help me out. What I need is to append some columns to...

0 Likes
4 Replies
posted 10 years ago

Eloquent Eager Loading

Hi, I have 3 models: User Post Comment Comment belongs to a user and a post. A user has many posts a...

0 Likes
4 Replies

DB join not working as expected

<code> /* DB Structure Table: roles id || name Table: permissions id || name || display_name J...

0 Likes
0 Replies

Transaction doesn't rollback in paticular models.

Hi. I'm replacing old system to new laravel based one. There are many Database-Servers and tables, a...

0 Likes
1 Replies
Solved

Return collection with relations as json

Hello Laravel forum! I'm having trouble returning an eloquent collection with relations as json. Thi...

0 Likes
2 Replies

One model and multiple tabels

Can one model manage multiple tabels? I have Image class and 3 type of users(for each user i have o...

0 Likes
1 Replies

How to set the Primary Key and Foreign Key to string

I'm not using the auto increment for the id instead i'm using the 32 char unique id. So when i creat...

0 Likes
6 Replies
Solved

Laravel Queue with AWS

Let's say i'm submitting multiple Job to Queue with the same Job name. But while one job is processe...

0 Likes
0 Replies

Eloquent/DB design for draft/live content

I have a CMS/app setup where an admin can make changes, but the changes are only temporary/drafts un...

0 Likes
1 Replies

No Error Reported when Mysql table column missing

Trying to insert into a table using Eloquent where updated_at column was missing did not throw any e...

0 Likes
1 Replies

Booleans in JSON API

Hey! I'm trying to build a simple json api where some attributes are of type boolean. The problem is...

0 Likes
4 Replies
Solved

Unexpected behavior: Session blocking model events

Problem: Model events (Model::saving, etc...) don't work anymore after putting an instance of the mo...

0 Likes
1 Replies

Converting Empty String To Null

I'm not sure how everyone else does it, but just wanted to get some thoughts (and cleanup) on how I'...

0 Likes
0 Replies

Simple Arrays with ID as Key

I know that Laravel has a wonderfully useful lists() method that you can use with either Eloquent or...

0 Likes
0 Replies

the syntax for redirection and the where clause

Hello So, I want to get routes like these myweb.com/account/company1/adm myweb.com/account/company2...

0 Likes
0 Replies

Keep data to all views

Hi, I`m new with laravel and I have one question. I have to get some data from database and keep dat...

0 Likes
1 Replies
posted 10 years ago

Method [all] does not exist.

Hi why do I get this error? $email = Email::all(); BadMethodCallException Method [all] does not e...

0 Likes
1 Replies
posted 10 years ago

Relationships

Hello, Is it possible to create eloquent relations for the following situation: A blogs page where b...

0 Likes
3 Replies

[Package] Listify - Turn your model into a list!

Hello! I wanted to post a link to a package I've been working on for the last couple of months. I'm...

0 Likes
5 Replies

How do I update value of subsequent parent records

I have two tables: members and contributions. The members table has a recursive relationship, that i...

0 Likes
4 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.

© 2024 Laravel.io - All rights reserved.