mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-12-01 12:53:03 +01:00
refactor(laravel): consolidate versioned plugins (#14282)
* refactor(laravel): consolidate versioned plugins * fix(laravel): scope legacy aliases and defer command discovery
This commit is contained in:
1 parent
924db8c81b
commit
aa9ca00520
8 files changed
+280
-67
No files matched your search
@@ -1,18 +1,13 @@
|
||||
# Laravel 4 plugin
|
||||
|
||||
This plugin adds some aliases for common [Laravel 4](https://laravel.com/docs/4.2) commands.
|
||||
|
||||
To use it, add `laravel4` to the plugins array in your zshrc file:
|
||||
This plugin is deprecated. Use the [laravel plugin](../laravel) instead:
|
||||
|
||||
```zsh
|
||||
plugins=(... laravel4)
|
||||
plugins=(... laravel)
|
||||
```
|
||||
|
||||
## Aliases
|
||||
|
||||
| Alias | Command | Description |
|
||||
|-----------|-----------------------------|-------------------------------------|
|
||||
| la4 | `php artisan` | Main Artisan command |
|
||||
| la4dump | `php artisan dump-autoload` | Regenerate framework autoload files |
|
||||
| la4cache | `php artisan cache:clear` | Flush the application cache |
|
||||
| la4routes | `php artisan routes` | List all registered routes |
|
||||
This compatibility loader sources `laravel` for shared aliases and completion,
|
||||
then adds the original `la4`, `la4dump`, `la4cache`, and `la4routes` aliases.
|
||||
These version-specific aliases are only available while `laravel4` is enabled.
|
||||
When switching to `laravel` alone, use `artisan` or the shared aliases, or define
|
||||
any shortcuts you still need in your own configuration.
|
||||
Reference in new issue
Block a user