Laravel middleware with multiple roles
I've been running into some issues with Laravel's middleware. Let me tell you the basic idea of what I'm trying to accomplish: Registered users on the site will have one of four roles: Student (default): can access ' index ' and ' show ' views Approver: can access previous, plus ' overview ', ' update ' Editor: can access previous, plus ' create ', ' edit ' and ' store ' Admin: can access everything fyi: 'overview' is sort of an index view, but only for approver role and higher What would you guys suggest is the best way to go about doing this? This is what I've done so far, but it doesn't