REDROOM
PHP 8.3.31
Path:
Logout
Edit File
Size: 1.00 KB
Close
/home/getspomw/royalsquad.us/vendor/laravel/framework/src/Illuminate/Http/Concerns/CanBePrecognitive.php
Text
Base64
<?php namespace Illuminate\Http\Concerns; use Illuminate\Support\Collection; trait CanBePrecognitive { /** * Filter the given array of rules into an array of rules that are included in precognitive headers. * * @param array $rules * @return array */ public function filterPrecognitiveRules($rules) { if (! $this->headers->has('Precognition-Validate-Only')) { return $rules; } return (new Collection($rules)) ->only(explode(',', $this->header('Precognition-Validate-Only'))) ->all(); } /** * Determine if the request is attempting to be precognitive. * * @return bool */ public function isAttemptingPrecognition() { return $this->header('Precognition') === 'true'; } /** * Determine if the request is precognitive. * * @return bool */ public function isPrecognitive() { return $this->attributes->get('precognitive', false); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 4
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
CanBePrecognitive.php
1.00 KB
lrw-rw-rw-
2025-09-17 06:53:03
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
InteractsWithContentTypes.php
4.25 KB
lrw-rw-rw-
2025-09-17 06:53:02
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
InteractsWithFlashData.php
1.51 KB
lrw-rw-rw-
2025-09-17 06:53:02
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
InteractsWithInput.php
7.02 KB
lrw-rw-rw-
2025-09-17 06:53:02
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).