Skip to content

Commit 7a0b842

Browse files
committed
Updated read me with console commands
1 parent ce01792 commit 7a0b842

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,18 @@ In your dashboard view you use the `livewire:spotify-tile` component.
4949

5050
Once this is complete please head to the `/spotify/authorize` route on your dashboard in a browser and this will allow you to authenicate your spotify account.
5151

52-
Once authenicated setup is complete and you may use.
52+
In `app\Console\Kernel.php` you should schedule the following commands.
53+
54+
```php
55+
protected function schedule(Schedule $schedule)
56+
{
57+
// ...
58+
$schedule->command(\Ashbakernz\SpotifyTile\FetchDataFromSpotifyCommand::class)->everyMinute();
59+
$schedule->command(\Ashbakernz\SpotifyTile\RefeshAccessTokenSpotifyCommand::class)->everyFifteenMinutes();
60+
}
61+
```
62+
63+
Setup is complete!
5364

5465
## Bugs
5566
If the tile is displaying incorrectly please head to the `/spotify/refresh` route in a browser to refresh your spotify access token manually. (a is already setup command is setup to do this every 30mins)

0 commit comments

Comments
 (0)