@haseeb69 while I'm not sure about the first one (not fully undersatnd your logic), answer to the second point is - yes https://spatie.be/docs/laravel-permission/v4/basic-usage/direct-permissions
Jun 25, 2021
3
Level 1
Laravel Spatie Info
i'm new to laravel and i've come across a project where i have to use roles and permissions
My project focusses on subscription based search functionalities
E.g Out of 50 states user can have access to particular 2 or 3 states and same for another kind of category while searching
i've read spatie's documentation but i have some confusions
- What would be the logic for this kind of search . if i make user as a role and permissions as (search_state1,search_state2 etc ) would that be correct or im totally wrong .
2 . can permissions be assigned to a particular user ? ( e.g user 1 can search only 2 states while user 2 can search 4 states etc)
Please or to participate in this conversation.