Support the ongoing development of Laravel.io →

4,608 Threads

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 11 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

Trouble connecting to MySQL db on local machine (windows) xampp

I'm really excited about using Laravel, but there's one small problem - I can't connect to my databa...

0 Likes
4 Replies
Solved
posted 10 years ago

Error: "Mcrypt PHP extension required."

When using the Artisan plugin in Sublime Text, I get this error when running the commands create_use...

0 Likes
4 Replies
posted 10 years ago

Nested count query

Hey, I'm trying to do a nested count and why it's just not going. Here are all the details: http://l...

0 Likes
0 Replies

please i have bizarre problem

when i click on < EDIT POST > i cant send Input::All() to PostController i have this link http...

0 Likes
2 Replies

perform eloquent query with a where on the 'with' table

this is my current "query" $posts = Post::with('user') ->with('user.spot')...

0 Likes
0 Replies

pgsql's text field

I have a text data type pgsql field and I am saving a blog post into it. It throws an error "...

0 Likes
1 Replies
Solved

How to do dynamic Querys

Hey artisans :) I would like to have a dynamic query-builder but don't no how to do it :/ I have a d...

0 Likes
2 Replies

$_ENV migration problems with Forge

On my Forge deployment log my migrations always respond back with: [PDOException] SQLSTATE[28000] [1...

0 Likes
2 Replies

Creating a CRM based around Gmail Interactions...

I am curious about the best plan of attack for creating a CRM that will log customer interactions (e...

0 Likes
1 Replies

Error sql query

Hello all, Error is : SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a c...

0 Likes
1 Replies
Solved

how to get data from DB and pass it to macro

hello , my question is how to get data from DB and pass it to macro ? in global.php thnx

0 Likes
0 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.

© 2025 Laravel.io - All rights reserved.