Laravel 3.2 Documentation.................................................................................... 49 Other Request Helpers ........................................................................................ ........................................................................................... 121 Pull Requests ........................................................................................ .......................................................................... 125 Submitting a Pull Request .......................................................................................... 1250 码力 | 139 页 | 1.13 MB | 1 年前3
Laravel 5.1 中文文档* @param \Illuminate\Http\Request $request * @param \Closure $next * @param string $role * @return mixed */ public function handle($request, Closure $next, $role) { if (! $request->user()->hasRole($role)) { // 跳转... } return $next($request); } } 中间件参数可以再定义路由时通过:分隔中间件名称和参数名称来指定,多个参数可以通过 逗号进行分隔: 本文档由 Laravel 使用 array_pluck 贡献代码 缺陷报告 为了鼓励促进更加有效积极的合作,Laravel 强烈鼓励使用 GitHub 的 pull requests,而不是 仅仅报告缺陷,“缺陷报告”也可以通过一个包含失败测试的 pull request 的方式提交。 然而,如果你以文件的方式提交缺陷报告,你的问题应该包含一个标题和对该问题的明确说 明,还要包含尽可能多的相关信息以及论证该问题的代码样板,缺陷报告的目的是为了让你0 码力 | 307 页 | 3.46 MB | 1 年前3
Falcon v0.3.0.1 Documentationresource, and method hooks • Idiomatic HTTP error responses • Full Unicode support • Intuitive request and response objects • Works great with async libraries like gevent • Minimal attack surface for like to invite you to help other community members with their questions in IRC, and to peer-review pull requests. If you use the Chrome browser, we recommend installing the NotHub extension to stay up to and to peer-review pull requests. If you use the Chrome browser, we recommend installing the NotHub extension to stay up to date with PRs. Pull Requests Before submitting a pull request, please ensure you0 码力 | 77 页 | 311.34 KB | 1 年前3
Falcon v0.2.0 Documentationresource, and method hooks • Idiomatic HTTP error responses • Full Unicode support • Intuitive request and response objects • Works great with async libraries like gevent • Minimal attack surface for like to invite you to help other community members with their questions in IRC, and to peer-review pull requests. If you use the Chrome browser, we recommend installing the NotHub extension to stay up to and to peer-review pull requests. If you use the Chrome browser, we recommend installing the NotHub extension to stay up to date with PRs. Pull Requests Before submitting a pull request, please ensure you0 码力 | 70 页 | 296.15 KB | 1 年前3
Laravel 5.0 Documentation
Controllers vii. Route Caching iv. Requests i. Obtaining A Request Instance ii. Retrieving Input iii. Old Input iv. Cookies v. Files vi. Other Request Information v. Responses i. Basic Responses ii. Redirects iii. Practical Usage iv. Creating Facades v. Mocking Facades vi. Facade Class Reference v. Request Lifecycle i. Introduction ii. Lifecycle Overview iii. Focus On Service Providers vi. Application Refreshing The Application xxii. Validation i. Basic Usage ii. Controller Validation iii. Form Request Validation iv. Working With Error Messages v. Error Messages & Views vi. Available Validation0 码力 | 242 页 | 1.44 MB | 1 年前3
Laravel 5.2 中文文档Laravel 5.2 可轻松实现表单字段的数组输入验证。例如,要验证给定数组输入字段中 的每一个 email 是唯一的,可以这么实现: $validator = Validator::make($request->all(), [ 'person.*.email' => 'email|unique:users' ]); 同样,你可以在语言文件中使用 * 来指定验证数组字段: 'custom' Illuminate\Support\HtmlString 即 可。 贡献代码 1、缺陷报告 为了鼓励促进更加有效积极的合作,Laravel 强烈鼓励使用 GitHub 的 pull requests,而 不是仅仅报告缺陷,“缺陷报告”也可以通过一个包含失败测试的 pull requests 的方式提 交。 然而,如果你以文件的方式提交缺陷报告,你的问题应该包含一个标题和对该问题的明确 说明,还要包含尽可能多的相关信息 \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { if ($request->input('age') <= 200)0 码力 | 377 页 | 4.56 MB | 1 年前3
Falcon v1.0.0 Documentationresource, and method hooks • Idiomatic HTTP error responses • Full Unicode support • Intuitive request and response objects • Works great with async libraries like gevent • Minimal attack surface for like to invite you to help other community members with their questions in IRC, and to peer-review pull requests. If you use the Chrome browser, we recommend installing the NotHub extension to stay up to like to invite you to help other community members with their questions in IRC, and to peer-review pull requests. If you use the Chrome browser, we recommend installing the NotHub extension to stay up to0 码力 | 87 页 | 348.15 KB | 1 年前3
Falcon v0.3.0.1 DocumentationGlobal, resource, and method hooks Idiomatic HTTP error responses Full Unicode support Intuitive request and response objects Works great with async libraries like gevent Minimal attack surface for writing like to invite you to help other community members with their questions in IRC, and to peer-review pull requests [https://github.com/racker/falcon/pulls]. If you use the Chrome browser, we recommend installing peer-review pull requests [https://github.com/racker/falcon/pulls]. If you use the Chrome browser, we recommend installing the NotHub extension [http://nothub.org/] to stay up to date with PRs. Pull Requests0 码力 | 126 页 | 345.09 KB | 1 年前3
Falcon v0.2.0 DocumentationGlobal, resource, and method hooks Idiomatic HTTP error responses Full Unicode support Intuitive request and response objects Works great with async libraries like gevent Minimal attack surface for writing like to invite you to help other community members with their questions in IRC, and to peer-review pull requests [https://github.com/racker/falcon/pulls]. If you use the Chrome browser, we recommend installing peer-review pull requests [https://github.com/racker/falcon/pulls]. If you use the Chrome browser, we recommend installing the NotHub extension [http://nothub.org/] to stay up to date with PRs. Pull Requests0 码力 | 188 页 | 358.44 KB | 1 年前3
Laravel 5.3 中文文档the avatar for the user. * * @param Request $request * @return Response */ public function update(Request $request) { $path = $request->file('avatar')->store('avatars', 's3'); tion ($request, $next) { $this->projects = Auth::user()->projects; return $next($request); }); } } 当然,你可以在控制器的其他方法中依靠 Illuminate\Http\Request 类获取到 session * 获取当前用户的所有 Projects. * * @param \Illuminate\Http\Request $request * @return Response */ public function index(Request $request) 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质0 码力 | 691 页 | 9.37 MB | 1 年前3
共 79 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8













