Support the ongoing development of Laravel.io →

4,302 Threads

posted 10 years ago

hasManyThrough with Many-To-Many?

Hi, Is it possible to do a "hasManyThrough" with "Many-To-Many" relationship (pi...

0 Likes
26 Replies

Upvote and Downvote System

i am creating a website where user will post a comment,i want to create a upvote and downvote syste...

0 Likes
1 Replies

laravel model find return null for existing id

I am facing this issues of model find for existing id that is returning null and showing below error...

0 Likes
0 Replies

Fetching view from DB

Hello!! I am new in Laravel society. :) And I stuck with something. I made view in database and I do...

0 Likes
5 Replies
Solved

Eloquent select data

Hello, I want to build a eloquent query which builds this output SELECT * FROM `banners` WHERE (`val...

0 Likes
2 Replies

syntax error when i try to execute this code using carbon

public function searchresult (Request $request){ $keyword = $request->name; $search = Mosque::wh...

0 Likes
2 Replies

Help on many to many relation to create form aproach

Hi, I have two tables (hotels, cars) and a many to many relationship to determine which cars ara ava...

0 Likes
0 Replies

One to many Definition and Foreign Key

I have seen on tutorials people declaring the foreign key on one to many scenarios and others do not...

0 Likes
2 Replies

Laravel Voyager Query for List Result

Hi, i want to make a query for laravel voyager bread-list result. How i can do this in the model? Th...

0 Likes
0 Replies

One to Many - Inverse - Form Select Class component

Hi. I have the following relations in the app I am working on. I have a Bank model or Component as w...

0 Likes
2 Replies

laravel, how to update with request from users ?

in previous thread iv posted my problem with update function, the problem is the database wont upda...

0 Likes
1 Replies

How to Filter Fields Record Same With Current Date

Please help me, i have a table with this record & query. SELECT DISTINCT aa.id, aa.id_user, a...

0 Likes
1 Replies

Polymorphic relationships for online store

I’ve got a master table called Product with the following columns: id product_id product_type name...

0 Likes
0 Replies

Is Rule::exists/unique available with Eloquent/Builder?

Is it possible with current exists/unique validation rules to use model methods in laravel? Like use...

0 Likes
0 Replies

How to select between with two fields

I have some problem with my code for select shift_id with just give time, looks my records $waktu =...

0 Likes
4 Replies
posted 5 years ago

Order relationship by the relations related property

I have a model called Card which has many Printings which has an Expansion. How do I run get the pri...

0 Likes
0 Replies

Learning advanced laravel.

I am interested in learning advanced laravel. what are the best tutorials you suggest?

0 Likes
4 Replies

[API Resource] Top Level Meta Data

I need to add top-level metadata to my API response, according to Laravel Documentation that possibl...

0 Likes
0 Replies
posted 9 years ago

Nested many-to-many relationships

I have my eloquent models set up with user has many-to-many roles and roles have many-to-many permis...

0 Likes
7 Replies
Solved

ORM where clause on related table with pluck

Hello, how can I use ->pluck('fieldB') in following Laravel code? $Result = TableA::with('tableB'...

0 Likes
1 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.

© 2024 Laravel.io - All rights reserved.