Support the ongoing development of Laravel.io →

4,602 Threads

posted 10 years ago

database relationship for profile messages

I am continuing working on my app. I have my users table setup with auth. I am working on the profil...

0 Likes
1 Replies

Related model method

Hi guys, I have 2 models: Player and Team. The relationship is: Team has many players. So, in my tea...

0 Likes
11 Replies

Serialize PDO error with Iron.io Queue Push

Hi All, I'm having a problem with using Iron.io queues. Just calling Queue::marshal() is throwing up...

0 Likes
0 Replies

Problem with Polymorphic Table and Repository

Hey guys! Scratching my head a bit here. I'm hoping you lot can point out what I'm doing wrong. I ha...

0 Likes
2 Replies
posted 10 years ago

Migration strtolower() error

Hy everyone, does anyone have a clue why my migration throws an error exception "strtolower() e...

0 Likes
0 Replies

Dash in database name causing SQL error

So I made the rookie mistake of putting a dash in the name of my MySQL database (ie My-Database ). A...

0 Likes
3 Replies

error of one to one relationship implementing.

whem i am implementing one to one relationship in laravel i am getting this error. so pls anyone giv...

0 Likes
2 Replies

Getting this error: Call to undefined method Illuminate\Database\Query\Builder::attach()

I have defined the following two Models: Question.php: <?php class Question extends \Eloquent {...

0 Likes
2 Replies
Solved

Eloquent ORM - Returning more data than I expect

Running into this odd little issue here with a ORM query. Let me first define how my models are stru...

0 Likes
5 Replies

Do search by criteria...

Hello! I need to do a search by criteria... I have many products, so.. need to show show only the p...

0 Likes
7 Replies
Solved

Remember_token in sql query for a user hasOne relationship?

Hey folks, i don't know if this is maybe a bug. I have a User and links. One User has many links. I...

0 Likes
1 Replies
Solved

How get current inserted id

Hello Everyone I want to show current inserted id from controller. This is my code $comp = new C...

0 Likes
2 Replies
Solved

Ajax Jquery Response works only once.

Hello everybody, I have a list of topics with a toggle On/Off to get a notification for the topic or...

0 Likes
4 Replies

Global Site Options / Configuration

So, I'm working on adding some functionality to the front page of a site that I'm working on. The us...

0 Likes
2 Replies
Solved

morphMany sorter type declaration

Hi! I created a morphMany relation, the related class is in sub folder and the type inserted in data...

0 Likes
1 Replies
Solved
posted 10 years ago

Laravel won't execute insert or delete with nested select. Help

I have an insert and delete statement, both contain a nested selected and Laravel won't run them, no...

0 Likes
1 Replies
Solved

No relationship when using orderby random

I can not access my relationships when I order by random. If i remove the random and use all or firs...

0 Likes
1 Replies
posted 10 years ago

Using pagination

I've succeeded in including and using the Database class use Illuminate\Database\Capsule\Manager as...

0 Likes
11 Replies

Laravel Pagination standalone

OK, so I'm using Eloquent as a standalone package in my app. Is there any way I could do pagination...

0 Likes
1 Replies
posted 10 years ago

Issue on creating models with foreign key relations (1:1)

Hello! I have a "Profile" model related to a "User" model. Currently I'm able to...

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.