๐Ÿ‘จโ€๐Ÿ’ป
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

Was this helpful?

  1. guides

Standalone Installation

PreviousLogin on Registration (deprecated)NextFilament with Jetstream

Last updated 1 year ago

Was this helpful?

This guide will instruct you on how to install Socialstream as a standalone application. If you require additional functionality such as those provided by Laravel Jetstream, Laravel Breeze, or Filament, please follow the .

This guide assumes you are installing Socialstream into a fresh, blank blade-based Laravel application. If you are installing Socialstream into an existing Laravel app, or one built with Vue, React or another frontend technology, this guide will not work and will break your application.


Installation

Please follow the for getting started with a brand new Laravel application.

Once you have created your app, cd into your projects directory and install Socialstream via composer:

composer require joelbutcher/socialstream

You will then want to publish the configuration file and migrations required to get Socialstream working:

// Config
php artisan vendor:publish --tag=socialstream-config

// Migrations
php artisan vendor:publish --tag=socialstream-migrations

You will then want to run your migrations:

php artisan migrate

Next, you will want to follow the for installing Tailwind CSS into your Laravel application. Once you have done this, you will need to update the content option of your applications tailwind.config.js file to include Socialstream's resources directory and files:

/** @type {import('tailwindcss').Config} */
module.exports = {
  content: [
    './vendor/joelbutcher/socialstream/resources/**/*.blade.php',
    ...
  ],
  ...
}

You may then add the Socialstream component into your application:

<x-socialstream::socialstream />

Finally, you will want to install and build your frontend:

npm install && npm run build
๐Ÿงพ
standard installation guide
official documentation
official guide