Support the ongoing development of Laravel.io →

4,311 Threads

Is there a way to alter the UPDATE SQL generated by Laravel?

I am trying to implement data version-checking, so that when a user A tries to save data, the operat...

0 Likes
5 Replies
posted 9 years ago

Creating/Inserting relations in Eloquent

Hi, How i can add relationship into object but don't save it now. Example: $user = new User(); $user...

0 Likes
9 Replies

User Email Preferences

I'm trying to create table that I can store email preferences for each user. So far I've created a e...

0 Likes
2 Replies

Update, updating model fails

Hi! I've encountered a problem updating and update a Model. I dont have any helpful snippets to show...

0 Likes
0 Replies
posted 9 years ago

can i access the object under hasmany?

hi all , i got some question about the Eloquent i have an album contains many photo, and each of tho...

0 Likes
2 Replies
posted 9 years ago

belongsTo relationship with pivot table

Hi, I'm just start using Laravel and run into a relationship problem. I've got basic many-to-many re...

0 Likes
3 Replies
Solved
posted 9 years ago

if cannot find column create it

Hi, I have a query from a sevice that has many colmns. I will store this data in my table. I want to...

0 Likes
0 Replies

SOLVED: Misunderstanding something in eloquent with naming!

I'm sorry about the title, maybe it isn't appropriate for this thread but i really need your attenti...

0 Likes
10 Replies
Solved

Querying calculated fields.

Even though I'm selecting a column as another column I cannot perform a query on the aliased column....

0 Likes
1 Replies

Father/Mother/Children relationship design

Hello, I am struggling with a simple binary relationship design. I have my DB set up the way, where...

0 Likes
3 Replies

How to create slugs automatically with Eloquent in Laravel

Hello everyone, This article uses the test driven development to illustrate how to create slugs for...

0 Likes
0 Replies

custom (Eloquent?) method

Hi, I have the following situation: I have the tables: actions action_access_ids It's a one-to-many-...

0 Likes
1 Replies

case and inner join with Eloquent

I'm newbie at laravel and i searched for hours but i can't find how can i set this query with larave...

0 Likes
1 Replies

Custom categorization database

Hi, I'm currently working on a e-commecr site and the following is how I structured my items ** note...

0 Likes
1 Replies

Using REST

I am wanting to hook into the expedia API and return live data as JSON or XML. Should I try to find...

0 Likes
3 Replies

Timestamps (both updated_at and created_at) have default value of 0000-00-00 00:00:00?

I have created some test model classes, which have corresponding migrations and seeders. It all work...

0 Likes
0 Replies
posted 9 years ago

Eloquent dynamic orWhere Query

Can someone show me how to write this in Eloquent? SELECT * FROM `projects` WHERE `id`='17' OR `id`=...

0 Likes
1 Replies

What is the best design pattern for a shopping cart within the Laravel framework?

Hi all, At the moment I am developing an ecommerce solution based on the Laravel framework. One of t...

0 Likes
0 Replies

Hierarchy and sales in Eloquent

Hi! Introduction I'm currently in the making of a sales report system. Customers will be able to bui...

0 Likes
0 Replies

Laravel Points/Rewards System

Hello all, I'm a newbie at using frameworks like laravel, and its a great framework BTW, im knowledg...

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.