17 lines
352 B
PHP
17 lines
352 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Http\Controllers;
|
||
|
|
|
||
|
|
use Illuminate\Support\Facades\File;
|
||
|
|
use Parsedown;
|
||
|
|
|
||
|
|
class HomeController extends Controller
|
||
|
|
{
|
||
|
|
public function home()
|
||
|
|
{
|
||
|
|
$Parsedown = new Parsedown();
|
||
|
|
$changelog = $Parsedown->text(File::get(\app_path('../CHANGELOG.md')));
|
||
|
|
return view('home', ['changelog' => $changelog]);
|
||
|
|
}
|
||
|
|
}
|