Laravel 5.0 Documentation
Old Input iv. Cookies v. Files vi. Other Request Information v. Responses i. Basic Responses ii. Redirects iii. Other Responses iv. Response Macros vi. Views i. Basic Usage ii. View Composers Request Validation iv. Working With Error Messages v. Error Messages & Views vi. Available Validation Rules vii. Conditionally Adding Rules viii. Custom Error Messages ix. Custom Validation Rules x. These service providers provide various bootstrapping functions to your application, such as error handling, logging, route loading, and more. Of course, you are free to create additional service0 码力 | 242 页 | 1.44 MB | 1 年前3
Laravel 3.2 Documentation................................................................................. 30 Views & Responses ............................................................................................... ........................................................................................... 47 Error Detail .......................................................................................... ................................................................................ 60 Retrieving Error Messages ........................................................................................0 码力 | 139 页 | 1.13 MB | 1 年前3
Learning LaravelLocation 88 Model configuration 89 Update an existing model 90 Chapter 25: Error Handling 91 Remarks 91 Examples 91 Send Error report email 91 Catching application wide ModelNotFoundException 92 Chapter connection 177 Testing setup, using in memory database 177 Configuration 178 Chapter 61: Token Mismatch Error in AJAX 179 Introduction 179 Examples 179 Setup Token on Header 179 Set token on tag 179 Check Request Class for POST, PUT, PATCH 191 Error messages 192 Customizing error messages 192 Customising error messages within a Request class 193 Displaying error messages 193 Custom Validation Rules 1940 码力 | 216 页 | 1.58 MB | 1 年前3
Laravel 6.0 中文文档中文学习资源:https://xueyuanjun.com 113 location = /robots.txt { access_log off; log_not_ found off; } error_page 404 /index.php; location ~ \.php$ { fastcgi_pass unix:/var/run/php/php7.2-fpm.soc k; fastcgi_index as $error)@endif 如果验证失败的话,跳转回表单页面的同时会显示错误信息: @error 指令 指令 你还可以使用 Blade 提供的 @error 指令快速检查给定属性是否存 在验证错误信息,在 @error 指令中,你可以输出 $message 变量来 显示错误信息:- {{ $error }}
@endforeach 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 3220 码力 | 1442 页 | 14.66 MB | 1 年前3
Laravel 5.2 中文文档your name?', ['Taylor', 'Dayle '], false); 3.4 编写输出 要将输出发送到控制台,使用 line,info, comment, question 和 error 方法,每个方法都会 使用相应的 ANSI 颜色以作标识。 要显示一条信息消息给用户,使用 info 方法。通常,在终端显示为绿色: /** * 执行控制台命令 * * @return function handle(){ $this->info('Display this on the screen'); } 要显示一条错误消息,使用 error 方法。错误消息文本通常是红色: $this->error('Something went wrong!'); 如果你想要显示原生输出,可以使用 line 方法,该方法输出的字符不带颜色: $this->line('Display alert, critical, error,warning, notice, info 和 debug。 Log::emergency($error); Log::alert($error); Log::critical($error); Log::error($error); Log::warning($error); Log::notice($error); Log::info($error);0 码力 | 377 页 | 4.56 MB | 1 年前3
Laravel 5.3 中文文档如,默 认 log_level 是 error ,则将会记录 error、critical、alert 以及 emergency 级别的日志信息: 'log_level' => env('APP_LOG_LEVEL', 'error'), 注:Monolog 支持以下错误级别 ——debug、info、notice、warning、error、critical、alert、 emergency。 、critical、error、 warning、notice、info 和 debug。 Log::emergency($error); Log::alert($error); Log::critical($error); Log::error($error); Log::warning($error); Log::notice($error); Log::info($error); Log::info($error); 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 52 Log::debug($error); 上下文信息 上下文数据也会以数组形式传递给日志方法,然后和日志消息一起被格式化和显示: Log::info('User failed to login0 码力 | 691 页 | 9.37 MB | 1 年前3
Laravel 5.6 中文文档带来了日志系统的重大升级,所有日志配置都存放在新的 config/logging.php 配置文件,你现在可以轻松构建发送日志消息到多个处 理器的日志”堆栈”。例如,你可以发送所有 debug 级别消息到系统日志同时发送 error 级别消息到 Slack 以便团队成员可以快速响应: 'channels' => [ 'stack' => [ 'driver' => 'stack', off; log_not_found off; } location = /robots.txt { access_log off; log_not_found off; } error_page 404 /index.php; location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; class="alert alert-danger">@endif 3- @foreach ($errors->all() as $error)
- {{ $error }} @endforeach
Laravel 5.1 中文文档
is your name?', ['Taylor', 'Dayle '], false); 3.4 编写输出 要将输出发送到控制台,使用 info, comment, question 和 error 方法,每个方法都会使用 相应的 ANSI 颜色以作标识。 要显示一条信息消息给用户,使用 info 方法。通常,在终端显示为绿色: /** * 执行控制台命令 * * @return function handle(){ $this->info('Display this on the screen'); } 要显示一条错误消息,使用 error 方法。错误消息文本通常是红色: $this->error('Something went wrong!'); 3.4.1 表格布局 table 方法使输出多行/列格式的数据变得简单,只需要将头和行传递给该方法,宽度和高度 alert, critical, error,warning, notice, info 和 debug。 Log::emergency($error); Log::alert($error); Log::critical($error); Log::error($error); Log::warning($error); Log::notice($error); Log::info($error);
0 码力 |
307 页 |
3.46 MB
| 1 年前
3
The Laravel Handbook
a specific entry in routes/web.php renders a “404 not found” page: 17 You can customize this error page. Here’s how: create an errors folder in resources/views , and in there create a 404.blade redirected to /dogs , after the new dog was saved to the database. 33 In the browser there’s an error now but don’t worry - it’s because we haven’t added a dogs view yet. 34 In this view we’ll visualize Install Repository. After a while it’s done! But if you go to the IP address again, there’s an error: 95 Mmmm! We don’t see more details because now the site is in a production environment, and we
0 码力 |
111 页 |
14.25 MB
| 1 年前
3
《Slides Dev Web》 06. HTTP & AJAX
response.json() }) .then(function(json) { console.log(json); }) .catch(function(error) { console.error("erreur", error) }) • L’API fetch est native et utilise les promesses24 plutôt que les callbacks
0 码力 |
11 页 |
91.09 KB
| 1 年前
3
共 12 条
- 1
- 2













