 The Laravel Handbook
parts of our applications. In this case the welcome view is defined in the file resources/views/welcome.blade.php : You can clear all the content of this file, and type The Laravel Handbook
parts of our applications. In this case the welcome view is defined in the file resources/views/welcome.blade.php : You can clear all the content of this file, and type- testdifferent content by creating a new view in resources/views and using that view in the route, for example create a new view resources/views/test.blade.php resources/views/test.blade.php 16- new view 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.php file. Add any content, like- 0 码力 | 111 页 | 14.25 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 --retry=60 要关闭维护模式,开启站点,对应的 Artisan 命令是 up: php artisan up 注:你可以通过定义自己的模板来定制默认的维护模式模板,自定义模板视图位于 resources/views/errors/503.blade.php。 维护模式 & 队列 当你的站点处于维护模式中时,所有的队列任务都不会执行;当应用退出维护模式这些任务才会被继续正常处理。 维护模式的替代方案 的应用根目录,这样做的好处是隔离了应用核心文件直接暴露于 Web 根目录之下,如果权限系统没做好或服务器配置有漏洞的话,很可能导致应用 敏感文件被黑客窃取,进而对网站安全造成威胁; Resources 目录 resources 目录包含了应用视图文件和未编译的原生前端资源文件(LESS、SASS、JavaScript),以及本地化语言文件; Routes 目录 routes 目录包含了应用定义的所有路由。Laravel0 码力 | 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 --retry=60 要关闭维护模式,开启站点,对应的 Artisan 命令是 up: php artisan up 注:你可以通过定义自己的模板来定制默认的维护模式模板,自定义模板视图位于 resources/views/errors/503.blade.php。 维护模式 & 队列 当你的站点处于维护模式中时,所有的队列任务都不会执行;当应用退出维护模式这些任务才会被继续正常处理。 维护模式的替代方案 的应用根目录,这样做的好处是隔离了应用核心文件直接暴露于 Web 根目录之下,如果权限系统没做好或服务器配置有漏洞的话,很可能导致应用 敏感文件被黑客窃取,进而对网站安全造成威胁; Resources 目录 resources 目录包含了应用视图文件和未编译的原生前端资源文件(LESS、SASS、JavaScript),以及本地化语言文件; Routes 目录 routes 目录包含了应用定义的所有路由。Laravel0 码力 | 377 页 | 14.56 MB | 1 年前3
 Laravel 6.0 中文文档#internals 频道咨询 Taylor Otwell。 编译前端资源 如果你提交的文件更改会影响前端编译文件,通常这种文件位 于 1aravel/laravel 仓库 的 resources/sass 或 resources/js 目录下,不要提交编译后的文 件,因为它们的尺寸往往很大,框架维护者没法对其进行代码审查 (Code Review)。不怀好意的人可能会借此注入恶意代码到 Laravel 0/16 要关闭维护模式,开启站点,对应的 Artisan 命令是 up: php artisan up 注:你可以通过定义自己的模板来定制默认的维护模式模 板,自定义模板视图位 于 resources/views/errors/503.blade.php。 维护模式 & 队列 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun 洞的话,很可能导致应用敏感文件被黑客窃取,进而对网站安全造成 威胁; 资源目录 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 46 resources 目录包含了应用视图文件和未编译的原生前端资源文件 (LESS、SASS、JavaScript),以及本地化语言文件; 路由目录 routes 目录包含了应用定义的所有路由。Laravel0 码力 | 1442 页 | 14.66 MB | 1 年前3 Laravel 6.0 中文文档#internals 频道咨询 Taylor Otwell。 编译前端资源 如果你提交的文件更改会影响前端编译文件,通常这种文件位 于 1aravel/laravel 仓库 的 resources/sass 或 resources/js 目录下,不要提交编译后的文 件,因为它们的尺寸往往很大,框架维护者没法对其进行代码审查 (Code Review)。不怀好意的人可能会借此注入恶意代码到 Laravel 0/16 要关闭维护模式,开启站点,对应的 Artisan 命令是 up: php artisan up 注:你可以通过定义自己的模板来定制默认的维护模式模 板,自定义模板视图位 于 resources/views/errors/503.blade.php。 维护模式 & 队列 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun 洞的话,很可能导致应用敏感文件被黑客窃取,进而对网站安全造成 威胁; 资源目录 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 46 resources 目录包含了应用视图文件和未编译的原生前端资源文件 (LESS、SASS、JavaScript),以及本地化语言文件; 路由目录 routes 目录包含了应用定义的所有路由。Laravel0 码力 | 1442 页 | 14.66 MB | 1 年前3
 Laravel 5.0 Documentation
