How to use ActiveRecord, and stored procedures?

We in company with part of the data it is possible to work directly with tables using Eloquent. But a lot of times where I instead of the table give the kind of procedure addUser(@login, @name, ...) / delUser() / updUser(). More often just getUserList() without the possibility of change.

My question: what practices can be abstracted from the method of data collection? What if I had only the list-procedure, I could result with her work with both models — at least, use classes and attributes.Is there an example implementation in Laravel?
June 10th 19 at 15:02
2 answers
June 10th 19 at 15:04
June 10th 19 at 15:06
make the User model
make the class UserRecord

in the User class will be a property of type UserRecord

you have to work with the User class
And you can read more? What profit it?. Then there will be an empty model with the property of the userrecord? - Pablo63 commented on June 10th 19 at 15:09
, - murl43 commented on June 10th 19 at 15:12

Find more questions by tags Laravel