Support the ongoing development of Laravel.io →

4,597 Threads

using database for session storage in laravel framework

I am using Laravel framework of PHP for development.Now for my application, i want to stor...

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

Migration doesn't work

Hello! Sorry for my bad english I have migration: DB::table('settings')->insert([ [ 'name' =>...

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

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

how can i run complex raw sql query in laravel

i have some little complex sql query ,i want run in laravel ,i do like that \DB::connection('models'...

0 Likes
4 Replies

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

Caching a complex DB::select(...) query

Hi, I am trying to implement some basic database caching but I am running into some difficulties. I...

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

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

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.