service providers for your application. Application language files and views have been moved to the resources directory. All major Laravel components implement interfaces which are located in the illuminate/contracts corresponding views, which are located at resources/views/auth . In addition, a "users" table migration has been included with the framework. Including these simple resources allows rapid development of application bindings up into separate service providers by category. Move your views from app/views to the new resources/views directory. For better security by default, Laravel 5.0 escapes all output from both the0 码力 | 242 页 | 1.44 MB | 1 年前3 Laravel 5.0 Documentation
service providers for your application. Application language files and views have been moved to the resources directory. All major Laravel components implement interfaces which are located in the illuminate/contracts corresponding views, which are located at resources/views/auth . In addition, a "users" table migration has been included with the framework. Including these simple resources allows rapid development of application bindings up into separate service providers by category. Move your views from app/views to the new resources/views directory. For better security by default, Laravel 5.0 escapes all output from both the0 码力 | 242 页 | 1.44 MB | 1 年前3
 Laravel 5.2 中文文档即可: php artisan down 要关闭维护模式,对应的 Artisan 命令是 up: php artisan up 维护模式响应模板 默认的维护模式响应模板是 resources/views/errors/503.blade.php 维护模式 & 队列 当你的站点处于维护模式中时,所有的队列任务都不会执行;当应用退出维护模式这些任 务才会被继续正常处理。 本文档由 Laravel 中文学习资源 56 视图 1、基本使用 视图包含应用的 HTML 代码并将应用的控制器逻辑和表现逻辑进行分离。视图文件存放 在 resources/views 目录。 下面是一个简单视图: Laravel 5.2 中文文档即可: php artisan down 要关闭维护模式,对应的 Artisan 命令是 up: php artisan up 维护模式响应模板 默认的维护模式响应模板是 resources/views/errors/503.blade.php 维护模式 & 队列 当你的站点处于维护模式中时,所有的队列任务都不会执行;当应用退出维护模式这些任 务才会被继续正常处理。 本文档由 Laravel 中文学习资源 56 视图 1、基本使用 视图包含应用的 HTML 代码并将应用的控制器逻辑和表现逻辑进行分离。视图文件存放 在 resources/views 目录。 下面是一个简单视图:- Hello, resources/views/greeting.php,我们可以在全局的辅助函 数 view 中这样返回它: Route::get('/', function () { return view('greeting', ['name' => 'James']); }); 正如你所看到的,传递给 view 方法的第一个参数是 resources/views 目录下相应的视图0 码力 | 377 页 | 4.56 MB | 1 年前3
 Laravel 5.1 中文文档包发布语言文件的默认目录做了移动,所有 vendor 包语言文件从 resources/lang/packages/{locale}/{namespace}移动到了 resources/lang/vendor/{namespace}/{locale}目录。例如,Acme/Anvil 包的 acme/anvil::foo 英语语言文件将会从 resources/lang/packages/en/acme/anvil/foo il/foo.php 移动到 resources/lang/vendor/acme/anvil/en/foo.php。 本文档由 Laravel 学院(LaravelAcademy.org)提供 7 Amazon Web Services SDK 如果你正在使用 AWS SQS 队列驱动或者 AWS SES 电子邮件驱动,需要升级 AWS PHP SDK 到 3.0 版本。 php artisan down 关闭维护模式,对应的 Artisan 命令是 up: php artisan up 3.1 维护模式响应模板 默认的维护模式响应模板位于 resources/views/errors/503.blade.php 3.2 维护模式 & 队列 当你的站点处于维护模式中时,所有的队列任务都不会执行;当应用退出维护模式这些任务 才会被继续正常处理。0 码力 | 307 页 | 3.46 MB | 1 年前3 Laravel 5.1 中文文档包发布语言文件的默认目录做了移动,所有 vendor 包语言文件从 resources/lang/packages/{locale}/{namespace}移动到了 resources/lang/vendor/{namespace}/{locale}目录。例如,Acme/Anvil 包的 acme/anvil::foo 英语语言文件将会从 resources/lang/packages/en/acme/anvil/foo il/foo.php 移动到 resources/lang/vendor/acme/anvil/en/foo.php。 本文档由 Laravel 学院(LaravelAcademy.org)提供 7 Amazon Web Services SDK 如果你正在使用 AWS SQS 队列驱动或者 AWS SES 电子邮件驱动,需要升级 AWS PHP SDK 到 3.0 版本。 php artisan down 关闭维护模式,对应的 Artisan 命令是 up: php artisan up 3.1 维护模式响应模板 默认的维护模式响应模板位于 resources/views/errors/503.blade.php 3.2 维护模式 & 队列 当你的站点处于维护模式中时,所有的队列任务都不会执行;当应用退出维护模式这些任务 才会被继续正常处理。0 码力 | 307 页 | 3.46 MB | 1 年前3
 Laravel 5.3 中文文档中加载前端资源,所有依赖都被定义在默认的 package.json 文件中。 此外,支持单文件的 Vue 组件现在已经开箱支持, resources/assets/js/components 目录下包含 了一个简单的示例组件 Example.vue ,新的 resources/assets/js/app.js 文件将会启动被配置你 的 JavaScript 库以及 Vue 组件。 这种架构对开始开发现代的、强大的 分页视图最简单的方式就是 通过 vendor:publish 命令将它们导出到 resources/views/vendor 目录: php artisan vendor:publish --tag=laravel-pagination 这 个 命 令 会 将 视 图 放 置 到 resources/views/vendor/pagination 目 录 , 该 目 录 下 的 default Laravel 中文学习资源 40 要关闭维护模式,对应的 Artisan 命令是 up: php artisan up 维护模式响应模板 默认的维护模式响应视图模板是 resources/views/errors/503.blade.php 维护模式 & 队列 当你的站点处于维护模式中时,所有的队列任务都不会执行;当应用退出维护模式这些任务才会 被继续正常处理。0 码力 | 691 页 | 9.37 MB | 1 年前3 Laravel 5.3 中文文档中加载前端资源,所有依赖都被定义在默认的 package.json 文件中。 此外,支持单文件的 Vue 组件现在已经开箱支持, resources/assets/js/components 目录下包含 了一个简单的示例组件 Example.vue ,新的 resources/assets/js/app.js 文件将会启动被配置你 的 JavaScript 库以及 Vue 组件。 这种架构对开始开发现代的、强大的 分页视图最简单的方式就是 通过 vendor:publish 命令将它们导出到 resources/views/vendor 目录: php artisan vendor:publish --tag=laravel-pagination 这 个 命 令 会 将 视 图 放 置 到 resources/views/vendor/pagination 目 录 , 该 目 录 下 的 default Laravel 中文学习资源 40 要关闭维护模式,对应的 Artisan 命令是 up: php artisan up 维护模式响应模板 默认的维护模式响应视图模板是 resources/views/errors/503.blade.php 维护模式 & 队列 当你的站点处于维护模式中时,所有的队列任务都不会执行;当应用退出维护模式这些任务才会 被继续正常处理。0 码力 | 691 页 | 9.37 MB | 1 年前3
 Learning Laravelresulting file extension for Blade template files. Blade template engine files are stored in the resources/views directory. Routing & Middleware You can define the URLs of your application with the help parts of Laravel. There are a lot of commands available to create models, controllers and other resources needed for development. You can also write your own commands to extend the Artisan command line provides a simple way to authorise user actions on specific resources. With Authorization, you can selectively allow users access to certain resources while denying access to others. Laravel provides a simple0 码力 | 216 页 | 1.58 MB | 1 年前3 Learning Laravelresulting file extension for Blade template files. Blade template engine files are stored in the resources/views directory. Routing & Middleware You can define the URLs of your application with the help parts of Laravel. There are a lot of commands available to create models, controllers and other resources needed for development. You can also write your own commands to extend the Artisan command line provides a simple way to authorise user actions on specific resources. With Authorization, you can selectively allow users access to certain resources while denying access to others. Laravel provides a simple0 码力 | 216 页 | 1.58 MB | 1 年前3
 《Slides Dev Web》 06. HTTP & AJAX
