Skip to content

TurgunboyevUz/laravel-bin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚙️ Laravel Project Installer Scripts

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.

📦 Installation

  1. Clone the repository into ~/.config/bin:

    git clone https://github.com/TurgunboyevUz/laravel-bin.git ~/.config/bin
  2. Make sure the scripts are executable:

    chmod +x ~/.config/bin/*
  3. (Optional) Add ~/.config/bin to your shell's PATH:

    • For bash/zsh users, add this to ~/.bashrc or ~/.zshrc:

      export PATH="$HOME/.config/bin:$PATH"
    • Reload your shell:

      source ~/.bashrc  # or source ~/.zshrc

🚀 Usage

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]

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

🧰 File Structure

  • 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.


🛡️ Safety

When using the --force flag:

  • You will be prompted before deleting an existing project folder.
  • Pressing Enter or typing y confirms deletion.

🧑‍💻 Author

Made by Diyorbek Turg'unboyev
Backend Developer | PHP, Laravel


🪪 License

The MIT License (MIT). Please see License File for more information.

About

Laravel/Filament/Nutgram installer scripts

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages