Support the ongoing development of Laravel.io →

4,300 Threads

Package that tracks page views in a time range: last day, week, month, all time

"Popularity" is a Laravel 4 package for tracking popular Eloquent elements of a website in...

0 Likes
4 Replies

Limit Relationships in Eloquent

Hello All, I have a self project. I am trying to create an application that can track my financial s...

0 Likes
1 Replies
Solved
posted 10 years ago

L 4.1.21 - query whereIn array not working?

I've tried 3 different versions but without any success. What am I doing wrong? Controller $user...

0 Likes
2 Replies
Solved

hasManyThough return wrong ID

Hi Every body, my code is here http://laravel.io/bin/NmmV Categoria -> Fisrt Model, parent of the...

0 Likes
2 Replies
Solved

Looking for a Freelance Laravel Developer from the Netherlands

Hi, For a client we've building a Laravel 3.x application for his business. We decided to focus our...

0 Likes
1 Replies
posted 10 years ago

Using Setter/Getter IoC in Models

I have a setter/getter container that works in my controllers. How can I use the getters in my model...

0 Likes
0 Replies

Fields to organize entries in my DB (order_by Myfield)

Hello, I started on Laravel after a lot of sites on Codeigniter. So I try in my first dev to respect...

0 Likes
1 Replies

Eloquent models with IoC

I'm using the IoC Container to allow me to run model validation automagically, by binding a User mod...

0 Likes
5 Replies
Solved
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

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.