Skip to content

Commit e4ac75f

Browse files
committed
added ability to disable cache
1 parent 050eac8 commit e4ac75f

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/Traits/HasApiModelBehavior.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,6 @@ public static function queryWithRequest(Request $request, ?\Closure $queryCallba
275275
* This method creates a new instance with caching disabled for that specific instance.
276276
* Safe for use in Laravel Octane and concurrent request environments.
277277
*
278-
* @return static
279-
*
280278
* @example
281279
* ```php
282280
* // Query without cache - use queryFromRequest (not queryWithRequest)
@@ -287,7 +285,7 @@ public static function queryWithRequest(Request $request, ?\Closure $queryCallba
287285
*/
288286
public static function withoutCache(): static
289287
{
290-
$instance = new static();
288+
$instance = new static();
291289
$instance->disableApiCache = true;
292290

293291
return $instance;

0 commit comments

Comments
 (0)