Support the ongoing development of Laravel.io →

4,314 Threads

Working with one-many relationships

Hi there, I am currently working on a multi-language website. The current database setup is: product...

0 Likes
1 Replies

Trying to get property of non-object in Laravel when attempting to delete row from datatable

I think I know why the error is happening, I just am not sure how to fix it. I have a datatable that...

0 Likes
1 Replies

Using a function that returns belongsToMany in a query

Hello, This is probably a very simple question. In my database, I have a users table, ideas table,...

0 Likes
0 Replies

Submit Form With Pagination

I'm creating a app for taking a test and I want to display each question by itself and when the user...

0 Likes
3 Replies
posted 10 years ago

cant find User class

I just installed l5 and am trying to run a simple query using $users = User::find(1); But when I run...

0 Likes
3 Replies
Solved

Question about Relationship (belongsTo X hasMany)

Hello, people. I have a problem that is confusing me. I'm working with relationships, but part of th...

0 Likes
0 Replies

Eloquent Full Text Search on Multiple Tables

I am using Laravel 4 and the Eloquent model for a project we are working on. The database conforms t...

0 Likes
1 Replies

Another question regarding performance.

I got this query: SELECT (SELECT GenreDescription FROM Genre WHERE GenreId = Reports.ReportGenreId)...

0 Likes
5 Replies

Problem UTF-8 DBLIB

Hi , I have a problem in my environment : DBLIB + PDO + UTF8 + MSSQL . How to convert charset in &qu...

0 Likes
0 Replies

Custom 500 Page for firstorfail() ModelNotFoundException

Can anybody explain step by step how to setup files to render a custom 500 page after a firstorfail(...

0 Likes
3 Replies
Solved
posted 10 years ago

Using where on morphMany relation

Hi, i have problem with morphMany relation. I would like to find all Persons Travel where Photos Has...

0 Likes
1 Replies

Easy db revisions with Sofa/Revisionable

I want to introduce nice and useful package for DB revisions. It works out of the box with Eloquent...

0 Likes
3 Replies
posted 10 years ago

Array merge

How the array merge is working in laravel?,.. I have two queries the first one is: $products_que...

0 Likes
2 Replies

Laravel Eloquent - nested relationship with constraint from two levels up

Consider the following simplified tables: https://gist.github.com/exnor/cff79953c6dace6c042c Many c...

0 Likes
0 Replies

[L5] Allow CRUD only to user that owns resource. Best way?

Hello, I have User model and several other models that belongsTo User. I have a lot of routes for ch...

0 Likes
3 Replies

hasMany and belongsTo question

I'm able to display all my Hostings, but I would like to also display the name of the company that b...

0 Likes
2 Replies
Solved

Reusing code across similar tables

I am trying to plan out my DB Schema and want to keep it DRY. I plan to have multiple tables for pos...

0 Likes
1 Replies

API with Laravel 4

I created a web application using PHP framework Laravel 4. Now I would like to create an Android app...

0 Likes
1 Replies

Delete does not cascade

In migrations, I create a pivot table Schema::create('system_user', function(Blueprint $table) {...

0 Likes
1 Replies
Solved

If in statements

Hi everyone, a "simple question" maybe it's not possible... I have this query repeated con...

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

© 2025 Laravel.io - All rights reserved.