Support the ongoing development of Laravel.io →

4,608 Threads

recursive function many-to-many self referencing model

I have a model called Product that has the following self referencing many-to-many relation: // pare...

0 Likes
0 Replies

Running a basic raw query and keep getting errors

Hi guys, Hope you can help me with this simple query. I have this function. public function CapT...

0 Likes
2 Replies

Linking two tables to a master table of data. Two foreign keys?

I have a real estate site with a master table of listings. Each listing belongs in one subdivision...

0 Likes
1 Replies

Sentinel update not updating all fields?

So i'm trying to update a user in the database, all names are correct however the update is only upd...

0 Likes
1 Replies

order by related table while using with()

Hi, i have the following code for listing, sorting and filtering products. $query = Products::query...

0 Likes
0 Replies

migrate:reset erring when dropping foreign key

I'm having an issue when rolling back a migration that drops foreign keys. I'm creating the foreign...

0 Likes
5 Replies
Solved

Search Query doesn't work properly

Hi, I have create search keyword query for my cart. If I debug query with ->toSql() it display an...

0 Likes
0 Replies

Get belongsToMany relation over another belongsToMany

Hi! I have relationships on my User model using pivot table for usergroups public function groups()...

0 Likes
0 Replies

Passing Multiple Parameters through URL to Controller using Input::get('paramter1').

Hello, This is my route.php Route::get('test/{paramter1}/{paramter2}', 'Somecontroller@somemethod');...

0 Likes
1 Replies
posted 8 years ago

Mysql query fetch results from given two dates

Hai guys, just now started working laravel, i need to right an mysql query in fetching rows between...

0 Likes
0 Replies

Multiple relathionship row reading

Hello everybody, I ma using laravel 5.2 and i have 3 tables users, visits, visits_time, i have relat...

0 Likes
0 Replies

How to show PDF file from project.

This is my code and my pdf file is into the public/image/pdf/ public function showpdf($fsr_num)...

0 Likes
3 Replies

Insert record into database fails Not a fillable problem.

My inserts are not inserting. I made a save method in the model so I could put in some debugging. He...

0 Likes
0 Replies

laravel 4.2 environment setup on ubuntu

I followed the other post in stackoverflow. I had pretty much the same question but the problem is...

0 Likes
0 Replies

oneToMany with a relation table.

Some one has a hint how to make a oneToMany relation with a relation table? I have 2 tables having f...

0 Likes
0 Replies

Paginating Results with Dynamic Query Builder Filters

I found this tutorial on creating dynamic filters for query builder, allowing me to quickly run thro...

0 Likes
3 Replies
Solved

Android to Laravel

Hi Someone is developing an Android app for the website i am working on. This app will have two func...

0 Likes
3 Replies
Solved

Eloquent returns unused values

print_r(User:all()); This prints a lot of fields which are of no use to me like [hidden:protected] =...

0 Likes
1 Replies

Cycle dependecies

Hello, i have general question. How do Eloquent solves cycle dependencies on the tables? Does it at...

0 Likes
1 Replies

Translating a sql query so that can be accepted in laravel

I have this sql query, but I have no idea how to sort of write it Raw so that it can be put into my...

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.

© 2025 Laravel.io - All rights reserved.