-
app/Providers/AppServiceProvider.php
Open in GitHubuse App\Markdown; use Illuminate\Support\ServiceProvider; use League\CommonMark\GithubFlavoredMarkdownConverter; class AppServiceProvider extends ServiceProvider { public function register() { $this->app->singleton(Markdown::class, function () { return new Markdown(new GithubFlavoredMarkdownConverter([ 'allow_unsafe_links' => false, ])); }); } // }