44
55/**
66 * A helper file for Laravel, to provide autocomplete information to your IDE
7- * Generated for Laravel 10.18 .0.
7+ * Generated for Laravel 10.21 .0.
88 *
99 * This file should not be included in your code, only analyzed by your IDE!
1010 *
@@ -3651,6 +3651,18 @@ public static function recordPendingBatch($pendingBatch)
36513651 {
36523652 /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
36533653 return $instance->recordPendingBatch($pendingBatch);
3654+ }
3655+ /**
3656+ * Specify if commands should be serialized and restored when being batched.
3657+ *
3658+ * @param bool $serializeAndRestore
3659+ * @return \Illuminate\Support\Testing\Fakes\BusFake
3660+ * @static
3661+ */
3662+ public static function serializeAndRestore($serializeAndRestore = true)
3663+ {
3664+ /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
3665+ return $instance->serializeAndRestore($serializeAndRestore);
36543666 }
36553667
36563668 }
@@ -10385,6 +10397,18 @@ public static function pushedJobs()
1038510397 {
1038610398 /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
1038710399 return $instance->pushedJobs();
10400+ }
10401+ /**
10402+ * Specify if jobs should be serialized and restored when being "pushed" to the queue.
10403+ *
10404+ * @param bool $serializeAndRestore
10405+ * @return \Illuminate\Support\Testing\Fakes\QueueFake
10406+ * @static
10407+ */
10408+ public static function serializeAndRestore($serializeAndRestore = true)
10409+ {
10410+ /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
10411+ return $instance->serializeAndRestore($serializeAndRestore);
1038810412 }
1038910413 /**
1039010414 * Get the connection name for the queue.
@@ -11311,7 +11335,7 @@ public static function get($key, $default = null)
1131111335 *
1131211336 * @param string|null $key
1131311337 * @param mixed $default
11314- * @return \Symfony\Component\HttpFoundation\ParameterBag |mixed
11338+ * @return \Symfony\Component\HttpFoundation\InputBag |mixed
1131511339 * @static
1131611340 */
1131711341 public static function json($key = null, $default = null)
@@ -11473,7 +11497,7 @@ public static function fingerprint()
1147311497 /**
1147411498 * Set the JSON payload for the request.
1147511499 *
11476- * @param \Symfony\Component\HttpFoundation\ParameterBag $json
11500+ * @param \Symfony\Component\HttpFoundation\InputBag $json
1147711501 * @return \Illuminate\Http\Request
1147811502 * @static
1147911503 */
@@ -16878,6 +16902,18 @@ public static function withKeyResolver($keyResolver)
1687816902 {
1687916903 /** @var \Illuminate\Routing\UrlGenerator $instance */
1688016904 return $instance->withKeyResolver($keyResolver);
16905+ }
16906+ /**
16907+ * Set the callback that should be used to attempt to resolve missing named routes.
16908+ *
16909+ * @param callable $missingNamedRouteResolver
16910+ * @return \Illuminate\Routing\UrlGenerator
16911+ * @static
16912+ */
16913+ public static function resolveMissingNamedRoutesUsing($missingNamedRouteResolver)
16914+ {
16915+ /** @var \Illuminate\Routing\UrlGenerator $instance */
16916+ return $instance->resolveMissingNamedRoutesUsing($missingNamedRouteResolver);
1688116917 }
1688216918 /**
1688316919 * Get the root controller namespace.
@@ -21490,7 +21526,7 @@ public static function firstOrNew($attributes = [], $values = [])
2149021526 }
2149121527
2149221528 /**
21493- * Get the first record matching the attributes or create it.
21529+ * Get the first record matching the attributes. If the record is not found, create it.
2149421530 *
2149521531 * @param array $attributes
2149621532 * @param array $values
@@ -21503,6 +21539,20 @@ public static function firstOrCreate($attributes = [], $values = [])
2150321539 return $instance->firstOrCreate($attributes, $values);
2150421540 }
2150521541
21542+ /**
21543+ * Attempt to create the record. If a unique constraint violation occurs, attempt to find the matching record.
21544+ *
21545+ * @param array $attributes
21546+ * @param array $values
21547+ * @return \Illuminate\Database\Eloquent\Model|static
21548+ * @static
21549+ */
21550+ public static function createOrFirst($attributes = [], $values = [])
21551+ {
21552+ /** @var \Illuminate\Database\Eloquent\Builder $instance */
21553+ return $instance->createOrFirst($attributes, $values);
21554+ }
21555+
2150621556 /**
2150721557 * Create or update a record matching the attributes, and fill it with values.
2150821558 *
@@ -21861,6 +21911,20 @@ public static function withCasts($casts)
2186121911 return $instance->withCasts($casts);
2186221912 }
2186321913
21914+ /**
21915+ * Execute the given Closure within a transaction savepoint if needed.
21916+ *
21917+ * @template TModelValue
21918+ * @param \Closure(): TModelValue $scope
21919+ * @return \Illuminate\Database\Eloquent\TModelValue
21920+ * @static
21921+ */
21922+ public static function withSavepointIfNeeded($scope)
21923+ {
21924+ /** @var \Illuminate\Database\Eloquent\Builder $instance */
21925+ return $instance->withSavepointIfNeeded($scope);
21926+ }
21927+
2186421928 /**
2186521929 * Get the underlying query builder instance.
2186621930 *
0 commit comments