ldc-supportweb/app/Http/Controllers/HomeController.php
Jérémy Munsch 46d77f5303 add changelog on home
add HomeController
change home route to use guest middleware
2021-07-30 00:50:06 +02:00

16 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]);
}
}