From 1870c5c7eef6af51fb2306450cc55ae61106bcfc Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Thu, 10 Feb 2022 14:56:21 +0100 Subject: [PATCH] Update README.md --- README.md | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/README.md b/README.md index 1012f63..5454abf 100644 --- a/README.md +++ b/README.md @@ -19,25 +19,7 @@ composer require rcrowe/twigbridge # Quick Start -Once Composer has installed or updated your packages you need to register TwigBridge with Laravel itself. Open up config/app.php and find the providers key, towards the end of the file, and add 'TwigBridge\ServiceProvider', to the end: - -```php -'providers' => [ - ... - TwigBridge\ServiceProvider::class, -], -``` - -Now find the aliases key, again towards the end of the file, and add 'Twig' => 'TwigBridge\Facade\Twig', to have easier access to the TwigBridge (or Twig\Environment): - -```php -'aliases' => [ - ... - 'Twig' => TwigBridge\Facade\Twig::class, -], -``` - -Now that you have both of those lines added to config/app.php we will use Artisan to add the new twig config file: +Laravel automatically registers the Service Provider. Use Artisan to publish the twig config file: ```php php artisan vendor:publish --provider="TwigBridge\ServiceProvider"