2021-07-30 00:50:06 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Support\Facades\File;
|
|
|
|
|
use Parsedown;
|
|
|
|
|
|
|
|
|
|
class HomeController extends Controller
|
|
|
|
|
{
|
2022-05-31 14:06:07 +02:00
|
|
|
/**
|
|
|
|
|
* Show Home page
|
|
|
|
|
*
|
|
|
|
|
* @return \Illuminate\Contracts\View\View|\Illuminate\Contracts\View\Factory
|
|
|
|
|
*/
|
2021-07-30 00:50:06 +02:00
|
|
|
public function home()
|
|
|
|
|
{
|
|
|
|
|
$Parsedown = new Parsedown();
|
|
|
|
|
$changelog = $Parsedown->text(File::get(\app_path('../CHANGELOG.md')));
|
|
|
|
|
return view('home', ['changelog' => $changelog]);
|
|
|
|
|
}
|
|
|
|
|
}
|