Support the ongoing development of Laravel.io →

4,599 Threads

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

an 'AS' in Eloquent?

How to do this query in the Laravel way: SELECT this AS thispart FROM x WHERE foo = bar Then I'm ref...

0 Likes
1 Replies
posted 10 years ago

Post formats implemented in Laravel

I'm trying to implement post formats on a project, much like WP does it. Post formats are used to gi...

0 Likes
4 Replies

Categories in a dropdown showing parent and child

Hi all, I have a small issue I can't figure out. I want to be able to get all categories that will d...

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.