Comments & Discussion
Very interesting course.
Considering cases in which a page should only display data related to the logged in user. What would you suggest? Traits? Maybe Scopes? It would be a good class to enhance this course
Thank you for your support as always.
You're talking about multi-tenancy, here's the material we have on that one: https://laraveldaily.com/tag/multi-tenancy
Hi my friend, I hope you are well.
I was even referring to small applications like the one mentioned in the course where there would be no need for multi tenancy. For example:
Teacher view only disciplines/students of its scope. Student view only their courses. etc
Anyway, I managed to build here using scope to filter and trait to set user_id without the need to handle this in each data manipulation.
Thank you so much for your support as always.
Well yes, that's exactly what I'm talking about: "multi-tenancy" is a global term that can mean multiple implementations - from separate databases with complex solution, to an easy trait-scope based one like yours. It's still multi-tenancy :)
Just yesterday, we published the same trait-scope example based on Filament as a separate tutorial.
Hello Povilas, I had read a tutorial https://laraveldaily.com/post/laravel-multi-tenancy-multi-database-example that made me think about the possibility of making this procedure a little simpler.
I just read the https://laraveldaily.com/post/multi-tenancy-laravel-filament-simple tutorial and it brings a simplified approach that fits these scenarios perfectly.
Thank you for your support as always.
Can you do something similar to this using Filament?
Tried to get the profile to work after finishing this class but I cannot get it to work any suggestions?
Great Course, simle and practical, thank you!
Thank you for this good course