DEV Community

Sheik Hazrin Bin Sheik Othman
Sheik Hazrin Bin Sheik Othman

Posted on

Getting Started with Laravel Jetstream

Why I Start with Laravel Jetstream

Screenshot Dashboard

  • [ ] application scaffolding for Laravel
  • [ ] provides login, registration, email verification, two-factor authentication, session management, API support via Laravel Sanctum, and optional team management.
  • [ ] using Tailwind CSS and offers choice of Livewire or Inertia scaffolding.

Frontend stack

  • Livewire + Blade- simple to build modern, reactive, dynamic interfaces using Laravel Blade as your templating language
  • Inertia.js + Vue- uses [Vue.js](https://vuejs.org/) as its templating language.

Let's Get It Started

Eat-Sleep-Code-RepeatPhoto by Roman Synkevych on Unsplash


STEP 1: Complete 3 Basic Step

STEP 2: Install Jetstream Using Laravel Installer

  • Open cmd.exe and to type laravel new *project-name* --jet. Please change project-name to your project name.
    laravel new myapp-laravel --jet
  • Then, please select stack 1 for inertia
    Which Jetstream stack do you prefer?
    [0] livewire
    [1] inertia
    >1
  • Next, press 'no' for questions to enable team support in application for now.
     Will your application use teams? (yes/no) [no]:
    >no
  • installation process started
    Creating a "laravel/laravel" project at "./myapp-laravel"
    Installing laravel/laravel (v8.0.3)- Installing laravel/laravel (v8.0.3): Loading from cache
    Created project in C:*YOUR-WORKING-PATH*\myapp-laravel
    > @php -r "file_exists('.env') || copy('.env.example', '.env');"
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    ...
    ...
    ....
    The [C:*YOUR-WORKING-PATH*\myapp-laravel\public\storage] link has been connected to [C:*YOUR-WORKING-PATH*/myapp-laravel\storage\app/public].
    The links have been created.

Application ready! Build something amazing.

  • this installation process will take time.

Be patient with me

Be-patient-with-mePhoto by Charles Deluvio on Unsplash


STEP 3: Migrate your database

  • Open cmd.exe and to type php artisan migrate to start.
    >php artisan migrate your database
    Migration table created successfully.
    Migrating: 2014_10_12_000000_create_users_table
    Migrated:  2014_10_12_000000_create_users_table (136.76ms)
    Migrating: 2014_10_12_100000_create_password_resets_table
    Migrated:  2014_10_12_100000_create_password_resets_table (193.32ms)
    Migrating: 2014_10_12_200000_add_two_factor_columns_to_users_table
    Migrated:  2014_10_12_200000_add_two_factor_columns_to_users_table (339.87ms)
    Migrating: 2019_08_19_000000_create_failed_jobs_table
    Migrated:  2019_08_19_000000_create_failed_jobs_table (186.94ms)
    Migrating: 2019_12_14_000001_create_personal_access_tokens_table
    Migrated:  2019_12_14_000001_create_personal_access_tokens_table (290.68ms)
    Migrating: 2020_10_04_042537_create_sessions_table
    Migrated:  2020_10_04_042537_create_sessions_table (2,030.25ms)

Complete & Congrat:

Getting Started With Laravel Jetstream(Laravel Installer)
Complete-and-CongratPhoto by Eilis Garvey on Unsplash


Next:

Install MySQL database on Laravel Frameworks
[Getting Started With Laravel Jetstream(Composer)] - COMING SOON

Top comments (1)

Collapse
 
bobbyiliev profile image
Bobby Iliev

Jetstream is pretty cool! I also wrote my first impression of Laravel Jetstream and how to get started here!