Support the ongoing development of Laravel.io →
njuarezgt

njuarezgt

Joined 2 Oct 2015

Statistics

Threads 12
Replies 15
Solutions 2
Articles 0
posted 10 years ago

How generate a form with dynamic fields

Hi folks, do you can help with this, I want to create a form with dinamyc fields for insert products...

0 Likes
0 Replies

How attach after save another model

Hi friends, help me please, how I can do for save InventorEntry model and get the id for attach a pr...

0 Likes
0 Replies

Where change the path to redirect a no login user?

I changed on return view('auth.login') to return view('/') and give error [.] no exists Thanks frien...

0 Likes
0 Replies

Why I get Trying to get property of non-object

$products=Product::where('product_name',$request->product_name)->first(); if($products->...

0 Likes
3 Replies

How to update just one field with fill method in the table

How I can fill $a in to the table, pls and regards. $products=Product::where('product_name',$request...

0 Likes
1 Replies
Solved
replied 10 years ago

Many to many inverse query how?

Try this and helpme too because i have that question too. jaja, Suposed have my example: $employees...

0 Likes
replied 10 years ago

Many to many inverse query how?

shez1983 said: the doc mention has many through relationship for exactly what you are trying to do...

0 Likes
replied 10 years ago

Many to many inverse query how?

Try: $employee = Department::with('employees')->get(); or $employee = Employee::with('department...

0 Likes
replied 10 years ago

How to do not delete pivot table row

soft-delete don't run on related models, just can use dettach find id on the model and dettach de FK...

0 Likes
replied 10 years ago

Many to many inverse query how?

Delarates the reverse relation on your other model, I has this. Supose I have Departments and Employ...

0 Likes

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.

© 2026 Laravel.io - All rights reserved.