Okay, so it's nice as-is, but wouldn't it be better to just fire of a command?
Find a secure, easy way, to run
php artisan inspire, or check at the end of the post for example implementation code
What Will Happen
This command is built-in by default, and will pick randomly from a gigantic list of inspiring quotes. You might see one, then not see it again for 100 years! That's how big the list is.
None! Laravel comes with the command built-in by default.
Implementation Code ( optional )
use Illuminate\Foundation\Inspiring; $quote = Inspiring::quote(); echo $quote;
2 months ago