0

2 years agoby Lon

Can use middleware layer by layer for validation

I try to create movie package website,If customer buy one movie ,he can view this one .I make it by middleware and role permission.If customer want to buy next package,how can I permit customer to view next package?How can use middleware for it.

0

Lon replied 2 years ago

0

sir also help me this issue,I searching google about perfectmoney and laravel.I not see anything.I try to integrate it. https://stackoverflow.com/questions/51094467/how-can-make-to-view-perfect-money-transaction-history-in-website

22

Sarthak replied 2 years ago

0

Yes you can do that

0

Lon replied 2 years ago

0

so I can give many roles to one user in spatie permission package?

22

Sarthak replied 2 years ago

0

Yes you can use middleware, in that way, on your middleware you need to check the condition that if given movie package is purchased by user or not, if yes then show the movie otherwise show "buy now".

This has to be simple middleware not layer of middleware.

Ask Question
Most Visited
Categories