From ef5a6cefae2557844b926436908ff65033c38c33 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Tue, 7 Mar 2023 11:42:58 +0000 Subject: [PATCH] Updated example in readme --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index b762dc4..1be3351 100644 --- a/README.md +++ b/README.md @@ -112,7 +112,6 @@ Markdown::convert('foo')->getContent(); //

foo

If you prefer to use dependency injection over facades like me, then you can easily inject the class like so: ```php -use Illuminate\Support\Facades\App; use League\CommonMark\ConverterInterface; class Foo @@ -130,7 +129,7 @@ class Foo } } -App::make(Foo::class)->bar(); +app(Foo::class)->bar(); ``` And don't forget, that's just the basics. We also support extension through listening for the resolving event from the container, and we ship with integration with Laravel's view system. You can use both the `@markdown` blade directive, and also using the following file extensions will compile your views as markdown: `'.md'`, `'.md.php'`, and `'.md.blade.php'`.