Support the ongoing development of Laravel.io →

4,311 Threads

Pros and Cons of different kinds of validation?

Hi everyone, I'm currently doing my first project with Laravel and I'm kinda stuck on validation, be...

0 Likes
8 Replies

Advanced relationships with eloquent

Hi, I have been struggled with this couple of days and i just can't get my head around with this. I'...

0 Likes
2 Replies

Advanced search combined values of 2 columns

Hi, i'm trying to create a search functionality that uses 3 tables, and it uses combined values from...

0 Likes
5 Replies
Solved

Eager Load Constraints issue

i have the following tables users devices sensors measurements with the following relationships user...

0 Likes
2 Replies

Advanced queries in a Laravelesque way

Is there a 'Laravel way' of writing something like this? $products = Product::select(DB::raw( 'mw_pr...

0 Likes
3 Replies
Solved

Model attachment

Hello. My application demands attachments to models (with different sizes), probably, watermarks and...

0 Likes
0 Replies

Query for Google Map

Hi guys, I'm new to Laravel and enjoy to play with it. But I stuck almost 2 hours on using query bui...

0 Likes
2 Replies
Solved

eloquent::save() behavior proposals

Perhaps this should go into github, but I will let it know here first to hear your opinion. Given th...

0 Likes
0 Replies

Optimalise submenu with childs ?

I'm creating a subnavigation with childs in childs. And i would like to know how i can optimalise th...

0 Likes
6 Replies

Models and functions not working ...

What am I doing wrong ? please advice ? Controller public function getHotelgallery($hotel) {...

0 Likes
2 Replies

How to collect the objects from recursive tables?

I've got three tables, dates, and composite dates (and a pivot table). A date can be in many composi...

0 Likes
3 Replies

Structuring Code

I'm curious how you guys structure the controller's response on an ajax call? I usually don't use th...

0 Likes
2 Replies
posted 10 years ago

Timestamps() and auto inserts vor created_at

Im not sure, but i think in the past, when i used timestamps() in my migration, laravel automaticall...

0 Likes
3 Replies
Solved

getting tree depth from a closure table

I'm building a threaded forum using closure tables. I have two tables, Paths and Comments, set up li...

0 Likes
0 Replies

Populate edit form inputs with many to many eloquent query?

I have a form that allows a user to submit a small image and a large image. The edit form is where I...

0 Likes
3 Replies

BindingResolutionException Unresolvable dependency resolving [Parameter #0 [ <required> $input ]].

Hello friends, I'm currently coding a REST API, however I'm having an issue with Laravel 4.1.x Bindi...

0 Likes
0 Replies
posted 10 years ago

Simple multilanguages mechanism. How to?

Hi, colleague! I think that common multilangual mechanism is a good idea. We have common class, whic...

0 Likes
3 Replies
Solved

Checkboxes, checked and unchecked

Hi I've got 2 tables. THe first one is the full listed option with (id, name). The second one is the...

0 Likes
0 Replies

has() on a hasOne()-relationship to the same table

Consider the following setup (and let's not discuss wether it makes sense as it's only an example)....

0 Likes
5 Replies
Solved
posted 10 years ago

Search post by many tags

I have Posts, that are linked to many Tags in a many-to-many relationship. I also have an array of T...

0 Likes
11 Replies
Solved

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.