Laravel makes it easy to display custom error pages for various HTTP status codes. For example, if you wish to customize the error page for 404 HTTP status codes, create aresources/views/errors/404.blade.php. T
When defining fallback error pages, the fallback pages will not affect 404, 500, and 503 error responses since Laravel has internal, dedicated pages for these status codes. To customize the pages rendered for these status codes, you should define a custom error page for each of them ...
Custom filters Sometimes you don't want to use the built-in filters. You can apply your own filter by providing a set of options. This can be an array or multiple strings as arguments: FFMpeg::fromDisk('videos') ->open('steve_howe.mp4') ->addFilter(['-itsoffset', 1]); // or ...
Analytics::trackException(); Analytics::trackException('500 Server Error', true); Track Custom ThetrackCustommethod allows custom items to be tracked with a single parameter for the custom item. Analytics::trackCustom("ga('custom', 'parameter');"); ...
"url": "https://api.github.com/repos/symfony/error-handler/zipball/7e9828fc98aa1cf27b422fe478a84f5b0abb7358", "reference": "7e9828fc98aa1cf27b422fe478a84f5b0abb7358", "shasum": "", "mirrors": [ { "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%refe...
To apply a custom limit on a specific route, use thethrottle middlewaredirectly in routes/api.php: For example: Route::middleware('throttle:3,1')->get('/limited',function(){ returnresponse()->json(['message'=>'You can only call this 3 times per minute!']); ...
Horizon ( redis 队列配置仪表盘)、包自动发现、api 资源、控制台命令自动注册、队列任务链、队列任务速率控制、基于时间的任务尝试、自定义的验证规则、可信任的代理集成、按需通知、可渲染的邮件、自定义可报告可渲染的异常、请求对象中的认证方法、一致的异常处理、缓存锁、读写数据库配置 sticky 选项。
use Illuminate\Validation\ValidationException; class CustomValidationException extends ValidationException { use ApiResponse; public function render() { $errors = []; foreach ($this->errors() as $key => $error) { $errors[$key] = current($error); } return $this->setStatusCode($this->status...
binarcode/laravel-restifyThe first fully customizable Laravel JSON:API builder. "CRUD" and protect your resources with 0 (zero) extra line of code.621 ahmedesa/laravel-api-tool-kitSupercharge your API development with standardized responses, dynamic pagination, advanced filtering, and a one-click ...
Laravel queues provide a unified queueing API across a variety of different queue backends, such as Amazon SQS, Redis, or even a relational database.Laravel's queue configuration options are stored in your application's config/queue.php configuration file. In this file, you will find connection...