A little command helper for laravel artisan

v1.5.2 2019-08-15 20:48 UTC

README

Latest Version on Packagist Total Downloads Build Status StyleCI

A little helper for delevopers

Installation

Via Composer

$ composer require fitluismacedo/basher

Usage

php artisan basher:clean

clear all laravel cache's and regenerate composer executing commands:

  • php artisan cache:clear
  • php artisan route:clear
  • php artisan view:clear
  • php artisan config:clear
  • php artisan clear-compiled
  • composer dump-autoload -o
php artisan basher:push

pushing files to git, type you commit name and branch to push, if branch is empty, content will push to master branch

  • now exec git stash, pull and stash apply before push content
php artisan basher:env [dev|testing|prod|othername]

Set .env params to a desired enviroment, type [envname] after command to re-set values; need a file .env.[envname] to copy params

php artisan basher:revert

Revert files to a specific commit id and force to push content, type [commidID] and [branchname] to continue

php artisan basher:tag

Create a git tag and push content, type [tagname] to continue

php artisan basher:generate

Generate laravel models from mysql connection setted on .env file, type [directory] to generate

  • now can generate one o more tables comma-separated
php artisan basher:ignore

Ignore a file that you do not want to commit, type [filename] with project relative path to use

Change log

Please see the changelog for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email falconshady@gmail.com instead of using the issue tracker.

Credits

License

Giftware License. Please see the license file for more information.