Summer Sale! All accounts are 50% off this week.

OneNonlyNova's avatar

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 :)

0 likes
0 replies

Please or to participate in this conversation.