Jetstream makes your application into the next level.
Laravel Jetstream is a beautifully designed application starter kit for Laravel and provides the perfect starting point for your next Laravel application. Jetstream provides the implementation for your application's login, registration, email verification, two-factor authentication, session management, API via Laravel Sanctum, and optional team management features.
Jetstream is designed using Tailwind CSS and offers your choice of Livewire or Inertia scaffolding.
You are highly recommended to read through the entire documentation of Jetstream.
You may use Composer to install Jetstream into your new Laravel project:
composer create-project laravel/laravel example-app
cd example-app
composer require laravel/jetstream
After installing the Jetstream package, you may execute the jetstream:install
Artisan command. This command accepts the name of the stack you prefer (livewire
or inertia
). In addition, you may use the --teams
switch to enable team support.
The jetstream:install
command will also install a suite of "feature" tests that provide test coverage for the features provided by Jetstream. If you would like to use Pest PHP for testing, you may use the --pest
switch to install a Pest test suite instead of the default PHPUnit test suite.
You are highly encouraged to read through the entire documentation of Livewire or Inertia before beginning your Jetstream project.
Install Jetstream With Livewire.
php artisan jetstream:install livewire
php artisan jetstream:install livewire --teams
Or, Install Jetstream With Inertia.
php artisan jetstream:install inertia
php artisan jetstream:install inertia --teams
The Inertia stack may also be installed with SSR support:
php artisan jetstream:install inertia --ssr
If you would like to include "dark mode" support when scaffolding your application's frontend, provide the --dark
directive when executing the jetstream:install
command:
php artisan jetstream:install livewire --dark
After installing Jetstream, you should install and build your NPM dependencies and migrate your database:
npm install
npm run build
php artisan migrate