Support the ongoing development of Laravel.io →

4,303 Threads

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

Saving/updating object + relations from json PUT/POST body

Hi, maybe i'm missing something, but i'm having a hard time figuring out how to save/update models w...

0 Likes
1 Replies
posted 10 years ago

Eloquent one-to-many multiple insert

Hi All, I can figure out how to save multiple items with one-to-many :( $order = new Order; $order-...

0 Likes
4 Replies

how do i get the insertID of the inserted product ?

if i do $browsenode->products()->save($product); thanks in advance dudi

0 Likes
1 Replies
Solved

Query Builder Problem (Order by a related Table)

Hi Guys, i have a problem with my table structure and the query builder, as i am not able to build t...

0 Likes
1 Replies
Solved

Artisan Commands -- Eloquent ORM Save Error

Hello, Here is my NewSite.php command file: <?php use Illuminate\Console\Command; use Symfony\Co...

0 Likes
0 Replies
posted 10 years ago

OK to set attributes to collection?

I've been setting custom attributes to collection objects. For example; Looping through $items check...

0 Likes
5 Replies

Why two queries in Relationships, not join ?

When we do a relationship (e.g. One to One): $phone = User::find(1)->phone; there are 2 queries:...

0 Likes
9 Replies
Solved

Pulling Results based off clearance

This one has been picking my brain for a while and I have tried multiple methods but can't seem to m...

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.