Giter VIP home page Giter VIP logo

laravel-commands's Introduction

Laravel commands

Packagist Packagist Packagist

This package is a collection of artisan commands for speed up developmemt with laravel framework.

Installation

Install via composer

composer require guysolamour/laravel-commands

Usage

Create Database Command

php artisan cmd:db:create databasename

You can use --help option to have more informations about this command

Drop Database Command

php artisan cmd:db:drop databasename

You can use --help option to have more informations about this command

Seed Command

php artisan cmd:db:seed

If you want to run all seed --all option

php artisan cmd:db:seed --all

If you want to run a specific class you can use --class option

php artisan cmd:db:seed --class=UsersTableSeeder

Run seed in production --force option

php artisan cmd:db:seed --force

You can use --help option to have more informations about this command

Dump Command

php artisan cmd:db:dump

Available drivers are mysql, pgsql, sqlite and default driver is mysql

Host can be changed with --host option

php artisan cmd:db:dump --host sqlite

Username can be changed with --dbusername option

php artisan cmd:db:dump --dbusername root

Password can be changed with --dbpassword option

php artisan cmd:db:dump --dbpassword root

Database name can be changed with --dbname option

php artisan cmd:db:dump --dbname databasename

Dump filename can be changed with --filename option

php artisan cmd:db:dump --filename dump.sql

You can use --help option to have more informations about this command

Trait Command

php artisan cmd:make:trait traitname

Folder can be changed with --folder option

php artisan cmd:make:trait traitname --folder={folder}

You can use --help option to have more informations about this command

Service Provider Command

php artisan cmd:make:provider providername

Folder can be changed with --folder option

php artisan cmd:make:provider providername --folder={folder}

You can use --help option to have more informations about this command

Helper Command

php artisan cmd:make:helper helpername

Folder name can be changed with --folder option

php artisan cmd:make:helper helpername --folder={folder}

You can use --help option to have more informations about this command

Security

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

laravel-commands's People

Contributors

guysolamour 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.