Search code examples
phplaravelauthenticationweblaravel-jetstream

How to create a Jetstream Project via Composer in laravel 8?


I just upgraded to laravel 8, and want to use jetstream package but i am having issues installing it. Can someone tell complete procedure of how to install Laravel 8 jetstream project via composer and authentication too


Solution

  • in laravel/installer its easy

    laravel new project --jet
    

    but with composer

    composer require laravel/jetstream
    // then
    php artisan jetstream:install livewire
    // or
    php artisan jetstream:install inertia --teams
    
    npm install && npm run dev
    

    and for migrations just run this:

    php artisan migrate
    

    all in jetstream docs this link: https://jetstream.laravel.com/1.x/installation.html#composer-installation