Skip to content

ghulamali2612/artisan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

Artisan

Laravel basic artisan commands

Installation

Use Composer to install the library.

$ composer require ghulamali2612/artisan

Implementation

Add this line in config/app.php

GhulamAli\Artisan\ArtisanServiceProvider::class

Usage

  • $ php artisan artisan-database:tables //List of your database table
  • $ php artisan artisan-database:refresh //Truncate all database tables except migration
  • $ php artisan artisan-database:truncate table_name //Truncate requested table only
  • $ php artisan artisan-database:drop table_name //Drop the requested table
  • $ php artisan artisan-log:clear //Clear storage/logs/laravel.log file