You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
467 B
20 lines
467 B
<?php
|
|
|
|
|
|
namespace App\Admin\Controllers;
|
|
|
|
|
|
use Dcat\Admin\Controllers\AdminController;
|
|
use Dcat\Admin\Layout\Content;
|
|
use Dcat\Admin\Widgets\Card;
|
|
use Dcat\Admin\Widgets\Markdown;
|
|
|
|
class Help extends AdminController
|
|
{
|
|
public function index(Content $content)
|
|
{
|
|
$type = request()->get('type');
|
|
$data = file_get_contents("./../resources/views/admin/markdown/{$type}.md");
|
|
return $content->body(Card::make(Markdown::make($data)));
|
|
}
|
|
}
|