Support the ongoing development of Laravel.io →

4,311 Threads

Validate Multiple/Nested/1:n models at once in one form

Hi, I have this huge form divided in several models. These are my models: class Formato extends Mode...

0 Likes
0 Replies

Sort to nested

Hello Community, I've got the following problem. From my Database u get the following Array of Categ...

0 Likes
0 Replies

How to get the diffrent provider using morphTo() relationship

Hi, I want to get the different provider (venue,vendor) list based on 'map_type_id'. In my package t...

0 Likes
0 Replies

What can be wrong with my resource controller?

Hi, i'm currently working on a simple project that lets doctors register pacients and their relative...

0 Likes
0 Replies

Query a polymorphic relationship using related model

Assuming I have the following models: FeedItem (Polymorphic) Facebook (has many tags) Twitter (has...

0 Likes
0 Replies
posted 8 years ago

has many-relation with child classes

Hello, We are completely stuck on this topic. Of course, we created a workaround, but it just does n...

0 Likes
1 Replies

Image Upload POST function is shows blank page only.

##ProductController ....public function store(Request $request) ....{ ....$image = new Image(); ......

0 Likes
0 Replies
posted 8 years ago

Delete with relations

i have a categories table some entries are categories and some subcategories i want when i delete a...

0 Likes
0 Replies

Saving positions in database

Hi, I want to save positions in my database, like such: { x: 254, y: 232 } Would I just create two c...

0 Likes
2 Replies

SQL to LARAVEL QUERY or LARAVEL 'RAW' QUERY

Hello i need a query to transform to laravel query or laravel raw query better.....its complex and i...

0 Likes
1 Replies
Solved

Laravel hasmany filter

I want to filter my logs in hasMany. I have table User, table Logs, and table LogType User has many...

0 Likes
1 Replies

How should the model look with multiple joins

Hello! I have these three tables. #Product, product_id #Product_Fields, field_id, field_name #Produc...

0 Likes
0 Replies

CRUD retrieving data

How can I retrieve the data of specific id without using the id as url? Thank you in advance! I mean...

0 Likes
1 Replies

Can I convert all date formats when getting model data?

I'm wondering if there is a built in way to convert all date formats for display. For example, right...

0 Likes
2 Replies

Trying to mock a model in Laravel 5

I'm trying to create a mock model for my controllers to use, but doesn't seem to be working <?php...

0 Likes
2 Replies
posted 8 years ago

Bring the latest commented topic on top on forum index page

This one was already posted on Stack Overflow but I haven't got a valid answer,so I will post this u...

0 Likes
0 Replies
posted 8 years ago

How to order status updates on event that has been completed

I have a list of events. These events have status updates. I'm paginating the statuses 10 per page....

0 Likes
0 Replies

Response::download error

Error Message: [2016-01-19 14:47:08] local.ERROR: exception 'Symfony\Component\Debug\Exception...

0 Likes
1 Replies

how to solve this complex database query

Hi i have 2 tables tables users attendance https://gist.github.com/john5db/e40054a4a1f2359f5e91 I...

0 Likes
2 Replies

MorphMany as well as hasOne

I have two tables: images -id -name -imageable_id -imageable_type article -id -title .... -image_id...

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.

© 2024 Laravel.io - All rights reserved.