kkiernan / sword-lyrics

Get random lyrics by The Sword

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sword Lyrics

Get a random lyric by The Sword. This is a very simple facade I used to learn how to set up a facade in Laravel.

Instructions

Install

Grab it through Composer.

composer require kkiernan/sword

Add the Service Provider

Add the service provider to your config/app.php file in the providers array.

'providers' => [

	//...

	Sword\SwordServiceProvider::class

]

Add the Alias

Add the Sword alias to your aliases in config/app.php.

'aliases' => [

	//...

	'Sword' => Sword\SwordFacade::class

]

Use

Call the lyric method to get a random lyric. For example, you could use it in a blade template.

<p>{{ Sword::lyric() }}</p>

About

Get random lyrics by The Sword


Languages

Language:PHP 100.0%