How to properly use Laravel models?
I wish did fix the issue. Since your utility functions interact with the
database itself with no business logic except for fetching records, which
is what a model is meant for, this is perfectly fine!However, don't use
model variables inside a view.
Date : January 02 2021, 06:48 AM , By : fukas78