This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/app/Controllers/InfoController.php

62 lines
1.1 KiB
PHP

<?php
/**
* Hold the controller for informational pages.
* @package Sakura
*/
namespace Sakura\Controllers;
/**
* Informational controller.
* @package Sakura
* @author Julian van de Groep <me@flash.moe>
*/
class InfoController extends Controller
{
/**
* Renders the terms of service.
* @return string
*/
public function terms(): string
{
return view('info/terms');
}
/**
* Renders the privacy policy.
* @return string
*/
public function privacy(): string
{
return view('info/privacy');
}
/**
* Renders the contact page.
* @return string
*/
public function contact(): string
{
$contact = config('contact');
return view('info/contact', compact('contact'));
}
/**
* Renders the rules page.
* @return string
*/
public function rules(): string
{
return view('info/rules');
}
/**
* Renders the welcome page.
* @return string
*/
public function welcome(): string
{
return view('info/welcome');
}
}