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