Learning LaravelPolicies 15 Chapter 5: Blade Templates 17 Introduction 17 Examples 17 Views: Introduction 17 Control Structures 18 Conditionals 18 'If' statements 18 'Unless' statements 18 Loops 18 'While' loop About You can share this PDF with anyone you feel could benefit from it, downloaded the latest version from: laravel It is an unofficial and free Laravel ebook created for educational purposes. All and can thus modify or reject requests. Artisan Artisan is the command line tool you can use to control parts of Laravel. There are a lot of commands available to create models, controllers and other0 码力 | 216 页 | 1.58 MB | 1 年前3
Laravel 5.0 Documentation
iv. Database Sessions v. Session Drivers xx. Templates i. Blade Templating ii. Other Blade Control Structures iii. Extending Blade xxi. Unit Testing i. Introduction ii. Defining & Running Tests ii. Development i. Introduction ii. Building A Command iii. Registering Commands A GitBook version of Laravel 5.0 Documentation Introduction Release Notes Laravel 5.0 Laravel 4.2 Laravel 4.1 they wished to schedule. However, this is a headache. Your console schedule is no longer in source control, and you must SSH into your server to add the Cron entries. Let's make our lives easier. The Laravel0 码力 | 242 页 | 1.44 MB | 1 年前3
Laravel 3.2 Documentationfew examples that we think make good bullet points: Bundles are Laravel's modular packaging system. The Laravel Bundle Repository is already populated with quite a few features that can be easily to easily apply constraints to both relationships and nested eager-loading you'll have complete control over your data with all of the 2 conveniences of ActiveRecord. Eloquent natively supports for views that are unrelated to that method's page content. The IoC container (Inversion of Control) gives you a method for generating new objects and optionally instantiating and referencing singletons0 码力 | 139 页 | 1.13 MB | 1 年前3
The Laravel Handbook
(might take a while) Once installed you should be able to run the php -v command to get the version of PHP installed (same for composer -v ): 6 Now you can go into folder on your computer that you there are other migrations, which are added by the Laravel framework itself for it’s authentication system. But let’s focus on creating a new table, let’s call it dogs . Go in the up() function of the open the database/database.sqlite file using a database visualization tool like TablePlus (free version, available for all operating systems) you will see the newly created tables, including the one we0 码力 | 111 页 | 14.25 MB | 1 年前3
Laravel 5.2 中文文档文件中,该文件会将对 本地域名的请求重定向到 Homestead 虚拟机,在 Mac 或 Linux 上,该文件位 于 /etc/hosts,在 Windows 上,位于 C:\Windows\System32\drivers\etc\hosts,添加 方式如下: 192.168.10.10 homestead.app 确保 IP 地址和你的 Homestead.yaml 文件中列出的一致,一旦你将域名放置到 而不是代码的缓存副本。Elixir 可以使用 version 方法为你处理这种情况。 version 方法接收相对于 public 目录的文件名,附加唯一 hash 到文件名,从而实现缓存 刷新。例如,生成的文件名看上去是这样——all-16d570a7.css: elixir(function(mix) { mix.version('css/all.css'); }); 生成版本文件后,可以在视图中使用 rel="stylesheet" href="{{ elixir('css/all.css') }}"> 给多个文件加上版本号 你可以传递一个数组到 version 方法来为多个文件添加版本号: elixir(function(mix) { mix.version(['css/all.css', 'js/app.js']); }); 一旦文件被加上版本号,就可以使用帮助函数 elixir 来生成指向该0 码力 | 377 页 | 4.56 MB | 1 年前3
Laravel 6.0 中文文档Homestead 站点的请求重定向到 Homestead 虚拟机。在 Mac 和 Linux 系统中,该文件位于 /etc/hosts,在 Windows 系统中, 该文件位于 C:\Windows\System32\drivers\etc\hosts。我们 以 homestead.test 域名映射为例,添加到 hosts 文件的记录如下 所示: 192.168.10.10 homestead.test cassandra: true - chronograf: true - couchdb: true - crystal: true - docker: true - elasticsearch: version: 7 - gearman: true - golang: true - grafana: true 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun PHP 版本 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 100 Valet 允许你使用 valet use php@version 来切换 PHP 的版本, 如果指定 PHP 版本不存在的话,Valet 会通过 Brew 自动帮你安 装: valet use php@7.2 valet use php // 默认 PHP0 码力 | 1442 页 | 14.66 MB | 1 年前3
《Slides Dev Web》 06. HTTP & AJAX
en)[CRLF] Accept-Encoding: gzip[CRLF] Accept-Charset: ISO-8859-1,UTF-8;q=0.7,*;q=0.7[CRLF] Cache-Control: no[CRLF] Accept-Language: de,en;q=0.7,en-us;q=0.3[CRLF] Referer: http://web-sniffer.net/[CRLF] [CRLF] d’entêtes15 interdisant le cache MyXhr.open("GET", "fichier.xml", true); MyXhr.setRequestHeader("Cache-Control", "no-store, no-cache, must-revalidate, post-check=0, pre-check=0"); MyXhr.setRequestHeader("Pragma" • ou dans responseXML – Utilisation du DOM (getElementsByTagName(), ...) Réponse en XML version="1.0" ?>Berger Laurent Borgo 0 码力 | 11 页 | 91.09 KB | 1 年前3
Laravel 5.6 中文文档hosts 文件中,该文件会将对本地域名的请求重定向到 Homestead 虚拟机,在 Mac 或 Linux 上,该文件位于 /etc/hosts,在 Windows 上,位于 C:\Windows\System32\drivers\etc\hosts,添加方式如下: 192.168.10.10 homestead.test 确保 IP 地址和你的 Homestead.yaml 文件中列出的一致,一旦你将域名添加到 命令来升级 Valet。升级之后,最好运行下 valet install 命令以便 Valet 在必要情况下对配置文件 进行升级: 升级到 Valet 2.0 注:先通过 valet –version 查看本机安装的 Valet 版本,如果版本已经大于 2.0 则可以跳过本段教程。 Valet 2.0 将 Valet 底层的 web 服务器从 Caddy 替换成了 Nginx,升级到这个版 你可以通过 http://4c59137d.ngrok.io 或 https://4c59137d.ngrok.io 从任意联网机器访问站点(因为已经公开到互联网上): 要停止共享站点,使用 Control + C 快捷键结束该命令即可。 注:valet share 目前尚不支持分享使用 valet secure 命令进行安全处理的站点,所以需要先通过 valet unsecrue 命令解除安全访问。0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 5.3 中文文档文件中,该文件会将对本地域 名的请求重定向到 Homestead 虚拟机,在 Mac 或 Linux 上,该文件位于 /etc/hosts,在 Windows 上,位于 C:\Windows\System32\drivers\etc\hosts,添加方式如下: 192.168.10.10 homestead.app 本文档由 Laravel 学院(LaravelAcademy.org)提供 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 67 入剪贴板,以便你直接复制到浏览器地址栏,就是这么简单。 要停止共享站点,使用 Control + C 即可。 5、查看日志 如果你想要在终端显示所有站点的日志,可以运行 valet logs 命令,这会在终端显示新的日志。 6、自定义 Valet 驱动 你还可以编写自定义的 是代码的缓存副本。Elixir 可以使用 version 方法为你处理这种情况。 version 方法接收相对于 public 目录的文件名,附加唯一 hash 到文件名,从而实现缓存刷新。 例如,生成的文件名看上去是这样——all-16d570a7.css: elixir(function(mix) { mix.version('css/all.css'); });0 码力 | 691 页 | 9.37 MB | 1 年前3
Laravel 5.1 中文文档hosts 文件,该文件会将对本地域名的 请求重定向到 Homestead 环境,在 Mac 或 Linux 上,该文件位于/etc/hosts,在 Windows 上,位于 C:\Windows\System32\drivers\etc\hosts,添加方式如下: 192.168.10.10 homestead.app 确保 IP 地址和你的 Homestead.yaml 文件中列出的一致,一旦你将域名放置到 2015-02-18 version and later) "laravel/cashier": "~4.0" (For Stripe APIs on 2015-02-18 versio n and later) "laravel/cashier": "~3.0" (For Stripe APIs up to and including 2015-02-16 version) 1.1.2 服务提供者 而不是代码的缓存副本。Elixir 可以使用 version 方法为你处理这种情况。 version 方法接收相对于 public 目录的文件名,附加唯一 hash 到文件名,从而实现缓存刷 新。例如,生成的文件名看上去是这样——all-16d570a7.css: elixir(function(mix) { mix.version('css/all.css'); 本文档由 Laravel0 码力 | 307 页 | 3.46 MB | 1 年前3
共 15 条
- 1
- 2













