laravel 🚀
feature-flags 🚀
pennant 🚀
Using Laravel Pennant in Inertia

Basically in the file `app/Http/Middleware/HandleInertiaRequests.php`

I add the following

    public function share(Request $request): array
    {
        $subscribed = 'false';
        if (! auth()->guest()) {
            $subscribed = auth()->user()->subscribed();
        }

        $featureFlags = Feature::all();

        return array_merge(parent::share($request), [
            'core_url' => config('level671.core.url'),
            'subscribed' => $subscribed,
            'features' => $featureFlags,

Then in Inertia I can see all the features and if they are on or not.