Now that we did gate, let's use a library with gate Laravel feature flag, so we can show and hide features based on the user who logs in!
This can really be a big deal. Say, I am not ready to show any user, but myself, a feature, then when I login, I can see it working. But when I am ready for another user to see it, I can then add features to the list of people who can see it.
I am going to use the install from the start of this recipe book, but you can just jump in as we just need two users to try this out.
First, I will make sure I have two users.
Then, I will install the library per it's instructions:
> composer require alfred-nutile-inc/laravel-feature-flag
Now, let's load the provider:
Let's run the migration for this library:
>php artisan vendor:publish --\ provider="AlfredNutileInc\LaravelFeatureFlags\FeatureFlagsProvider" --tag='migrations'
Now, let's add a migration based on their example to put this in...