Jan 21, 2016
0
Level 1
Add / Read from session in ??MiddleWare??
Hey guys,
i'm creating a sort of "last viewed" footer bar for any eloquent models the user opens. adding the items to the database is not the problem i can do that in the controller of the model opened but where would i read - lets say the last 10 records - and pass them to the view? i guess that needs to be in the session? or a temporary attribute of the user?
hope you guys can give me a tipp :)
Please or to participate in this conversation.