Published in
1 min readMay 25, 2021
Install Backpack for Laravel with Homebrew. Backpack for Laravel is a simple MVC architecture to create flexible admin panels. Now you can use Homebrew to install it.
brew tap shinokada/backpack_install
brew install backpack_install
Set up your Laravel project.
composer create-project laravel/laravel myproject
Update .env file. MAMP example:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=8889
DB_DATABASE=example_app
DB_USERNAME=root
DB_PASSWORD=root
You can install all modules at once:
backpack_install
You can install one by one:
backpack_install -p
After installation:
- Configure BackupManager optional.
- Add
Spatie\Permission\Traits\HasRoles
trait to your User model(s). See more on For PermissionManager.
You can uninstall it using -u
flag:
backpack_install -u
Or from any directory:
backpack_install -u -d ~/path/to/myproject
Get help:
backpack_install -h
I will be grateful if you can try and give me feedback.
Get full access to every story on Medium by becoming a member.