Support the ongoing development of Laravel.io →
Database Eloquent Forms

So I have a database full of hardware components. I am willing to implement a function in which if the user selects 1 particular component he than would be able to see the activities this component has been through. CRUD, status change, etc..

Laracasts has a subject on this matter, but still hard to figure things out.

Do I need a table.. let's say activities or history and this one has:

id user_id ??

this is the part which I can't seem to figure it out. Do I need to hook up every and each component to the history table? or the other way around, each component with an history_id

I hope you understand what I mean.

Thanks in advance!

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

sevmardi sevmardi Joined 19 Jun 2014

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.

© 2025 Laravel.io - All rights reserved.