Laravel 5.0 Documentation
report different types of exceptions in different ways, you may use the PHP instanceof comparison operator: /** * Report or log an exception. * * This is a great spot to send exceptions to Sentry, Bugsnag you may use the has method: $posts = Post::has('comments')->get(); You may also specify an operator and a count: $posts = Post::has('comments', '>=', 3)->get(); Nested has statements may also see a redis array containing the Redis servers used by your application: 'redis' => [ 'cluster' => true, 'default' => ['host' => '127.0.0.1', 'port' => 6379], ], The default server configuration0 码力 | 242 页 | 1.44 MB | 1 年前3
Falcon v2.0.0 Documentationsend parts of an API off to a legacy system that hasn't been upgraded # yet, or perhaps is a single cluster that all data centers have to share. sink = SinkAdapter() app.add_sink(sink, r'/search/(?Pddg|y)\Z') weakness indicator. Note: Given that a weak entity-tag comparison can be performed by using the == operator (per the example below), only a strong_compare() method is provided. Here is an example on_get() $ falcon-print-routes commissaire:api -> /api/v0/status -> /api/v0/cluster/{name} -> /api/v0/cluster/{name}/hosts -> /api/v0/cluster/{name}/hosts/{address} • Custom attributes can now be attached to instances 0 码力 | 184 页 | 671.87 KB | 1 年前3
Falcon v2.0.0 Documentationsend parts of an API off to a legacy system that hasn't been upgraded # yet, or perhaps is a single cluster that all data centers have to share. sink = SinkAdapter() app.add_sink(sink, r'/search/(?Pddg|y)\Z') weakness indicator. Note Given that a weak entity-tag comparison can be performed by using the == operator (per the example below), only a strong_compare() method is provided. Here is an example on_get() $ falcon-print-routes commissaire:api -> /api/v0/status -> /api/v0/cluster/{name} -> /api/v0/cluster/{name}/hosts -> /api/v0/cluster/{name}/hosts/{address} Custom attributes can now be attached to instances 0 码力 | 265 页 | 299.57 KB | 1 年前3
Falcon v3.0.0-b1 Documentationparts of an API off to a legacy system that hasn't been upgraded # yet, or perhaps is a single cluster that all data centers have to share. sink = SinkAdapter() app.add_sink(sink, r'/search/(?Pddg|y)\Z') send parts of an API off to a legacy system that hasn't been upgraded # yet, or perhaps is a single cluster that all data centers have to share. sink = SinkAdapter() app.add_sink(sink, r'/search/(?P ddg|y)\Z') weakness indicator. Note Given that a weak entity-tag comparison can be performed by using the == operator (per the example below), only a strong_compare() method is provided. Here is an example on_get() 0 码力 | 1028 页 | 725.86 KB | 1 年前3
Falcon v3.0.0 Documentationparts of an API off to a legacy system that hasn't been upgraded # yet, or perhaps is a single cluster that all data centers have to share. sink = SinkAdapter() app.add_sink(sink, r'/search/(?Pddg|y)\Z') parts of an API off to a legacy system that hasn't been upgraded # yet, or perhaps is a single cluster that all data centers have to share. sink = SinkAdapter() app.add_sink(sink, r'/search/(?P ddg|y)\Z') weakness indicator. Note Given that a weak entity-tag comparison can be performed by using the == operator (per the example below), only a strong_compare() method is provided. Here is an example on_get() 0 码力 | 1055 页 | 739.30 KB | 1 年前3
Falcon v3.0.1 Documentationparts of an API off to a legacy system that hasn't been upgraded # yet, or perhaps is a single cluster that all data centers have to share. sink = SinkAdapter() app.add_sink(sink, r'/search/(?Pddg|y)\Z') parts of an API off to a legacy system that hasn't been upgraded # yet, or perhaps is a single cluster that all data centers have to share. sink = SinkAdapter() app.add_sink(sink, r'/search/(?P ddg|y)\Z') weakness indicator. Note Given that a weak entity-tag comparison can be performed by using the == operator (per the example below), only a strong_compare() method is provided. Here is an example on_get() 0 码力 | 1058 页 | 741.59 KB | 1 年前3
Falcon v3.0.0-b2 Documentationparts of an API off to a legacy system that hasn't been upgraded # yet, or perhaps is a single cluster that all data centers have to share. sink = SinkAdapter() app.add_sink(sink, r'/search/(?Pddg|y)\Z') parts of an API off to a legacy system that hasn't been upgraded # yet, or perhaps is a single cluster that all data centers have to share. sink = SinkAdapter() app.add_sink(sink, r'/search/(?P ddg|y)\Z') weakness indicator. Note Given that a weak entity-tag comparison can be performed by using the == operator (per the example below), only a strong_compare() method is provided. Here is an example on_get() 0 码力 | 1041 页 | 730.21 KB | 1 年前3
Falcon v1.0.0 Documentationsend parts of an API off to a legacy system that hasn't been upgraded # yet, or perhaps is a single cluster that all data centers have to share. sink = SinkAdapter() app.add_sink(sink, r'/search/(?Pddg|y)\Z') $ falcon-print-routes commissaire:api -> /api/v0/status -> /api/v0/cluster/{name} -> /api/v0/cluster/{name}/hosts -> /api/v0/cluster/{name}/hosts/{address} Custom attributes can now be attached to instances fall back to another header or to REMOTE_ADDR, but # that only masks the problem; the operator needs to be # aware that an upstream proxy is malfunctioning. if 'HTTP_FORWARDED' 0 码力 | 312 页 | 368.58 KB | 1 年前3
Falcon v3.0.0-b2 Documentationsend parts of an API off to a legacy system that hasn't been upgraded # yet, or perhaps is a single cluster that all data centers have to share. sink = SinkAdapter() app.add_sink(sink, r'/search/(?Pddg|y)\Z') Falcon Documentation, Release 3.0.0b2 (continued from previous page) # yet, or perhaps is a single cluster that all data centers have to share. sink = SinkAdapter() app.add_sink(sink, r'/search/(?P ddg|y)\Z') weakness indicator. Note: Given that a weak entity-tag comparison can be performed by using the == operator (per the example below), only a strong_compare() method is provided. Here is an example on_get() 0 码力 | 340 页 | 1.15 MB | 1 年前3
Falcon v3.0.0 Documentationsend parts of an API off to a legacy system that hasn't been upgraded # yet, or perhaps is a single cluster that all data centers have to share. sink = SinkAdapter() app.add_sink(sink, r'/search/(?Pddg|y)\Z') Falcon Documentation, Release 3.0.0 (continued from previous page) # yet, or perhaps is a single cluster that all data centers have to share. sink = SinkAdapter() app.add_sink(sink, r'/search/(?P ddg|y)\Z') weakness indicator. Note: Given that a weak entity-tag comparison can be performed by using the == operator (per the example below), only a strong_compare() method is provided. Here is an example on_get() 0 码力 | 344 页 | 1.16 MB | 1 年前3
共 57 条
- 1
- 2
- 3
- 4
- 5
- 6













