PHP code example of douglas-spindola / laravel-inspiring-quotes
1. Go to this page and download the library: Download douglas-spindola/laravel-inspiring-quotes library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
douglas-spindola / laravel-inspiring-quotes example snippets
use DouglasSpindola\LaravelInspiringQuotes\Inspiring;
$quote = Inspiring::quoteInPortuguese();
echo $quote;
Route::get('/dashboard', function () {
return Inertia::render('Dashboard', [
'quote' => Inspiring::quoteInPortuguese(),
]);
})->middleware(['auth', 'verified'])->name('dashboard');
protected static function quotes()
{
return Collection::make([
'Your new custom quote here.',
// Add more quotes here...
]);
}