Jetstream

Setup Jetstream

Jetstream makes your application into the next level.

Introduction

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.

Tailwind CSS is an open source CSS framework. The main feature of this library is that, unlike other CSS frameworks like Bootstrap, it does not provide a series of predefined classes for elements such as buttons or tables.

Livewire is a full-stack framework for Laravel that makes building dynamic interfaces simple, without leaving the comfort of Laravel.

Inertia is a new approach to building classic server-driven web apps. We call it the modern monolith. Inertia allows you to create fully client-side rendered, single-page apps, without the complexity that comes with modern SPAs. It does this by leveraging existing server-side patterns that you already love.

Installation

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.

New Applications Only

Jetstream should only be installed into new Laravel applications. Attempting to install Jetstream into an existing Laravel application will result in unexpected behavior and issues.

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
Dark Mode:

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
Finalizing The Installation:

After installing Jetstream, you should install and build your NPM dependencies and migrate your database:

npm install
npm run build
php artisan migrate
If you customize any file then rebuild your assets:
npm run build

Features In Velzon:

Laravel Jetstream's architecture is a little different from other Laravel application starter kits such as Laravel Breeze. In this documentation, we'll cover some of the high-level concepts that will help you understand how Laravel Jetstream is constructed.

Velzon Jetstream provides below features in this app:

To enable or disable the Jetstream features, We have two config files inside config/ folder. Note: You will get these files after installing Jetstream :)

  • fortify.php
  • jetstream.php
fortify.php

'features' => [
    Features::registration(),
    Features::resetPasswords(),
    // Features::emailVerification(),
    Features::updateProfileInformation(),
    Features::updatePasswords(),
    Features::twoFactorAuthentication([
    // 'confirm' => true,
    'confirmPassword' => true,
    ]),
],
                                                    
jetstream.php

'features' => [
    // Features::termsAndPrivacyPolicy(),
    // Features::profilePhotos(),
    // Features::api(),
    Features::teams(['invitations' => true]),
    Features::accountDeletion(),
],
                                                    

You can simply handle this features using comment or uncomment the following. like if you don't want to use user profile photo just comment it in jetstream.php.

You can have any other questions, feel free to contact us via support@themesbrand.com.

© Velzon.
Design & Develop by Themesbrand