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.
Before you can use this script, you'll need to have the following installed:
- Bash shell (usually installed by default on Linux and Mac)
- Download the
laravel-completion.bash
file from this repository. - Place this file in a directory where it won't be deleted (e.g.
/usr/local/etc
). - Change the
/path/to/
in the script to the directory where you placed the script. Save It! - Make the file executable by running
chmod +x laravel-completion.bash
. - 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).
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
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: You can also use TAB to autocomplete command options and arguments etc.
If you find any bugs or have any suggestions, please open an issue or pull request.
This project is licensed under the MIT License - see the LICENSE file for details.