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

63 lines
1.1 KiB
PHP
Raw Permalink Normal View History

2016-07-31 01:32:37 +00:00
<?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
{
2016-08-05 02:35:37 +00:00
/**
* Renders the terms of service.
* @return string
*/
2016-12-04 16:33:52 +00:00
public function terms(): string
2016-07-31 01:32:37 +00:00
{
return view('info/terms');
}
2016-08-05 02:35:37 +00:00
/**
* Renders the privacy policy.
* @return string
*/
2016-12-04 16:33:52 +00:00
public function privacy(): string
2016-07-31 01:32:37 +00:00
{
return view('info/privacy');
}
2016-08-05 02:35:37 +00:00
/**
* Renders the contact page.
* @return string
*/
2016-12-04 16:33:52 +00:00
public function contact(): string
2016-07-31 01:32:37 +00:00
{
$contact = config('contact');
return view('info/contact', compact('contact'));
}
2016-08-05 02:35:37 +00:00
/**
* Renders the rules page.
* @return string
*/
2016-12-04 16:33:52 +00:00
public function rules(): string
2016-07-31 01:32:37 +00:00
{
return view('info/rules');
}
2016-08-05 02:35:37 +00:00
/**
* Renders the welcome page.
* @return string
*/
2016-12-04 16:33:52 +00:00
public function welcome(): string
2016-07-31 01:32:37 +00:00
{
return view('info/welcome');
}
}