Support the ongoing development of Laravel.io →

4,586 Threads

Models and functions not working ...

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

0 Likes
2 Replies

Store information to DB with Ajax / Jquery / javascript ? Best solution?

Hi there, I have a view that shows a list of "things". Each "thing" has a checkb...

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

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
posted 10 years ago

Continue DB call

Say I have a custom class, where I want to create the connection and specify the table once my class...

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

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

Validating "bad words"

Did anyone manage to get it working ? to use laravels Validation to check i "username" con...

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

Create unique alphanumeric random string in "id" column

Hi, I want to have my id columns of all my tables with unique alphanumeric string instead of the usu...

0 Likes
4 Replies

Looking for projects on Laravel framework

is there anything like Bonfire [Codeigniter] made on Laravel 3 or 4 having Built-In Admin Area,User...

0 Likes
2 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
posted 10 years ago

Can't change Database connection?

I had MySQL setup on the same server as apache. I now created a new instance, and migrated all MySQL...

0 Likes
3 Replies
Solved

Many-to-many, find modelA which belongs to a set of modelB

Sorry if the title is confusing. I am finding it difficult to word this question. Basically I have a...

0 Likes
0 Replies

Comments sorted by upvotes/downvotes

Hi everyone, I'm building a website where every posts has comments. Each comments have upvotes/downv...

0 Likes
0 Replies
posted 10 years ago

strange Date (Europe/Berlin) convert the right way?

HI i have a Datepicker plugin to pick up some dates i get the dates in the input field like (d.m.Y)...

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