Extended Laravel
  • Getting started
  • Helpers
  • Commands
  • Middleware
  • Facades
Powered by GitBook
On this page
  • Make commands
  • Make builder
  • Horizon flush
  • Queue batches
  • Clear atomic locks
  • Check vendor dependencies
  • Get dependencies licenses list

Commands

Added commands on top of the replacements did on top of the functionality of the Laravel ones.

Make commands

All make commands from the framework are replaced to use the OpensGeneratedFiles trait which contains a method called openGeneratedAfter to open the generated file with an IDE configured.

Compatible IDEs are the following:

sublime, textmate, emacs, macvim, phpstorm, idea, vscode, vscode-insiders, vscode-remote, vscode-insiders-remote, atom, nova, netbeans, zed

Make builder

Make custom query builder class (Eloquent) for a specified model name.

php artisan make:builder User

Horizon flush

Flush horizon database (normally Redis) with records of past jobs.

php artisan horizon:flush

Queue batches

List all queued jobs sent as batches.

php artisan queue:batches

Clear atomic locks

Use carefully on production environments, anyway it should ask to confirmation when running on production.

php artisan cache:clearLocks

Check vendor dependencies

Check and list all the config and publishable group that is outdated on your app.

php artisan vendor:check

Get dependencies licenses list

Gets licenses list from backend and frontend dependencies (using NPM).

php artisan vendor:licenses

You can get Markdown or JSON formatted list by using the option --format

php artisan vendor:licenses --format=markdown

php artisan vendor:licenses --format=json
PreviousHelpersNextMiddleware

Last updated 3 months ago

Clear all cache locks, from Laravel.

atomic locks