Support the ongoing development of Laravel.io →

4,311 Threads

Iterate over multidimensional object with blade

Hey folks, i'm new to Laravel but already in love! Awesome. Sadly there's little documentation espec...

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

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

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

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

Retrieve image from public/ folder.

HI, I want to display image which is stored in public/upload folder of my app. In my db only the ima...

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

with() callback isn't selecting in eloquent model relationships?

So I have done multiple Eloquent model relationship queries and they work wonders, but for some odd...

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

Passing id value from select list to controller, getting object expected error

I've constructed a select list in a dashboard view, which lists id and name of various components. T...

0 Likes
3 Replies
Solved

Error sql query

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

0 Likes
1 Replies
Solved
posted 10 years ago

Syncing Polymorphic Many to Many Relationships is Too Implicit @camroncade

Details here: http://help.laravel.io/2902869eac5fe027c2f9e74142897b7f3606694f Discussion below.

0 Likes
0 Replies

Wherehas, scope or how do i query this?

Hi, I've created 4 database tables: Tool ID | NAME | TOOLTYPE_ID Tooltype ID | NAME Toolcategory ID...

0 Likes
5 Replies
Solved

Porting vanilla PHP project to Laravel - how to structure controllers/models

Hi, I've just started porting my vanilla PHP gastropod simulation project to Laravel and had some qu...

0 Likes
5 Replies

Call to undefined method Illuminate\Support\Facades\Response::newQuery()

Hi, I kept getting this error "Call to undefined method Illuminate\Support\Facades\Response::ne...

0 Likes
3 Replies
Solved

Filesystem mistakenly reports success on File::makeDirectory()

I have a model named "Support", and I am trying to create a writable directory to store fi...

0 Likes
0 Replies

Eger loading morphs

I have a Notification which implements public function notifiable() { return $this->m...

0 Likes
1 Replies

Advice on related models

Hi All, I am trying to achieve the following structure in my Laravel application and I need some adv...

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.