Support the ongoing development of Laravel.io →

4,311 Threads

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 6 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 10 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

Relationship not eager loading

Context I have 3 migrations: Members table: class CreateMembersTable extends Migration { public...

0 Likes
1 Replies

Pivot table attach() without auto sort

Hi, $item->categories()->attach([4,1,2,3]); This insert record order by 1 2 3 4 I want it ins...

0 Likes
1 Replies

Access Constructor from Method

Hello GUYS , I am trying to access those values of the controller , but I have to make variables fir...

0 Likes
1 Replies

SQLSTATE[HY000] [1045] access denied for the user: 'homestead'@'@localhost' (password: YES)

Well I'm new to laravel, & still learning it. Basically when i use php artisan migrate, it migra...

0 Likes
7 Replies
Solved

Laravel state machine package

Hi All, In the last couple of days/weeks I was working on a Laravel and VueJS package to manage the...

0 Likes
0 Replies

Error creating data based on hasMany

Hey guys, Greeting from Indonesia. I have a form in which has name of (in imaginary) id, product_nam...

0 Likes
0 Replies

Connect 3 tables with 2 pivot tables

I'm trying to find all rows in c table (see DB schema) associated with one row in a table. Connected...

0 Likes
5 Replies
Solved

laravel Many To Many relationship with inner relation

I have some problem to get information about item. I read a lot of information on forums stakoverflo...

0 Likes
0 Replies

Eloquent, make rank upgradable!

https://laracasts.com/discuss/channels/eloquent/eloquent-make-items-upgradable Here is more details...

0 Likes
0 Replies

How do I manually create a Paginator in 5

Hi I've looking round for a while now but cant figure this out how do How do I manually create a Pag...

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