A goofy hungarian alternative to Laravel's built in Inspiring command. Built as a way to test Laravel package development.
composer require ahurkatolto/aforizma:dev-main
If composer complains, edit your project's composer.json as so:
"minimum-stability": "dev",
"prefer-stable": true
- Dependency injection
class AforizmaTestController extends Controller
{
public function random(Aforizma $aforizma)
{
return view('aforizma', [
'quote' => $aforizma->quote,
'author' => $aforizma->author,
]);
}
}
- Helper function
$aforizma = aforizma();
- Statically through the class itself
$aforizma = \Ahurkatolto\Aforizma\Aforizma::random();