Hello i was wondering is there an easy way to describe table that corresponds to specific model like...
Hello, I have a database operation that saves a user in the database. After saving I will send an em...
For some reason I can't get any of my related models when using Eloquent ORM. I have the following s...
I want to add a foreign key field on mysql, but eloquent is making this difficult. When you do the f...
I have 2 tables: listings and listings_specifications Listings table id type status location specifi...
I'm trying to adhere to the thin controller, fat model design so I want to put my validation in my m...
In Laravel there are these three things: Doctrine Eloquent Illuminate Can someone please provide m...
Hey everyone, I am working on creating a news area for a local organization in my hometown. The basi...
Laraphrases is a package for live editing phrases on websites. Github: https://github.com/orkhan/Lar...
This is probably very simple, in Laravel anyway :-) I have a table of products that I access a produ...
Ok, This works well $total_sales = OrderLine::where('product_id', '=', $product->id)->sum('qua...
Hey guys, I have this working controller, that I would like to clean up if possible, since i am sure...
I have a 3NF design (Tag , Item_Tag, Item) As below but it wont work because i'm looping the same ol...
I have this models: app/Models/Instance.php <?php namespace App\Models; use Eloquent; class I...
I'm having a bunch of trouble with model scopes. I have one scope that works properly, called direct...
I'm trying to setup polymorphic relations for the first time. I have 4 models: Category, Image, Tip...
Hi, I'm trying to retrieve an id after creating a Polymorphic relationship. Here is my code: $cat...
I have a many to many relationship setup like this: Product Model: public function skus() { return...
ostap liked this thread
Hello, I am new to Laravel and have a small issue... I have an app set up with a front-end [for list...
I'm currently working on a browser game built with Laravel to get into laravel more. I'm currently r...
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