Skip to content

Commit 1870c5c

Browse files
authored
Update README.md
1 parent ea5b2e1 commit 1870c5c

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

README.md

+1-19
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,7 @@ composer require rcrowe/twigbridge
1919

2020
# Quick Start
2121

22-
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:
23-
24-
```php
25-
'providers' => [
26-
...
27-
TwigBridge\ServiceProvider::class,
28-
],
29-
```
30-
31-
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):
32-
33-
```php
34-
'aliases' => [
35-
...
36-
'Twig' => TwigBridge\Facade\Twig::class,
37-
],
38-
```
39-
40-
Now that you have both of those lines added to config/app.php we will use Artisan to add the new twig config file:
22+
Laravel automatically registers the Service Provider. Use Artisan to publish the twig config file:
4123

4224
```php
4325
php artisan vendor:publish --provider="TwigBridge\ServiceProvider"

0 commit comments

Comments
 (0)