Support the ongoing development of Laravel.io →

4,606 Threads

Laravel 5 hasMany relationship has null as query parameter

I have an Artist model and an Item model. class Artist extends Model { protected $table = 'conta...

0 Likes
2 Replies
Solved

Multi Table Query

I've got two three tables setup: users, posts, post_images. I have a foreign key setup on posts tha...

0 Likes
3 Replies

Preg_replace()

I'm using Laravel 4 I'm getting this error preg_replace(): Parameter mismatch, pattern is a string w...

0 Likes
0 Replies

How to paginate on MS SQL stored procedure results?

Hi, I am fetching data via an MS SQL Stored Procedure in the following manner: $historyData = DB::se...

0 Likes
0 Replies

display join table with multiple where clause

i'm trying to displaying single data like this id TenantID name username password sender...

0 Likes
1 Replies

Should I use mysql view in order to simplify my app?

Hello everyone. I have users, which has some indexes of progress. Depending on how user works in my...

0 Likes
3 Replies

Laravel database broken on local server

Hey Guys, I've got a problem where I've created a Laravel project and the database connection is bei...

0 Likes
4 Replies

Laravel (4) and passing data from database to View

I'm just getting started with Laravel so I may be missing something, but here's my route and the vie...

0 Likes
1 Replies

Relationships in multi tenancy in Laravel Eloquent ORM

This is a follow up question to : http://stackoverflow.com/questions/29069101/multi-tenancy-in-larav...

0 Likes
0 Replies

Installation page before Database is configured

Hello! I was wondering if it was possible to create and show a View before the database settings hav...

0 Likes
1 Replies

LDAP + database

Hi guys. In our company, we use active directory for authentication. So I set LDAP as a driver in La...

0 Likes
1 Replies

How can i migrate another table? im using laravel 5

Hi guys, im creating another table using migration in laravel php artisan migrate:make ems after fix...

0 Likes
4 Replies
Solved

Account > Transactions > Sender/Receiver Relationships

Hi Folks I currently have a blocks, accounts, transactions and contact tables. What I am trying to a...

0 Likes
0 Replies

Multiple relationships on same model

What I try to do is a relationship with eloquent between a model called "Location" and a m...

0 Likes
1 Replies
Solved

Relationship scope

Hi, I have two models, "Article" and "ArticleDescription". "Article" h...

0 Likes
2 Replies

sqlsrv unable to use created_at / updated_at

I am using sqlsrv to connect to Microsoft SQL server 2008. If I put the following in my view {{ $use...

0 Likes
1 Replies

Query builder laravel 5

I have a SQL, for a table name "students" SELECT Institution_Name, Count(Institution_Name)...

0 Likes
0 Replies

how to store data of form in database?

i'm unable to store data of a signup form in my database table, plz help

0 Likes
1 Replies

Eloquent find() returns result even with wrong ID

I'm running a query on Eloquent, I search on a table for a row ID, On Eloquent I'm using: Video::fin...

0 Likes
4 Replies

Invalid argument supplied for foreach() in Distinct Jensseger Mongodb

Well, i don't know why it's happening. I have no idea at all. I got a code in my controller like thi...

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.

© 2025 Laravel.io - All rights reserved.