Initial Spark Install
This commit is contained in:
20
spark/src/Http/Controllers/TermsController.php
Normal file
20
spark/src/Http/Controllers/TermsController.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?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')))
|
||||
]);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user