You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pixelfed/app/Http/Controllers/MobileController.php

34 lines
826 B
PHTML

<?php
namespace App\Http\Controllers;
use App\Page;
9 months ago
use Cache;
use Illuminate\Http\Request;
use View;
class MobileController extends Controller
{
public function terms(Request $request)
{
9 months ago
$page = Cache::remember('site:terms', now()->addDays(120), function () {
$slug = '/site/terms';
9 months ago
return Page::whereSlug($slug)->whereActive(true)->first();
});
9 months ago
return View::make('mobile.terms')->with(compact('page'))->render();
}
public function privacy(Request $request)
{
9 months ago
$page = Cache::remember('site:privacy', now()->addDays(120), function () {
$slug = '/site/privacy';
9 months ago
return Page::whereSlug($slug)->whereActive(true)->first();
});
9 months ago
return View::make('mobile.privacy')->with(compact('page'))->render();
}
}