Support the ongoing development of Laravel.io →

4,312 Threads

posted 10 years ago

Problem with relationships between three tables

Hi I'm building a small site for me and my friends where we will report our golf scores so we can se...

0 Likes
3 Replies

[solved]Best way to create friendship between users

I'm trying to figure out what would be the best way to create options for users to add friends, I ha...

0 Likes
2 Replies
Solved

Database Eloquent Modeling with dynamic table names ?

How can I model dynamic tables names. For example. A product has orders, all orders for the same pr...

0 Likes
1 Replies
Solved

Best Practices for Validation Inside Models

I just came across an example that put the validation inside of a model like so: class User extends...

0 Likes
4 Replies
Solved

Database Truncate Even If It Has Foreign Key

I have a database seeder begins with: DB::table('lessons')->truncate(); But when I run seeder, [I...

0 Likes
3 Replies
Solved

Eloquent model event executed on Query\Builder instead of Model

Hi everyone, i have pretty weird problem. I am developing a project with Laravel with my laptop (XAM...

0 Likes
1 Replies
Solved

Need help modelling relationships

So I'm creating a very simple project/task management application in Laravel 4 and I'm not sure how...

0 Likes
3 Replies

foreach on eloquent from last to first

I have a post object that has comments: $post->comments now when I do a select on the comments Im...

0 Likes
2 Replies
Solved

query returning something wrong

Hi... I started using laravel 2-3 months ago and for the first time I have a problem I can't solve :...

0 Likes
1 Replies
Solved

Survey Design

I am looking to create a dynamic form survey using a database with questions, answers, and associati...

0 Likes
0 Replies
posted 10 years ago

Eloquent hasOne Relationship, MSSQL good, but returning null

Using a MSSQL DB, I have a relationship set up between Vm hasOne to Vmconfig Vm <?php class Vm...

0 Likes
1 Replies

Call to undefined method error while getting the data

these are my relations.. User model public function posts() { return $this->hasMany('Post'...

0 Likes
1 Replies

Post request with Media temple

Hello, I'm new to the world of Laravel my first app is running ok locally through mamp when i'm tryi...

0 Likes
2 Replies

datetime or timestamp for created_at and updated_at ?

Hello. When updating data in my MySQL-Database, the updated_at column does not update its time. I am...

0 Likes
1 Replies

Many to Many Relationship problem

So i have problem about many to many relationship implementation in laravel I have two model, User a...

0 Likes
1 Replies
Solved

How to save XML response output to file for uploading with SSH::into()?

In my controller I have the following with $registration_data coming from the database and the xml.i...

0 Likes
1 Replies

Eloquent ORM relationship array trouble

Hello, I'm stuck with this problem. I have these databases: -users with id, first_name et cetera......

0 Likes
0 Replies

problem in accessing value from parentmost table.

I've four tables.User,Post,Reply and Confirm tables. And the relation is User has many posts posts...

0 Likes
2 Replies
posted 10 years ago

Accessing data from table using relationship

I've users,posts,comments table. Here are my models user model public function posts() { return $...

0 Likes
6 Replies
Solved
posted 10 years ago

Selecting database created values via whereRaw?

Hi there. I'm trying to do a PostGIS search using Eloquent, which works fine for simply selecting al...

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.