Support the ongoing development of Laravel.io →

4,312 Threads

"Different" validation approach

Hello Artisans! I'm working on a project that is quite complex and I'm trying to find the best solut...

0 Likes
3 Replies

Relationships (One-to-One)

I'm new to Laravel put like what I see so far. Here's my issue. In my example app I have 2 models...

0 Likes
10 Replies
Solved
posted 10 years ago

How to add user id as a default value when inserting new records

I am building app for enterprise their are three tables: users table (belong to company) companies...

0 Likes
5 Replies

Querying a Many-to-Many Relationship

I might be overlooking this in the docs (Laravel 4.0) but I need to know how to query a many-to-many...

0 Likes
3 Replies

Laravel using wrong table name?

Here's my Level model: class Level extends Eloquent { protected $table = "levels"; }...

0 Likes
4 Replies
Solved

Non-static method Confirm::posts() should not be called statically, assuming $this from incompatible context

These are my models User public function posts() { return $this->hasMany('Post'); } P...

0 Likes
5 Replies
Solved

Combining two query (WhereIn with Where) x 2

$userCollection = DB::table('collections') ->whereIn('user_id', array())...

0 Likes
3 Replies
Solved

Cannot find records using ->where() and booleans

Hi, I'm having a problem. Using migrations I create the following field: $table->boolean('is_clos...

0 Likes
1 Replies
Solved

multiple queries in a scope function

HI I have recently posted this questions on stack overflow. I was hoping someone here would know the...

0 Likes
0 Replies

Issues with Eager Load With Limit & Variable

The following would give me collection without Items. $collectionList = Collection::where('user_id',...

0 Likes
7 Replies
Solved
posted 10 years ago

Extending Eloquent Builder parseRelations

Has anyone thought of extending this method? For example I have a couple of models with the followin...

0 Likes
0 Replies

Visible, Hidden, Fillable & Guarded with Foreign Keys

Hi, First question: What options should foreign keys use? Guarded? I have an Article object that has...

0 Likes
3 Replies
Solved

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

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.