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 typetest
different 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 16new 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 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
Falcon v1.3.0 DocumentationContents 1 What People are Saying 3 2 Features 5 3 Who’s Using Falcon? 7 4 Useful Links 9 5 Resources 11 6 Documentation 13 6.1 User Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . remaining highly effective. • Routes based on URI templates RFC • REST-inspired mapping of URIs to resources • Global, resource, and method hooks • Idiomatic HTTP error responses • Full Unicode support 4. Useful Links CHAPTER 5 Resources • An Unladen Web Framework • The Definitive Introduction to Falcon 11 Falcon Documentation, Release 1.3.0 12 Chapter 5. Resources CHAPTER 6 Documentation User0 码力 | 146 页 | 535.22 KB | 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
Falcon v1.4.1 Documentationremaining highly effective. • Routes based on URI templates RFC • REST-inspired mapping of URIs to resources • Global, resource, and method hooks • Idiomatic HTTP error responses • Full Unicode support follows the REST architectural style, meaning (among # other things) that you think in terms of resources and state # transitions, which map to HTTP verbs. class ThingsResource(object): def on_get(self '\n' ' ~ Immanuel Kant\n\n') # falcon.API instances are callable WSGI apps app = falcon.API() # Resources are represented by long-lived class instances things = ThingsResource() # things will handle all0 码力 | 158 页 | 587.88 KB | 1 年前3
Falcon v1.4.0 Documentationremaining highly effective. • Routes based on URI templates RFC • REST-inspired mapping of URIs to resources • Global, resource, and method hooks • Idiomatic HTTP error responses • Full Unicode support follows the REST architectural style, meaning (among # other things) that you think in terms of resources and state # transitions, which map to HTTP verbs. class ThingsResource(object): def on_get(self '\n' ' ~ Immanuel Kant\n\n') # falcon.API instances are callable WSGI apps app = falcon.API() # Resources are represented by long-lived class instances things = ThingsResource() # things will handle all0 码力 | 156 页 | 573.94 KB | 1 年前3
Falcon v1.4.1 Documentationremaining highly effective. • Routes based on URI templates RFC • REST-inspired mapping of URIs to resources • Global, resource, and method hooks • Idiomatic HTTP error responses • Full Unicode support follows the REST architectural style, meaning (among # other things) that you think in terms of resources and state # transitions, which map to HTTP verbs. class ThingsResource(object): def on_get(self '\n' ' ~ Immanuel Kant\n\n') # falcon.API instances are callable WSGI apps app = falcon.API() # Resources are represented by long-lived class instances things = ThingsResource() # things will handle all0 码力 | 156 页 | 574.46 KB | 1 年前3
Falcon v1.3.0 Documentationremaining highly effective. Routes based on URI templates RFC REST-inspired mapping of URIs to resources Global, resource, and method hooks Idiomatic HTTP error responses Full Unicode support Intuitive PyPI [https://pypi.python.org/pypi/falcon] Falcon @ GitHub [https://github.com/racker/falcon] Resources An Unladen Web Framework [http://blog.kgriffs.com/2013/07/02/python-fast-web-service- framework Quickstart Learning by Example More Features Tutorial First Steps Hosting Your App Creating Resources Testing your application Request and Response Objects Refactoring for testability Functional tests0 码力 | 194 页 | 266.90 KB | 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 目录。 下面是一个简单视图:Hello, resources/views/greeting.php,我们可以在全局的辅助函 数 view 中这样返回它: Route::get('/', function () { return view('greeting', ['name' => 'James']); }); 正如你所看到的,传递给 view 方法的第一个参数是 resources/views 目录下相应的视图
0 码力 | 377 页 | 4.56 MB | 1 年前3
共 68 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7













