hi, I have the following schema: Schema::create( 'teams', function (Blueprint $table) {...
Hi I'm having a struggle trying to return a single record from a many to many relationship. So in my...
I'm having a problem with polymorphic relationship. I have the following classes: BankAccount.php...
I'm working on a system is likely going to need more granular control of locking that simply calling...
Is this right way to do READ UNCOMMITTED? $cars = Cars::raw('SET SESSION TRANSACTION ISOLATION LEVEL...
Hi, Ok,so I am setting up a relationship between my users and roles table, everything went fine unti...
Hey, I'm having an issue I've been trying to figure out for the last few hours, but I can't seem to...
I have an issue trying to grab a file using form model binding and did a number of searchsand have y...
Hello, I have in base field with type datetime, it's time field. I want to get all elements from bas...
Hi Guys, I have a database that predates me and it has no relationships define in the database itsel...
I have a problem with a model, I only have created_at field and I added getDates() method which retu...
Hello, when i need to use joins(), how to use it? Belongs it model or in controller? Can anyone give...
Hello, i am new at laravel, and i want to show userprofile by slug. When i use Profile::all() or Pr...
If you are deploying a new version of your site, and part of your migrations involves deleting table...
Hi.. i recently changed one of my existing project to Auth. While testing i found out that all my us...
to avoid the eager loading probleme i load all relation with my object. the relation is : Transactio...
This probably isn't the most elegant solution but so far I have my data/collection called like so; $...
Hey, I have 3 Models that are related so : "Tutorial" belongs To "Title" that be...
I am using Laravel 5 along with homestead 2. I was getting a PDO driver exception, which was driving...
Solutions given in the past year. Excluding solutions from thread authors.
Select a tag below to filter the results
The Laravel portal for problem solving, knowledge sharing and community building.