Skip to content

Commit

Permalink
Update IndexController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor authored Jul 19, 2023
1 parent a1f3c7f commit 57e98ad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/controller/IndexController.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ class IndexController
{
public function index(Request $request)
{
return response('hello webman');
static $readme;
if (!$readme) {
$readme = file_get_contents(base_path('README.md'));
}
return $readme;
}

public function view(Request $request)
Expand Down

0 comments on commit 57e98ad

Please sign in to comment.