Support the ongoing development of Laravel.io →

988 Threads

posted 10 years ago

Help! Problem with creating new records

Hi there, I have a site which needs to go live today, and there is a problem with Eloquent, and the...

0 Likes
9 Replies
Solved
posted 10 years ago

using the '!='sign inside a where() method

I have a table with a row 'comments'. This is 'opmerkingen' in dutch. Every row can contain 1 commen...

0 Likes
2 Replies
Solved

authenticate from second database

I have a form with a 'name' textfield. When i press send laravel checks if the username exists. If s...

0 Likes
2 Replies
Solved

Passing multiple arrays to a view

I'm trying to work with SimplePie to pull numerous RSS feeds (which is working well); however rather...

0 Likes
2 Replies
Solved

Calling model method from controller

I have this in my car.php model public function bySortOrder() { return $this->orderBy('so...

0 Likes
3 Replies
Solved

Help with relationship

Sorry for my english, is not very good. I have a User model and I have a Post model. two models have...

0 Likes
2 Replies
Solved

Question about relationship.

Guys, good morning. Question about relationship. In this query it brings me a student and two servic...

0 Likes
2 Replies
Solved

Eager Loading and Relations.[URGENT]

I'm trying to relate a user model and a comments model. My user model has the following code.. clas...

0 Likes
4 Replies
Solved

Seeding from migration

This may be a weird question, but is there a way to seed the db from a migration? The reason is that...

0 Likes
1 Replies
Solved

Increment in Query Builder

DB::table('items')->where('id', $itemID)->increment('save',1); As above, is that possible or d...

0 Likes
1 Replies
Solved

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

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

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

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

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

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.