Hi! I have two models, for example User (name, email) and Address (user_id, address, zip); If I call...
I have two tables auctions and bids and models for them are as follows public function bid() { retu...
I keep getting the error "Call to a member function delete() on null" for the following, w...
Hello, in my application users can add other users (to establish a "friendship"). Therefor...
Hi laravel community, I am a new laravel user and currently working on a simple project management t...
I want the Eloquent model in app ->Models ->users.php and in every file i h...
// qualification.php model <?php class Qualification extends \Eloquent { protected $fillable...
I am filtering a collection by date of orders with the following in each: {"id":57,"...
What is Single Table Inheritance? I saw a post by Kapil Verma where he shared his STI base class. I...
So I'm building out a multi-relational database structure, and I'm attempting to retrieve nested chi...
Hi, I was wondering what the best way to do this with Eloquent would be? Say for instance I have a &...
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...
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...
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...
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.
The community