Support the ongoing development of Laravel.io →

4,606 Threads

morphMany returning NULL

I'm having a problem with polymorphic relationship. I have the following classes: BankAccount.php...

0 Likes
14 Replies
Solved
posted 10 years ago

Setting specific isolation scope for transactions.

I'm working on a system is likely going to need more granular control of locking that simply calling...

0 Likes
1 Replies

Is this right way to do READ UNCOMMITTED?

Is this right way to do READ UNCOMMITTED? $cars = Cars::raw('SET SESSION TRANSACTION ISOLATION LEVEL...

0 Likes
2 Replies

Getting all records from a collection

Hi, Ok,so I am setting up a relationship between my users and roles table, everything went fine unti...

0 Likes
2 Replies
Solved

One to many relationship returning NULL

Hey, I'm having an issue I've been trying to figure out for the last few hours, but I can't seem to...

0 Likes
8 Replies
Solved

Form Model Binding for files

I have an issue trying to grab a file using form model binding and did a number of searchsand have y...

0 Likes
2 Replies
Solved

Select time from base as UNIX_TIMESTAMP(time)

Hello, I have in base field with type datetime, it's time field. I want to get all elements from bas...

0 Likes
1 Replies

Will Model Relationships work with No Table relations in database

Hi Guys, I have a database that predates me and it has no relationships define in the database itsel...

0 Likes
2 Replies
Solved

Eloquent timestamps - use only created_at

I have a problem with a model, I only have created_at field and I added getDates() method which retu...

0 Likes
2 Replies

Joins in Model or Controller?

Hello, when i need to use joins(), how to use it? Belongs it model or in controller? Can anyone give...

0 Likes
1 Replies

Get Data from MySQL with where()

Hello, i am new at laravel, and i want to show userprofile by slug. When i use Profile::all() or Pr...

0 Likes
3 Replies
Solved

Protect yourself against destructive migrations?

If you are deploying a new version of your site, and part of your migrations involves deleting table...

0 Likes
1 Replies

Laravel Auth keep returning false

Hi.. i recently changed one of my existing project to Auth. While testing i found out that all my us...

0 Likes
2 Replies

Eloquent Query Relation Eager Loading

to avoid the eager loading probleme i load all relation with my object. the relation is : Transactio...

0 Likes
0 Replies

Foreach Only Once For Table Column Names

This probably isn't the most elegant solution but so far I have my data/collection called like so; $...

0 Likes
1 Replies
Solved

Eager Loading with 3 Models

Hey, I have 3 Models that are related so : "Tutorial" belongs To "Title" that be...

0 Likes
1 Replies
Solved

HHVM and pgsql PDO exception

I am using Laravel 5 along with homestead 2. I was getting a PDO driver exception, which was driving...

0 Likes
0 Replies

Laravel, eloquent, returning a value from a select with a inner join with pivot table

Hello, I'm new with Laravel and im'trying to use as best as I can, but I'm having trouble getting...

0 Likes
2 Replies
Solved

Integrate Payment Gateway in Laravel 4.2

Am developing application using laravel 4.2 and one doubt for how to integrate payment gateway in la...

0 Likes
0 Replies

Composer autoload classmap in database/seeds failed to generate autoload.php

I have a seed file app/database/seeds/StoryContentsCollectionSeeder.php that contains the following...

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.