Spaces:
Running
Running
Download app/Controllers/FavoriteController.php from buddhaword/web: direct link, hf CLI and curl.
- Browser
- Download file 885 Bytes
-
https://huggingface.co/spaces/buddhaword/web/resolve/main/app/Controllers/FavoriteController.php
- Command line
-
hf download hf://spaces/buddhaword/web/app/Controllers/FavoriteController.php
-
curl -L -o FavoriteController.php https://huggingface.co/spaces/buddhaword/web/resolve/main/app/Controllers/FavoriteController.php
885 Bytes
| namespace App\Controllers; | |
| class FavoriteController { | |
| public function index() { | |
| $jsonLd = [ | |
| '@context' => 'https://schema.org', | |
| '@type' => 'WebPage', | |
| 'name' => 'ຖືກໃຈ - ຄຳສອນພຸດທະ', | |
| 'description' => 'ລາຍການທີ່ທ່ານຖືກໃຈ', | |
| 'url' => canonicalUrl(), | |
| 'inLanguage' => 'lo', | |
| 'isPartOf' => [ | |
| '@type' => 'WebSite', | |
| 'name' => 'ຄຳສອນພຸດທະ', | |
| ], | |
| ]; | |
| return view('pages.favorites', [ | |
| 'seo' => [ | |
| 'title' => 'ຖືກໃຈ - ຄຳສອນພຸດທະ', | |
| 'description' => 'ລາຍການທີ່ທ່ານຖືກໃຈ', | |
| 'json_ld' => $jsonLd, | |
| ] | |
| ]); | |
| } | |
| } | |