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
When processing requests with a call to the withAuth method, the binding will be carried out not only by identifier, but also by reference to the model class, since a project can
163
+
When processing requests with a call to the withAuth method, the binding will be carried out not only by identifier, but
164
+
also by reference to the model class, since a project can
129
165
have several models with the possibility of authorization.
130
166
131
167
For example, `App\Models\Employee`, `App\Models\User`.
@@ -195,7 +231,8 @@ $cache->forget();
195
231
196
232
#### Method Call Chain
197
233
198
-
Sometimes in the process of working with a cache, it becomes necessary to call some code between certain actions, and in this case the `call` method will come to the rescue:
234
+
Sometimes in the process of working with a cache, it becomes necessary to call some code between certain actions, and in
235
+
this case the `call` method will come to the rescue:
If the value is not found, the [default value](config/cache.php) will be taken, which you can also override in the [configuration file](config/cache.php).
346
+
If the value is not found, the [default value](config/cache.php) will be taken, which you can also override in
347
+
the [configuration file](config/cache.php).
310
348
311
349
##### With Contract
312
350
313
-
Starting with version [`2.9.0`](https://github.com/TheDragonCode/laravel-cache/releases/tag/v2.9.0), we added the ability to dynamically specify TTLs in objects. To do this, you
314
-
need to implement the `DragonCode\Contracts\Cache\Ttl` contract into your object and add a method that returns one of the following types of variables: `DateTimeInterface`
351
+
Starting with version [`2.9.0`](https://github.com/TheDragonCode/laravel-cache/releases/tag/v2.9.0), we added the
352
+
ability to dynamically specify TTLs in objects. To do this, you
353
+
need to implement the `DragonCode\Contracts\Cache\Ttl` contract into your object and add a method that returns one of
354
+
the following types of variables: `DateTimeInterface`
315
355
, `Carbon\Carbon`, `string`
316
356
or `integer`.
317
357
@@ -380,7 +420,8 @@ $cache->forget();
380
420
// Will remove the key from the cache.
381
421
```
382
422
383
-
To retrieve a tagged cache item, pass the same ordered list of tags to the tags method and then call the get method with the key you wish to retrieve:
423
+
To retrieve a tagged cache item, pass the same ordered list of tags to the tags method and then call the get method with
0 commit comments