diff options
| author | Zach DeCook <zachdecook@librem.one> | 2020-11-19 03:46:01 +0000 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2020-11-19 03:46:01 +0000 |
| commit | e04ccd05b9ad4e45d28246eb200613e678636747 (patch) | |
| tree | d9bc844139cd83b228bb933c19dda90a0ba0311a /laravel/public | |
| parent | 59a28d8856ab56639b803f237fe0b6f5496c4597 (diff) | |
| download | prosongsa-e04ccd05b9ad4e45d28246eb200613e678636747.tar.gz | |
* Gemini: Get 5 random song ids
Diffstat (limited to 'laravel/public')
| -rwxr-xr-x | laravel/public/song.gmi.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/laravel/public/song.gmi.php b/laravel/public/song.gmi.php index 07e72dc..b00ce20 100755 --- a/laravel/public/song.gmi.php +++ b/laravel/public/song.gmi.php @@ -17,6 +17,14 @@ printf("40 song $id not found\r\n");return; ?> # <?= $song->title ?> +<?= $song->author ?> + ``` <?= $song->text ?> + ``` + +<?php foreach(Song::inRandomOrder()->limit(5)->pluck('title','id') as $id => $title): ?> +=> <?= $id ?> <?= $title ?> + +<?php endforeach; ?> |
