Download the PHP package itbm/laravel-jetstream-disable-personal-team without Composer
On this page you can find all versions of the php package itbm/laravel-jetstream-disable-personal-team. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download itbm/laravel-jetstream-disable-personal-team
More information about itbm/laravel-jetstream-disable-personal-team
Files in itbm/laravel-jetstream-disable-personal-team
Package laravel-jetstream-disable-personal-team
Short Description Disable personal teams in Laravel Jetstream
License MIT
Homepage https://github.com/itbm/laravel-jetstream-disable-personal-team
Informations about the package laravel-jetstream-disable-personal-team
Jetstream Disable Personal Team
This package allows you to disable the personal teams in Laravel Jetstream.
Requirements
This package requires Laravel 10.x and Jetstream 2.x.
Installation
You can install the package via composer:
Usage
All
Update your CreateNewUser.php file to comment out the personal team creation logic:
Then, edit web.php and api.php to include the require-team middleware included with this package. This will redirect the user to the team creation page if they have not joined a team yet:
Inertia Only
You will need to update your AppLayout.vue file. Find and replace these 2 lines:
with:
Livewire Only
You will need to update your navigation-menu.blade.php file. Find and replace both instances of this line:
with:
All versions of laravel-jetstream-disable-personal-team with dependencies
spatie/laravel-package-tools Version >=1.14.0
illuminate/contracts Version >=10.0