Hello, I'm fetching a specific record with a DB table using MyTable::where(['type' => $sometype])...
Hello, I have a relation like this : A - id - fields - X B - same id as A - fields C - same id as...
I am using Laravel 5.4 and MYSQL I have a table 'products' and a related attribute table 'products_a...
Hello everyone, I'm starting with Laravel and I'm really enjoying it. I need your help, I need to qu...
Let's say that I want to retrive from database the list of artists that have recorded exactly 100 so...
Hi, I'm using Laravel 5.1 It is possible to construct this query with eloquent ORM? SELECT SUM(CASE...
I successfully created a two-level dynamic dropdown using buildings and rooms by following Hardik Sa...
Hi all, According to laravel docs when we use $books = App\Book::with('author')->get(); foreach...
Hi, I am having problem with my query. I have 4 tables users,prospects,leads,items. All of them rela...
Hi, I would like to know if there is a way to define a relationship as a union of two tables? I've a...
I know how I can get the data needed, but want to follow Laravel/MVC practices here and new to it. I...
How would you go to create a relationship between the following tables: Users table: Schema::cre...
I'm trying to use pivot table. But I'm confused how should I define my database tables. Concept: Pac...
Hey guys! In my applicatio, every logged in user can open a "feedback-site". That site has...
I am implementing a laravel web application and I separately implementing native mobile application...
Has anyone ever run into an issue where you can create records just fine, but the moment you want to...
I am looking for the opposite of getting all Data that is related in a many to many relations, thus...
Laravel 5.4 I am having a hard time using "with" and "where" together. Instead o...
Hello, I am experiencing a strange problem with the built-in User class in Laravel. Its save() funct...
Suppose we have this schema: Set id name Question questionable_type questionable_id...
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