Skip to content

Commit 017e4d6

Browse files
authored
Drop now-unnecessary references to caching in README
1 parent 304d27d commit 017e4d6

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55
# Ziggy - Use your Laravel Named Routes inside Javascript
66

7-
Ziggy creates a Blade directive which you can include in your views. This will export a JavaScript object of your application's named routes, keyed by their names (aliases), as well as a global `route()` helper function which you can use to access your routes in your JS.
7+
Ziggy creates a Blade directive which you can include in your views. This will export a JavaScript object of your application's named routes, keyed by their names (aliases), as well as a global `route()` helper function which you can use to access your routes in your JavaScript.
88

99
## Installation
1010

1111
1. Add Ziggy to your Composer file: `composer require tightenco/ziggy`
1212

1313
2. (if Laravel 5.4) Add `Tightenco\Ziggy\ZiggyServiceProvider::class` to the `providers` array in your `config/app.php`.
1414

15-
3. Include our Blade Directive (`@routes`) somewhere in your template before your main application JavaScript is loaded--likely in the header somewhere.
15+
3. Include our Blade Directive (`@routes`) somewhere in your template before your main application JavaScript is loaded—likely in the header somewhere.
1616

1717
## Usage
1818

@@ -39,11 +39,6 @@ return axios.get(route('posts.show', {id: postId}))
3939
});
4040
```
4141

42-
## Caching
43-
Laravel caches views by default, so we're doing a little magic to circumvent view caching if you've made any changes to your routes. By default this circumvention only happens when `config('app.env')` is `local`. If you want to do this in some other environment for some reason, just set `config('ziggy.skip_view_cache')` to `true`.
44-
45-
*The current hashing technique we're using to check if your routes file has changed is a little unorthodox (some might even say "sketchy") so rest assured that we'll be hacking on it in the next week or two to optimize it.*
46-
4742

4843
## Credits
4944

0 commit comments

Comments
 (0)