This repository contains Bash scripts to help you quickly scaffold Laravel projects with optional support for FilamentPHP and Nutgram.
📁 Scripts are designed to be stored in: ~/.config/bin
🖥️ Make sure this directory is in your $PATH for easy access.
-
Clone the repository into
~/.config/bin:git clone https://github.com/TurgunboyevUz/laravel-bin.git ~/.config/bin -
Make sure the scripts are executable:
chmod +x ~/.config/bin/*
-
(Optional) Add
~/.config/binto your shell's PATH:-
For bash/zsh users, add this to
~/.bashrcor~/.zshrc:export PATH="$HOME/.config/bin:$PATH"
-
Reload your shell:
source ~/.bashrc # or source ~/.zshrc
-
Run the Laravel setup script like so:
./laravel my_project_name [options]Or, if you added it to your $PATH:
laravel my_project_name [options]| Option | Description |
|---|---|
--sqlite |
Use SQLite instead of MySQL |
--migrate |
Run php artisan migrate after install |
--filament |
Install and configure FilamentPHP |
--nutgram |
Install and configure Nutgram Telegram bot |
--force |
Delete the existing folder if it exists |
laravel– Main script to create Laravel projects.filament– Sub-script to set up FilamentPHP.nutgram– Sub-script to set up Nutgram Telegram bot.
These are sourced automatically by the main script.
When using the --force flag:
- You will be prompted before deleting an existing project folder.
- Pressing
Enteror typingyconfirms deletion.
Made by Diyorbek Turg'unboyev
Backend Developer | PHP, Laravel
The MIT License (MIT). Please see License File for more information.