This package will generate an inspirational quote for you. Similar to Laravel's default php artisan inspire
, it includes the same quotes plus more. Easily access the author name and author head shot as well.
You can install the package via composer:
composer require cion/laravel-inspirational-quotes
The service provider and alias will automatically get registered.
php artisan inspire
$quote = InspirationalQuote::getRandomQuote();
// $quote output
[
'quote' => 'Simplicity is the ultimate sophistication.',
'by' => 'Leonardo da Vinci',
'avatar' => 'https://i.imgur.com/fk7VpK6.png',
]
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email chris@cion.agency instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.