This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
site-base/spark/src/Http/Controllers/TermsController.php

21 lines
388 B
PHP
Raw Normal View History

2017-11-03 05:26:07 +00:00
<?php
namespace Laravel\Spark\Http\Controllers;
use Parsedown;
class TermsController extends Controller
{
/**
* Show the terms of service for the application.
*
* @return Response
*/
public function show()
{
return view('spark::terms', [
'terms' => (new Parsedown)->text(file_get_contents(base_path('terms.md')))
]);
}
}