e6f38d9481
* docs: remove requirement for setting APP_KEY manually * optimize date picker * clean up modals * spot light working * reorganization * add lazy load * wip * remove filament * styling
30 lines
626 B
PHP
30 lines
626 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Traits\HasLocalizedMarkdown;
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Routing\Controller;
|
|
use Illuminate\Support\Str;
|
|
|
|
class TermsOfServiceController extends Controller
|
|
{
|
|
use HasLocalizedMarkdown;
|
|
|
|
/**
|
|
* Show the terms of service for the application.
|
|
*
|
|
* @return \Illuminate\View\View
|
|
*/
|
|
public function show(Request $request)
|
|
{
|
|
$termsFile = $this->localizedMarkdownPath('terms.md');
|
|
|
|
return view('terms', [
|
|
'terms' => Str::markdown(file_get_contents($termsFile)),
|
|
]);
|
|
}
|
|
}
|