 Guzzle PHP 5.3 Documentationand trivial to integrate with web services. Manages things like persistent connections, represents query strings as collections, simplifies sending streaming POST requests with fields and files, and abstracts License Contributing Reporting a security vulnerability Quickstart Make a Request Using Responses Query String Parameters Uploading Data Cookies Redirects Exceptions Clients Creating a client Sending then a GuzzleHttp\Exception\ParseException is thrown. Query String Parameters Sending query string parameters with a request is easy. You can set query string parameters in the request’s URL. $response0 码力 | 72 页 | 312.62 KB | 11 月前3 Guzzle PHP 5.3 Documentationand trivial to integrate with web services. Manages things like persistent connections, represents query strings as collections, simplifies sending streaming POST requests with fields and files, and abstracts License Contributing Reporting a security vulnerability Quickstart Make a Request Using Responses Query String Parameters Uploading Data Cookies Redirects Exceptions Clients Creating a client Sending then a GuzzleHttp\Exception\ParseException is thrown. Query String Parameters Sending query string parameters with a request is easy. You can set query string parameters in the request’s URL. $response0 码力 | 72 页 | 312.62 KB | 11 月前3
 Guzzle PHP 5.3 Documentationtrivial to integrate with web services. • Manages things like persistent connections, represents query strings as collections, simplifies sending streaming POST requests with fields and files, and abstracts GuzzleHttp\Exception\ParseException is thrown. 1.2.3 Query String Parameters Sending query string parameters with a request is easy. You can set query string parameters in the request’s URL. $response also specify the query string parameters using the query request option. $client->get('http://httpbin.org', [ 'query' => ['foo' => 'bar'] ]); And finally, you can build up the query string of a request0 码力 | 63 页 | 275.75 KB | 11 月前3 Guzzle PHP 5.3 Documentationtrivial to integrate with web services. • Manages things like persistent connections, represents query strings as collections, simplifies sending streaming POST requests with fields and files, and abstracts GuzzleHttp\Exception\ParseException is thrown. 1.2.3 Query String Parameters Sending query string parameters with a request is easy. You can set query string parameters in the request’s URL. $response also specify the query string parameters using the query request option. $client->get('http://httpbin.org', [ 'query' => ['foo' => 'bar'] ]); And finally, you can build up the query string of a request0 码力 | 63 页 | 275.75 KB | 11 月前3
 Laravel 5.1 中文文档Eloquent 查询构建器的 find 方法: public static function find($id, $columns = ['*']){ $model = static::query()->find($id, $columns); // ... return $model; } lists 方法 lists 方法现在返回一个 Collection Collection 实例而不是包含 Eloquent 查询结果的数组,如果你想 将 Collection 转化为数组,使用 all 方法: User::lists('id')->all(); 注意:Query Builder 的 lists 返回的仍然是数组。 日期格式化 以前,模型中的 Eloquent 日期字段存储格式可以通过重写 getDateFormat 方法来修改,现 在依然可以这么做; ntainer\BindingResolutionException.  服务容器的 bindShared 方法被废弃,使用 singleton 方法。  Eloquent 和 query builder 的 pluck 方法被废弃并重命名为 value.  Collection 的 fetch 方法被废弃,使用 pluck 方法.  array_fetch 帮助函数被废弃,0 码力 | 307 页 | 3.46 MB | 1 年前3 Laravel 5.1 中文文档Eloquent 查询构建器的 find 方法: public static function find($id, $columns = ['*']){ $model = static::query()->find($id, $columns); // ... return $model; } lists 方法 lists 方法现在返回一个 Collection Collection 实例而不是包含 Eloquent 查询结果的数组,如果你想 将 Collection 转化为数组,使用 all 方法: User::lists('id')->all(); 注意:Query Builder 的 lists 返回的仍然是数组。 日期格式化 以前,模型中的 Eloquent 日期字段存储格式可以通过重写 getDateFormat 方法来修改,现 在依然可以这么做; ntainer\BindingResolutionException.  服务容器的 bindShared 方法被废弃,使用 singleton 方法。  Eloquent 和 query builder 的 pluck 方法被废弃并重命名为 value.  Collection 的 fetch 方法被废弃,使用 pluck 方法.  array_fetch 帮助函数被废弃,0 码力 | 307 页 | 3.46 MB | 1 年前3
 Laravel 5.2 中文文档d connection.{name}.rollingBack Illuminate\Database\Events\TransactionRolledBack illuminate.query Illuminate\Database\Events\QueryExecuted illuminate.queue.after Illuminate\Queue\Events\JobProcessed ; 如果你已经有了一个查询构建器实例并且希望添加一个查询列到已存在的 select 子句,可 以使用 addSelect 方法: $query = DB::table('users')->select('name'); $users = $query->addSelect('age')->get(); 原生表达式 有时候你希望在查询中使用原生表达式,这些表达式将会以字符串的形式注入到查询中, DB::table('users') ->where('name', '=', 'John') ->orWhere(function ($query) { $query->where('votes', '>', 100) ->where('title', '<>', 'Admin');0 码力 | 377 页 | 4.56 MB | 1 年前3 Laravel 5.2 中文文档d connection.{name}.rollingBack Illuminate\Database\Events\TransactionRolledBack illuminate.query Illuminate\Database\Events\QueryExecuted illuminate.queue.after Illuminate\Queue\Events\JobProcessed ; 如果你已经有了一个查询构建器实例并且希望添加一个查询列到已存在的 select 子句,可 以使用 addSelect 方法: $query = DB::table('users')->select('name'); $users = $query->addSelect('age')->get(); 原生表达式 有时候你希望在查询中使用原生表达式,这些表达式将会以字符串的形式注入到查询中, DB::table('users') ->where('name', '=', 'John') ->orWhere(function ($query) { $query->where('votes', '>', 100) ->where('title', '<>', 'Admin');0 码力 | 377 页 | 4.56 MB | 1 年前3
 Laravel 5.3 中文文档条件需要显式使用查询构建器提供的 where 方法: $query->join('table', function($join) { $join->on('foo', 'bar')->where('bar', 'baz'); }); $bindings 属性也被移除,要直接操作 join 绑定可以使用 addBinding 方法: $query->join(DB::raw('('.$subquery->toSql() 先,消费者应用要生成一个重定向请求到应用的 /oauth/authorize 路由: Route::get('/redirect', function () { $query = http_build_query([ 'client_id' => 'client-id', 'redirect_uri' => 'http://example.com/callback' 'scope' => '', ]); return redirect('http://your-app.com/oauth/authorize?'.$query); 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 275 }); 注:记住,0 码力 | 691 页 | 9.37 MB | 1 年前3 Laravel 5.3 中文文档条件需要显式使用查询构建器提供的 where 方法: $query->join('table', function($join) { $join->on('foo', 'bar')->where('bar', 'baz'); }); $bindings 属性也被移除,要直接操作 join 绑定可以使用 addBinding 方法: $query->join(DB::raw('('.$subquery->toSql() 先,消费者应用要生成一个重定向请求到应用的 /oauth/authorize 路由: Route::get('/redirect', function () { $query = http_build_query([ 'client_id' => 'client-id', 'redirect_uri' => 'http://example.com/callback' 'scope' => '', ]); return redirect('http://your-app.com/oauth/authorize?'.$query); 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 275 }); 注:记住,0 码力 | 691 页 | 9.37 MB | 1 年前3
 Laravel 5.6 中文文档Nginx 如果你使用的是 Nginx,使用如下站点配置指令就可以支持 URL 美化: location / { try_files $uri $uri/ /index.php?$query_string; } 当然,使用 Homestead 或 Valet 的话,以上配置已经为你配置好,无需额外操作。 环境配置 基于应用运行的环境不同设置不同的配置值能够给我们开发带来 my.org 27 charset utf-8; location / { try_files $uri $uri/ /index.php?$query_string; } location = /favicon.ico { access_log off; log_not_found off; } location $request->url(); // 包含查询字符串 $url_with_query = $request->fullUrl(); 例如,我们请求 http://domain.com/user/1?token=laravelacademy.org,则上述 $url 的值是 http://domain.com/user/1, $url_with_query 的值是 http://blog.test/user/10 码力 | 377 页 | 14.56 MB | 1 年前3 Laravel 5.6 中文文档Nginx 如果你使用的是 Nginx,使用如下站点配置指令就可以支持 URL 美化: location / { try_files $uri $uri/ /index.php?$query_string; } 当然,使用 Homestead 或 Valet 的话,以上配置已经为你配置好,无需额外操作。 环境配置 基于应用运行的环境不同设置不同的配置值能够给我们开发带来 my.org 27 charset utf-8; location / { try_files $uri $uri/ /index.php?$query_string; } location = /favicon.ico { access_log off; log_not_found off; } location $request->url(); // 包含查询字符串 $url_with_query = $request->fullUrl(); 例如,我们请求 http://domain.com/user/1?token=laravelacademy.org,则上述 $url 的值是 http://domain.com/user/1, $url_with_query 的值是 http://blog.test/user/10 码力 | 377 页 | 14.56 MB | 1 年前3
 Falcon v3.0.0-b2 Documentations A More Complex Example Here is a more involved example that demonstrates reading headers and query parameters, handling errors, and work- ing with request and response bodies. WSGI ASGI Note that interact with them directly. The Falcon framework contains extensive inline documentation that you can query using the above technique. Tip: In addition to IPython, the Python community maintains several other from a set of standard methods. For HTTP, these are the familiar GET, POST, HEAD, etc. Clients can query a resource to discover which methods it supports. Note: This is one of the key differences between0 码力 | 340 页 | 1.15 MB | 1 年前3 Falcon v3.0.0-b2 Documentations A More Complex Example Here is a more involved example that demonstrates reading headers and query parameters, handling errors, and work- ing with request and response bodies. WSGI ASGI Note that interact with them directly. The Falcon framework contains extensive inline documentation that you can query using the above technique. Tip: In addition to IPython, the Python community maintains several other from a set of standard methods. For HTTP, these are the familiar GET, POST, HEAD, etc. Clients can query a resource to discover which methods it supports. Note: This is one of the key differences between0 码力 | 340 页 | 1.15 MB | 1 年前3
 Falcon v3.0.0 Documentations A More Complex Example Here is a more involved example that demonstrates reading headers and query parameters, handling errors, and work- ing with request and response bodies. WSGI ASGI Note that interact with them directly. The Falcon framework contains extensive inline documentation that you can query using the above technique. Tip: In addition to IPython, the Python community maintains several other from a set of standard methods. For HTTP, these are the familiar GET, POST, HEAD, etc. Clients can query a resource to discover which methods it supports. Note: This is one of the key differences between0 码力 | 344 页 | 1.16 MB | 1 年前3 Falcon v3.0.0 Documentations A More Complex Example Here is a more involved example that demonstrates reading headers and query parameters, handling errors, and work- ing with request and response bodies. WSGI ASGI Note that interact with them directly. The Falcon framework contains extensive inline documentation that you can query using the above technique. Tip: In addition to IPython, the Python community maintains several other from a set of standard methods. For HTTP, these are the familiar GET, POST, HEAD, etc. Clients can query a resource to discover which methods it supports. Note: This is one of the key differences between0 码力 | 344 页 | 1.16 MB | 1 年前3
 Falcon v3.0.1 Documentations A More Complex Example Here is a more involved example that demonstrates reading headers and query parameters, handling errors, and work- ing with request and response bodies. WSGI ASGI Note that interact with them directly. The Falcon framework contains extensive inline documentation that you can query using the above technique. Tip: In addition to IPython, the Python community maintains several other from a set of standard methods. For HTTP, these are the familiar GET, POST, HEAD, etc. Clients can query a resource to discover which methods it supports. Note: This is one of the key differences between0 码力 | 344 页 | 1.16 MB | 1 年前3 Falcon v3.0.1 Documentations A More Complex Example Here is a more involved example that demonstrates reading headers and query parameters, handling errors, and work- ing with request and response bodies. WSGI ASGI Note that interact with them directly. The Falcon framework contains extensive inline documentation that you can query using the above technique. Tip: In addition to IPython, the Python community maintains several other from a set of standard methods. For HTTP, these are the familiar GET, POST, HEAD, etc. Clients can query a resource to discover which methods it supports. Note: This is one of the key differences between0 码力 | 344 页 | 1.16 MB | 1 年前3
 Falcon v3.0.0-b1 Documentations A More Complex Example Here is a more involved example that demonstrates reading headers and query parameters, handling errors, and work- ing with request and response bodies. WSGI ASGI Note that interact with them directly. The Falcon framework contains extensive inline documentation that you can query using the above technique. Tip: In addition to IPython, the Python community maintains several other from a set of standard methods. For HTTP, these are the familiar GET, POST, HEAD, etc. Clients can query a resource to discover which methods it supports. Note: This is one of the key differences between0 码力 | 338 页 | 1.14 MB | 1 年前3 Falcon v3.0.0-b1 Documentations A More Complex Example Here is a more involved example that demonstrates reading headers and query parameters, handling errors, and work- ing with request and response bodies. WSGI ASGI Note that interact with them directly. The Falcon framework contains extensive inline documentation that you can query using the above technique. Tip: In addition to IPython, the Python community maintains several other from a set of standard methods. For HTTP, these are the familiar GET, POST, HEAD, etc. Clients can query a resource to discover which methods it supports. Note: This is one of the key differences between0 码力 | 338 页 | 1.14 MB | 1 年前3
共 78 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8














