A little command helper for laravel artisan

v1.4.9 2019-02-26 23:49 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
  • 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

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:deploy

Install laravel project on server

  1. Set url to cloning and credentials to process
  2. If you don't remember credentials, set 'n' on 2nd question
  3. basher:deploy set all required permisions to run laravel on Amazon Linux ami 2
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

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.