Open your Laravel project's composer.json file.
Find the "require" section in your composer.json file.
Change the "spatie/laravel-permission" package version to "5.11.*" like this:
jsonCopy code
"require": {
// ... other dependencies ...
"spatie/laravel-permission": "5.11.*",
}
Save the composer.json file.
Open your terminal or command prompt and navigate to your Laravel project's root directory.
Run the following command to update your project's dependencies and install the specified version: