Skip to content

Get autocomplete functionality for Laravel commands on macOS with this script. Simply install the script and you'll be able to use TAB to autocomplete commands like "migrate:fresh, route:list" and more.

Notifications You must be signed in to change notification settings

nilsapruzzese/laravel-cli-autocomplete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Laravel Autocomplete

This script provides autocomplete functionality for Laravel commands. With this script installed, you can easily autocomplete Laravel commands like migrate:fresh, route:list, and more using the Tab key.

Getting Started

Prerequisites

Before you can use this script, you'll need to have the following installed:

  • Bash shell (usually installed by default on Linux and Mac)

Installing

  1. Download the laravel-completion.bash file from this repository.
  2. Place this file in a directory where it won't be deleted (e.g. /usr/local/etc).
  3. Change the /path/to/ in the script to the directory where you placed the script. Save It!
  4. Make the file executable by running chmod +x laravel-completion.bash.
  5. Execute then script by running source /path/to/laravel-completion.bash and paste _laravel_completions_install in your Shell (you must be in a laravel project folder).

Useful Commands

To install the script, run the following command:

_laravel_completions_install

To uninstall the script, run the following command:

_laravel_completions_uninstall

To update the script, run the following command:

_laravel_completions_update

Usage

Once this script is installed, you can use Tab to autocomplete Laravel commands in your terminal. For Example:

php artisan mig[TAB]

Example of autocomplete in action: img.png You can also use TAB to autocomplete command options and arguments etc.

Contributing

If you find any bugs or have any suggestions, please open an issue or pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Get autocomplete functionality for Laravel commands on macOS with this script. Simply install the script and you'll be able to use TAB to autocomplete commands like "migrate:fresh, route:list" and more.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages