 Laravel 5.1 中文文档artisan down 关闭维护模式,对应的 Artisan 命令是 up: php artisan up 3.1 维护模式响应模板 默认的维护模式响应模板位于 resources/views/errors/503.blade.php 3.2 维护模式 & 队列 当你的站点处于维护模式中时,所有的队列任务都不会执行;当应用退出维护模式这些任务 才会被继续正常处理。 Laravel resources/views 目录。 下面是一个简单视图: Laravel 5.1 中文文档artisan down 关闭维护模式,对应的 Artisan 命令是 up: php artisan up 3.1 维护模式响应模板 默认的维护模式响应模板位于 resources/views/errors/503.blade.php 3.2 维护模式 & 队列 当你的站点处于维护模式中时,所有的队列任务都不会执行;当应用退出维护模式这些任务 才会被继续正常处理。 Laravel resources/views 目录。 下面是一个简单视图:- Hello,这个视图存放在 resources/views/greeting 方法的第一个参数是 resources/views 目录下相应的视图文件的名字,第二个 参数是一个数组,该数组包含了在该视图中所有有效的数据。在这个例子中,我们传递了一 个 name 变量,在视图中通过执行 echo 将其显示出来。 当然,视图还可以嵌套在 resources/views 的子目录中,用“.”号来引用嵌套视图,比如,如 果视图存放路径是 resources/views/admin/profile0 码力 | 307 页 | 3.46 MB | 1 年前3
 Laravel 5.2 中文文档Eloquent 集合基类 调用 Eloquent 集合实例的 pluck, keys, zip, collapse, flatten, flip 方法现在会返回集 合基类。 保留键名 slice、chunk 和 reverse 方法现在会保留集合的键名,如果你不想这些方法保留键名,使 用集合实例的 values 方法即可。 Composer 类 Illuminate\Foundation\Support\Composer php artisan down 要关闭维护模式,对应的 Artisan 命令是 up: php artisan up 维护模式响应模板 默认的维护模式响应模板是 resources/views/errors/503.blade.php 维护模式 & 队列 当你的站点处于维护模式中时,所有的队列任务都不会执行;当应用退出维护模式这些任 务才会被继续正常处理。 本文档由 Laravel resources/views 目录。 下面是一个简单视图: Laravel 5.2 中文文档Eloquent 集合基类 调用 Eloquent 集合实例的 pluck, keys, zip, collapse, flatten, flip 方法现在会返回集 合基类。 保留键名 slice、chunk 和 reverse 方法现在会保留集合的键名,如果你不想这些方法保留键名,使 用集合实例的 values 方法即可。 Composer 类 Illuminate\Foundation\Support\Composer php artisan down 要关闭维护模式,对应的 Artisan 命令是 up: php artisan up 维护模式响应模板 默认的维护模式响应模板是 resources/views/errors/503.blade.php 维护模式 & 队列 当你的站点处于维护模式中时,所有的队列任务都不会执行;当应用退出维护模式这些任 务才会被继续正常处理。 本文档由 Laravel resources/views 目录。 下面是一个简单视图:- Hello,由于这个视图存放在 resources/views/greeting0 码力 | 377 页 | 4.56 MB | 1 年前3
 Laravel 5.6 中文文档'datetime:Y-m-d H:00', ]; Blade 组件别名 如果你的 Blade 组件存放在子目录中,现在起可以为它们起个别名以便使用。例如,假设一个 Blade 组件存放 在 resources/views/components/alert.blade.php,你可以使用 component 方法将这个组件名从 components.alert 改为别名 alert: Blade::component('components 要关闭维护模式,开启站点,对应的 Artisan 命令是 up: php artisan up 注:你可以通过定义自己的模板来定制默认的维护模式模板,自定义模板视图位于 resources/views/errors/503.blade.php。 维护模式 & 队列 当你的站点处于维护模式中时,所有的队列任务都不会执行;当应用退出维护模式这些任务才会被继续正常处理。 维护模式的替代方案 routes/web.php 定义一个路由视图如下: 为了保证可以共用 welcome.blade.php 这个视图文件,我们也对默认提供的 / 路由做了调整,接下来,我们需要修 改 resources/views/welcome.blade.php 代码以支持 website 数据变量: 我们将原来写死的 Laravel 文本调整为支持变量传入的方式,这样,我们就可以在浏览器中通过 http://blog0 码力 | 377 页 | 14.56 MB | 1 年前3 Laravel 5.6 中文文档'datetime:Y-m-d H:00', ]; Blade 组件别名 如果你的 Blade 组件存放在子目录中,现在起可以为它们起个别名以便使用。例如,假设一个 Blade 组件存放 在 resources/views/components/alert.blade.php,你可以使用 component 方法将这个组件名从 components.alert 改为别名 alert: Blade::component('components 要关闭维护模式,开启站点,对应的 Artisan 命令是 up: php artisan up 注:你可以通过定义自己的模板来定制默认的维护模式模板,自定义模板视图位于 resources/views/errors/503.blade.php。 维护模式 & 队列 当你的站点处于维护模式中时,所有的队列任务都不会执行;当应用退出维护模式这些任务才会被继续正常处理。 维护模式的替代方案 routes/web.php 定义一个路由视图如下: 为了保证可以共用 welcome.blade.php 这个视图文件,我们也对默认提供的 / 路由做了调整,接下来,我们需要修 改 resources/views/welcome.blade.php 代码以支持 website 数据变量: 我们将原来写死的 Laravel 文本调整为支持变量传入的方式,这样,我们就可以在浏览器中通过 http://blog0 码力 | 377 页 | 14.56 MB | 1 年前3
 Laravel 5.3 中文文档方式就是 通过 vendor:publish 命令将它们导出到 resources/views/vendor 目录: php artisan vendor:publish --tag=laravel-pagination 这 个 命 令 会 将 视 图 放 置 到 resources/views/vendor/pagination 目 录 , 该 目 录 下 的 default.blade 中文学习资源 40 要关闭维护模式,对应的 Artisan 命令是 up: php artisan up 维护模式响应模板 默认的维护模式响应视图模板是 resources/views/errors/503.blade.php 维护模式 & 队列 当你的站点处于维护模式中时,所有的队列任务都不会执行;当应用退出维护模式这些任务才会 被继续正常处理。 维护模式的替代方案 该方法可在请求生命周期的任何时间点使用。 自定义 HTTP 错误页面 在 Laravel 中,返回不同 HTTP 状态码的错误页面很简单,例如,如果你想要自定义 404 错误页 面,创建一个 resources/views/errors/404.blade.php 文件,该视图文件用于渲染程序返回的所 有 404 错误。需要注意的是,该目录下的视图命名应该和相应的 HTTP 状态码相匹配。 5、日志 Laravel0 码力 | 691 页 | 9.37 MB | 1 年前3 Laravel 5.3 中文文档方式就是 通过 vendor:publish 命令将它们导出到 resources/views/vendor 目录: php artisan vendor:publish --tag=laravel-pagination 这 个 命 令 会 将 视 图 放 置 到 resources/views/vendor/pagination 目 录 , 该 目 录 下 的 default.blade 中文学习资源 40 要关闭维护模式,对应的 Artisan 命令是 up: php artisan up 维护模式响应模板 默认的维护模式响应视图模板是 resources/views/errors/503.blade.php 维护模式 & 队列 当你的站点处于维护模式中时,所有的队列任务都不会执行;当应用退出维护模式这些任务才会 被继续正常处理。 维护模式的替代方案 该方法可在请求生命周期的任何时间点使用。 自定义 HTTP 错误页面 在 Laravel 中,返回不同 HTTP 状态码的错误页面很简单,例如,如果你想要自定义 404 错误页 面,创建一个 resources/views/errors/404.blade.php 文件,该视图文件用于渲染程序返回的所 有 404 错误。需要注意的是,该目录下的视图命名应该和相应的 HTTP 状态码相匹配。 5、日志 Laravel0 码力 | 691 页 | 9.37 MB | 1 年前3
 Laravel 6.0 中文文档$handle = fopen('log.txt', 'r'); while (($line = fgets($handle)) !== false) { yield $line; } }) ->chunk(4) ->map(function ($lines) { return LogEntry::fromLines($lines); }) ->each(function (LogEntry 要关闭维护模式,开启站点,对应的 Artisan 命令是 up: php artisan up 注:你可以通过定义自己的模板来定制默认的维护模式模 板,自定义模板视图位 于 resources/views/errors/503.blade.php。 维护模式 & 队列 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 43 / 路由做了调整,接下来,我们需要修 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 175 改 resources/views/welcome.blade.php 代码以支持 website 数 据变量: 我们将原来写死的 Laravel 文本调整为支持变量传入的方式,这样, 我们就可以在浏览器中通过 http://blog0 码力 | 1442 页 | 14.66 MB | 1 年前3 Laravel 6.0 中文文档$handle = fopen('log.txt', 'r'); while (($line = fgets($handle)) !== false) { yield $line; } }) ->chunk(4) ->map(function ($lines) { return LogEntry::fromLines($lines); }) ->each(function (LogEntry 要关闭维护模式,开启站点,对应的 Artisan 命令是 up: php artisan up 注:你可以通过定义自己的模板来定制默认的维护模式模 板,自定义模板视图位 于 resources/views/errors/503.blade.php。 维护模式 & 队列 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 43 / 路由做了调整,接下来,我们需要修 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 175 改 resources/views/welcome.blade.php 代码以支持 website 数 据变量: 我们将原来写死的 Laravel 文本调整为支持变量传入的方式,这样, 我们就可以在浏览器中通过 http://blog0 码力 | 1442 页 | 14.66 MB | 1 年前3
 Laravel 5.0 Documentation
v. Responses i. Basic Responses ii. Redirects iii. Other Responses iv. Response Macros vi. Views i. Basic Usage ii. View Composers 5. Architecture Foundations i. Service Providers i. Introduction Attachments iv. Queueing Mail v. Mail & Local Development xvi. Package Development i. Introduction ii. Views iii. Translations iv. Configuration v. Publishing File Groups vi. Routing xvii. Pagination i Controller Validation iii. Form Request Validation iv. Working With Error Messages v. Error Messages & Views vi. Available Validation Rules vii. Conditionally Adding Rules viii. Custom Error Messages ix0 码力 | 242 页 | 1.44 MB | 1 年前3 Laravel 5.0 Documentation
v. Responses i. Basic Responses ii. Redirects iii. Other Responses iv. Response Macros vi. Views i. Basic Usage ii. View Composers 5. Architecture Foundations i. Service Providers i. Introduction Attachments iv. Queueing Mail v. Mail & Local Development xvi. Package Development i. Introduction ii. Views iii. Translations iv. Configuration v. Publishing File Groups vi. Routing xvii. Pagination i Controller Validation iii. Form Request Validation iv. Working With Error Messages v. Error Messages & Views vi. Available Validation Rules vii. Conditionally Adding Rules viii. Custom Error Messages ix0 码力 | 242 页 | 1.44 MB | 1 年前3
 CakePHP Cookbook Documentation 5.xCookies Controllers Controller The App Controller Request Flow Controller Actions Interacting with Views Setting View Variables Setting View Options Rendering a View Content Type Negotiation Controll Pages Controller Components Views View The App View View Templates Alternative Echos Alternative Control Structures View Variables Setting View Variables Extending Views Extending Layouts Using View Your View View Events Event List Creating Your Own View Classes More About Views View Cells Themes JSON and XML views Helpers Database Access & ORM Quick Example More Information Database Basics0 码力 | 1080 页 | 939.39 KB | 1 年前3 CakePHP Cookbook Documentation 5.xCookies Controllers Controller The App Controller Request Flow Controller Actions Interacting with Views Setting View Variables Setting View Options Rendering a View Content Type Negotiation Controll Pages Controller Components Views View The App View View Templates Alternative Echos Alternative Control Structures View Variables Setting View Variables Extending Views Extending Layouts Using View Your View View Events Event List Creating Your Own View Classes More About Views View Cells Themes JSON and XML views Helpers Database Access & ORM Quick Example More Information Database Basics0 码力 | 1080 页 | 939.39 KB | 1 年前3
 CakePHP Cookbook Documentation 5.x. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187 Interacting with Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187 Content . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195 11 Views 207 The App View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219 More About Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2190 码力 | 848 页 | 2.53 MB | 1 年前3 CakePHP Cookbook Documentation 5.x. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187 Interacting with Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187 Content . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195 11 Views 207 The App View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219 More About Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2190 码力 | 848 页 | 2.53 MB | 1 年前3
 CakePHP Cookbook 4.x
Cookies Controllers Controller The App Controller Request Flow Controller Actions Interacting with Views Setting View Variables Setting View Options Rendering a View Content Type Negotiation Controller::viewClasses() Pages Controller Components Views View The App View View Templates Alternative Echos Alternative Control Structures View Variables Setting View Variables Extending Views Extending Layouts Using View Your View View Events Event List Creating Your Own View Classes More About Views View Cells Themes JSON and XML views Helpers Database Access & ORM Quick Example More Information Database Basics0 码力 | 1249 页 | 1.04 MB | 1 年前3 CakePHP Cookbook 4.x
Cookies Controllers Controller The App Controller Request Flow Controller Actions Interacting with Views Setting View Variables Setting View Options Rendering a View Content Type Negotiation Controller::viewClasses() Pages Controller Components Views View The App View View Templates Alternative Echos Alternative Control Structures View Variables Setting View Variables Extending Views Extending Layouts Using View Your View View Events Event List Creating Your Own View Classes More About Views View Cells Themes JSON and XML views Helpers Database Access & ORM Quick Example More Information Database Basics0 码力 | 1249 页 | 1.04 MB | 1 年前3
 CakePHP Cookbook 3.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287 Interacting with Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287 Redirecting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294 11 Views 339 The App View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 351 More About Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3510 码力 | 967 页 | 2.80 MB | 1 年前3 CakePHP Cookbook 3.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287 Interacting with Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287 Redirecting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294 11 Views 339 The App View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 351 More About Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3510 码力 | 967 页 | 2.80 MB | 1 年前3
共 64 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7














