Support the ongoing development of Laravel.io →

4,302 Threads

Confirmation on delete help

I am trying to get a bootstrap 3 modal to popup with buttons confirming delete before deleting cust...

0 Likes
8 Replies

Changing accessors with setAppends while eager loading?

I would like to prevent some users from accessing certain database columns based on role management....

0 Likes
0 Replies

Easy problem with a relation one to many

Hi all i'm stuck in a stupid problem that drive me crazy: Users Model class Users extends Eloquent i...

0 Likes
7 Replies

Getting hasMany relationship data from hasOne relationship

Hi All, New to Laravel and MVC so I'm a bit stuck and hoping I can get a solution from you. I have 3...

0 Likes
4 Replies
Solved

Model/Database Design question

Hi everyone, I'm currently developing a small real estate app, and before starting, I was wondering...

0 Likes
2 Replies
posted 10 years ago

Call to undefined method associate()

Hi, I'm trying to associate Users with workgroups... but I keep getting error call to undefined meth...

0 Likes
2 Replies
posted 10 years ago

scope with relationships

Hi everyone, I have some issue with relationships. this my database: user id - integer name - stri...

0 Likes
0 Replies
posted 10 years ago

Count on an associated model

I'd like to get the number of times a tag is entered in the database. Not for a single tag but for a...

0 Likes
0 Replies

How can I get the id from hasMany relationship?

Don't know if I'm doing this right. I have two models: Projects and Clients. Projects table has the...

0 Likes
3 Replies

"Depth to great" when querying relations

I get the message "depth too great" when querying a couple of relations. These are my mode...

0 Likes
2 Replies
Solved

Dynamic validation rules

I need to have some validation rules based on configuration files (those at app/config), so the rule...

0 Likes
2 Replies
Solved

Null value for deleted_at to be '0' and not 'null'

As I have asked a few times before, I'm developing a website/CMS to a game server for which I can no...

0 Likes
6 Replies
Solved

Is there a way to order by data in a pivot table

Hi, I have a pivot table that links users to products. The table has timestamps that are updated wh...

0 Likes
1 Replies

best practices or common conventions around schema documentation?

Hi Laravel Community, As one of your newest members I'm curious if there's common conventions here a...

0 Likes
1 Replies

Why does model->delete not check the return from the database?

I was looking at the code in the delete method of the Model object in Model.php. The code eventually...

0 Likes
0 Replies
posted 10 years ago

How to model a 'MightHaveOneThrough' Relationship

I have a model where current_order_workflow_step is optional order_workflow_step is basially a join...

0 Likes
0 Replies

Eloquent Eager Loading combined with Select Statement

Hi, I want to do something like this: $channel = Channel::select(array( "id", "channe...

0 Likes
1 Replies
posted 10 years ago

slow query

select * from `posts` where (select count(*) from `categories` inner join `post_categories` on `cate...

0 Likes
1 Replies

How to cache specific related model info?

Hi, Let's say a User belongsTo a Language, and to make it simple here's the controller (no repo) : $...

0 Likes
6 Replies

running multiple queries

hi, is there any method to do a multiple queries. From what I want is around like this in mysql quer...

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