You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-2Lines changed: 21 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,11 +40,30 @@ You must instanciate a new instance of Tiny with a random alpha-numeric set. Do
40
40
41
41
## Using laravel?
42
42
43
-
If you're using laravel and want to use a more laravel-like syntax you could use [this fork](https://github.com/golonka/tiny) which will allow you to use a syntax like this:
43
+
If you're using laravel and want to use a more laravel-like and cleaner suntax syntax you only have to follow these steps.
44
+
45
+
First open your ``app/config/app.php`` file and scroll down to your providers and add
46
+
```php
47
+
'providers' => array(
48
+
...
49
+
'ZackKitzmiller\TinyServiceProvider',
50
+
)
51
+
```
52
+
and then this to aliases
53
+
```php
54
+
'aliases' => array(
55
+
...
56
+
'Tiny' => 'ZackKitzmiller\Facades\Tiny',
57
+
)
58
+
```
59
+
60
+
Lastly you run ``php artisan config:publish zackkitzmiller/tiny`` and fill in your key.
0 commit comments