Git Product home page Git Product logo

laravel-bash-helpers's Introduction

Laravel/Lumen helpers for Bash

Useful commands for your Laravel/Lumen development.

Commands

artisan # replaces: php $project_root/artisan
linit   # sets directory permissions and creates your *.env* file if necessary
loot    # replaces: cd $project_root
phpunit # replaces: cd $project_root && vendor/bin/phpunit
phpspec # replaces: cd $project_root && vendor/bin/phpspec
tinker  # replaces: php $project_root/artisan tinker
serve   # replaces: php $project_root/artisan serve
gulp    # you won't need it installed globally anymore
homestead # replaces: cd ~/Homestead && vagrant

**New**
createdb # creates the database and username as set in .env

make multiple migrations, seeders, models and controllers at once

mmigrations  # usage: mmigrations table1 [table2 [...]]
mseeders     # usage: mseeders Seeder1 [Seeder2 [...]]
mmodels      # usage: mmodels Model1 [Model2 [...]]
mcontrollers # usage: mcontrollers Controller1 [Controller2 [...]]

# You can also use options:
mcontrollers --resource Controller1 [Controller2 [...]]
# And these sentences are the same (suffix appended if not provided):
mcontrollers aController
mcontrollers a

Others

These were extracted from laravel/homestead

..  # cd ..
... # cd ../..
h   # cd ~
c   # clear
art # artisan

Installation

You may source the file in your .bashrc (or in your current terminal to give it a try):

git clone https://github.com/whoan/laravel-bash-helpers.git
_path=$PWD/laravel-bash-helpers/laravel-bash-helpers.sh
echo "test -f \"$_path\"  && source \"$_path\"" >> ~/.bashrc  # install it in your .bashrc
source "$_path"  # make it available to the current terminal

Plans

  • Create stubs for controllers, models, etc.. so you can use make:something in Lumen.
  • Make a command to set an nginx server block (I have already done it but I need to adapt it to more platforms).
  • Make a command similar to lambo.

Contact

Mail
Twitter

License

laravel-bash-helpers is open-sourced software licensed under the MIT license.

laravel-bash-helpers's People

Contributors

whoan avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.