๐Ÿ‘จโ€๐Ÿ’ป
Socialstream
  • Introduction
  • โฎ๏ธPrologue
    • Release Notes
    • Upgrade Guide
      • Upgrading to v6 from 5.x
      • Upgrading to v5 from 4.x
      • Upgrading to v4 from 3.x
      • Upgrading to v3 from 2.x
      • Upgrading to v2 from 1.x
    • Contribution Guide
  • ๐Ÿ”‘Getting Started
    • Installation
    • Configuration
    • Customization
      • Socialite Redirect
      • Resolving Users
      • Handling Invalid State
      • Handling OAuth Errors
      • Authenticating Users
  • ๐Ÿš€Features
    • Remember Session
    • Refresh Expired Tokens
    • Provider Avatars
    • Global Login
    • Register from Login
    • Missing Emails
    • Auth Existing Unlinked Users
    • Login on Registration (deprecated)
  • ๐Ÿงพguides
    • Standalone Installation
    • Filament with Jetstream
    • Filament with Breeze
    • Laravel Passport
    • Socialite Providers
    • Overriding Fortify's Authentication
  • ๐Ÿ”—Links
    • View Code On GitHub
    • About Me
    • Contribute
    • Donate
Powered by GitBook
On this page
  • Installation
  • Notes

Was this helpful?

  1. guides

Filament with Jetstream

In some use cases, the need may arise for you to have multiple stacks installed within your application. For example, you may have a user-facing authenticated area to your app, as well as an admin panel built with Filament Admin Panel. This guide will instruct you on how to get your application set up for this scenario.


This guide will assume you want to install the user-facing portion of your site via Laravel Jetstream and use Filament Admin Panel for staff. It also assumes you are using the same User model for both.

If you are using Laravel Breeze, please refer to this guide.

Installation

Firstly, you will want to install all the your dependencies via composer:

composer require laravel/jetstream filament/filament joelbutcher/socialstream

Once you have installed these dependencies, you may will want to run the install commands for both Jetstream and Filament before installing Socialstream:

php artisan jetstream:install <stack> <options>

php artisan filament:install --panels

Be sure to make a note of any optional features (such as teams support, dark mode, or email verification) as you will need this later on

Once you have done this, you will then need to install the Socialstream stack for Filament:

php artisan socialstream:install filament

This will ensure you have the base installation required for Socialstream to work with your application. It will also publish the required migrations, models and config files into your application for filament.

Next, you will need to install Socialstream for your desired Jetstream stack, ensuring to pass any options you may have opted-in for when installing Jetstream:

php artisan socialstream:install jetstream <stack> <options>

That's it! You can now enjoy using Socialstream for you application's users and for your apps admin panel.


Notes

Because we installed Socialstream for Jetstream as the last step, the User model that was published by Filament will have been overwritten. To fix this, you may wish to re-add this into your User model:

<?php

use Filament\Models\Contracts\FilamentUser;
use Filament\Panel;

class User extends Authenticatable implements FilamentUser
{
    public function canAccessPanel(Panel $panel): bool
    {
        return true;
    }
}
PreviousStandalone InstallationNextFilament with Breeze

Last updated 1 year ago

Was this helpful?

๐Ÿงพ