diff --git a/README.md b/README.md index 4a11205..3c7b7ce 100644 --- a/README.md +++ b/README.md @@ -1 +1,37 @@ -# laravel-quotes +# Laravel Quotes Package + +>This package allows you get quotes in Artisan command or get quotes in your laravel application. + +**WARNING**: The package is still under development so try to not use in production. + +## Installation +[Laravel](https://laravel.com/) 5+ and [Composer](https://getcomposer.org) are required. + +Installation using composer: + +``` +composer require tanseercena/laravel-quotes +``` +And if required then add the service provider in `config/app.php`: + +```php +Tanseercena\Quotes\QuotesServiceProvider::class, +``` + +## Usage in Artisan +```bash +php artisan quote +``` + +## TODO + + +## Contributing + +Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities. + +Don't forget to [follow me on twitter](https://twitter.com/tanseercena)! + +## License + +The MIT License (MIT). Please see [License File](LICENSE.md) for more information. diff --git a/src/Commands/QuotesCommand.php b/src/Commands/QuotesCommand.php index c820efb..b66d5b6 100644 --- a/src/Commands/QuotesCommand.php +++ b/src/Commands/QuotesCommand.php @@ -12,7 +12,7 @@ class QuotesCommand extends Command * * @var string */ - protected $signature = 'quotes'; + protected $signature = 'quote'; /** * The console command description. @@ -40,7 +40,7 @@ public function handle() { $quotes = new Quotes(); $quote = $quotes->getQuotes(); - + if(!$quote){ $this->error("Can't find any quote."); return;