🤩 File Manager - Mr.X
PHP:
8.3.33
Server:
Apache
OS:
Linux 5.14.0-611.49.1.el9_7.x86_64
User:
websparkit
Navigate
Upload:
Upload
New File
New Folder
Editing:Skip.php
<?php namespace Illuminate\Queue\Middleware; use Closure; class Skip { /** * @param bool $param Whether the job should be skipped. */ public function __construct(protected bool $skip = false) { } /** * Apply the middleware if the given condition is truthy. * * @param bool|(\Closure(): bool) $condition */ public static function when(Closure|bool $condition): static { return new static(value($condition)); } /** * Apply the middleware unless the given condition is truthy. * * @param bool|(\Closure(): bool) $condition */ public static function unless(Closure|bool $condition): static { return new static(! value($condition)); } /** * Handle the job. */ public function handle(mixed $job, callable $next): mixed { if ($this->skip) { return false; } return $next($job); } }
Save Changes
Cancel
Create New File
Create New Folder