• Respect des conventions • Pas de distraction • A11y (Contrast Checker29, Checklist30, ARIA31, Resources32) • Ne pas switcher AJAX/non-AJAX • Se mettre à la place de l’utilisateur Sources 26https://html 31https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA 32https://www.a11yproject.com/resources/ 110 码力 | 11 页 | 91.09 KB | 1 年前3 《Slides Dev Web》 06. HTTP & AJAX
• Respect des conventions • Pas de distraction • A11y (Contrast Checker29, Checklist30, ARIA31, Resources32) • Ne pas switcher AJAX/non-AJAX • Se mettre à la place de l’utilisateur Sources 26https://html 31https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA 32https://www.a11yproject.com/resources/ 110 码力 | 11 页 | 91.09 KB | 1 年前3
 《Slides Dev Web》 10. Rwdresponsive, responsibly25 13https://sparkbox.github.io/mediaQueryBookmarklet/ 14https://www.lukew.com/resources/mobile_first.asp 15https://offlinefirst.org/ 16https://developers.google.com/web/progressive-web-apps/0 码力 | 7 页 | 76.36 KB | 1 年前3 《Slides Dev Web》 10. Rwdresponsive, responsibly25 13https://sparkbox.github.io/mediaQueryBookmarklet/ 14https://www.lukew.com/resources/mobile_first.asp 15https://offlinefirst.org/ 16https://developers.google.com/web/progressive-web-apps/0 码力 | 7 页 | 76.36 KB | 1 年前3
共 11 条
- 1
- 2













