Laravel 5.6 中文文档目录包含了应用所有的授权策略类,策略用于判断某个用 户是否有权限去访问指定资源。更多详情,请查看授权文档。 Providers 目录 Providers 目录包含应用的所有服务提供者。服务提供者在应用启动过程中绑定服务到容器、注册事件以及执行其他任务为即将到来的请求处理做好 准备工作。 在新安装的 Laravel 应用中,该目录已经包含了一些服务提供者,你可以按需添加自己的服务提供者到该目录。 Rules 目录 在系统的任意位置创建一个批处理文件 homestead.bat: @echo off set cwd=%cd% set homesteadVagrant=C:\Homestead cd /d %homesteadVagrant% && vagrant %* cd /d %cwd% set cwd= set homesteadVagrant= 你需要将脚本中实例路径 C:\Homestead 。 index.php 文件载入 Composer 生成的自动加载设置,然后从 bootstrap/app.php 脚本获取 Laravel 应用实例,Laravel 的第一个动作就是创建服 务容器实例。 HTTP/Console 内核 接下来,请求被发送到 HTTP 内核或 Console 内核(分别用于处理 Web 请求和 Artisan 命令),这取决于进入应用的请求类型。这两个内核是所0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 5.1 中文文档BindingResolutionException 被移动到 Illuminate\Contracts\Container\BindingResolutionException. 服务容器的 bindShared 方法被废弃,使用 singleton 方法。 Eloquent 和 query builder 的 pluck 方法被废弃并重命名为 value. Collection kernel 的全局中间件列表中。 当调用中间件上的 terminate 方法时,Laravel 将会从服务容器中取出该中间件的新的实例, 如果你想要在调用 handle 和 terminate 方法时使用同一个中间件实例,则需要使用容器的 singleton 方法将该中间件注册到容器中。 HTTP 控制器 1、简介 将所有的请求处理逻辑都放在单个 routes.php 中肯定是不合理的,你也许还希望使用控制 show',]); 本文档由 Laravel 学院(LaravelAcademy.org)提供 35 6、依赖注入 & 控制器 6.1 构造函数注入 Laravel 使用服务容器解析所有的 Laravel 控制器,因此,可以在控制器的构造函数中类型 声明任何依赖,这些依赖会被自动解析并注入到控制器实例中:0 码力 | 307 页 | 3.46 MB | 1 年前3
Laravel 6.0 中文文档目录包含了应用所有的授权策略类,策略用于 判断某个用户是否有权限去访问指定资源。更多详情,请查看授权文 档。 Providers 目录 Providers 目录包含应用的所有服务提供者。服务提供者在应用启动 过程中绑定服务到容器、注册事件以及执行其他任务为即将到来的请 求处理做好准备工作。 在新安装的 Laravel 应用中,该目录已经包含了一些服务提供者, 你可以按需添加自己的服务提供者到该目录。 Rules 目录 @echo off set cwd=%cd% set homesteadVagrant=C:\Homestead cd /d %homesteadVagrant% && vagrant %* cd /d %cwd% 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 74 set cwd= set homesteadVagrant= index.php 文件载入 Composer 生成的自动加载设置,然后 从 bootstrap/app.php 脚本获取 Laravel 应用实例,Laravel 的第 一个动作就是创建服务容器实例。 HTTP/Console 内核 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 117 接下来,请求被发送到 HTTP0 码力 | 1442 页 | 14.66 MB | 1 年前3
Laravel 5.2 中文文档kernel 的全局中间件列表中。 当调用中间件上的 terminate 方法时,Laravel 将会从服务容器中取出该中间件的新的实 例,如果你想要在调用 handle 和 terminate 方法时使用同一个中间件实例,则需要使用容 器的 singleton 方法将该中间件注册到容器中。 HTTP 控制器 1、简介 将所有的请求处理逻辑都放在单个 routes.php 中显然是不合理的,你也许还希望使用控制 'PhotoController@method'); Route::resource('photos', 'PhotoController'); 5、依赖注入 & 控制器 构造函数注入 Laravel 使用服务容器解析所有的 Laravel 控制器,因此,可以在控制器的构造函数中类 型声明任何依赖,这些依赖会被自动解析并注入到控制器实例中: users = $users; } } 当然,你还可以类型提示任何 Laravel 契约,如果容器可以解析,就可以进行类型提示。 方法注入 除了构造函数注入之外,还可以在控制器的动作方法中进行依赖的类型提示,例如,我们 可以在某个方法中类型提示 Illuminate\Http\Request0 码力 | 377 页 | 4.56 MB | 1 年前3
Laravel 5.3 中文文档....................................................................................... 71 4.1 服务容器 .................................................................................................. tainer 实例到构造函数,这只有 当你在 app/Exception/Handler.php 中定义了自定义的__construct 方法时才会对应用产生影响, 如果你这么做了,需要传递一个容器实例到 parent::__construct 方法: parent::__construct(app()); 本文档由 Laravel 学院(LaravelAcademy.org)提供 权策略类,策略用于判断某个用户是否有权限去访问指定资源。更多详情,请查看授权文档。 Providers 目录 Providers 目录包含应用的所有服务提供者。服务提供者在启动应用过程中绑定服务到容器、注 册事件以及执行其他任务以为即将到来的请求处理做准备。 在新安装的 Laravel 应用中,该目录已经包含了一些服务提供者,你可以按需添加自己的服务提 供者到该目录。 2.4 错误&日志0 码力 | 691 页 | 9.37 MB | 1 年前3
Laravel 5.0 Documentation
repository. This repository has no external dependencies. Having a convenient, centrally located set of interfaces you may use for decoupling and dependency injection will serve as an easy alternative Copy the new .env.example file to .env , which is the 5.0 equivalent of the old .env.php file. Set any appropriate values there, like your APP_ENV and APP_KEY (your encryption key), your database config/database.php configuration file. Set the config files in the config/ directory to represent either the values that are consistent across all of your environments, or set them to use env() to load values0 码力 | 242 页 | 1.44 MB | 1 年前3
Learning LaravelChapter 61: Token Mismatch Error in AJAX 179 Introduction 179 Examples 179 Setup Token on Header 179 Set token on tag 179 Check session storage path & permission 179 Use _token field on Ajax 180 Chapter ORM To connect your models to various types of databases, Laravel offers its own ORM with a large set of functions to work with. The framework also provides migration and seeding and also features rollbacks Installation from here Get composer from here and install it 1. Get Wamp from here, install it and set environment variable of PHP 2. Get path to www and type command: 3. composer create-project --prefer-dist0 码力 | 216 页 | 1.58 MB | 1 年前3
Laravel 3.2 Documentation Replace the laravel folder. Laravel 3.2.1 Fixed bug in cookie retrieval when cookie is set on same request. Fixed bug in SQL Server grammar for primary keys. Fixed bug in Validator models with Twig. Allow multiple views to be registered for a single composer. Added Request::set_env method. Schema::drop now accepts $connection as second parameter. Added Input::merge controller factories for injecting any IoC. Added link_to_action HTML helpers. Added ability to set default value on Config::get. Added the ability to add pattern based filters. Improved session0 码力 | 139 页 | 1.13 MB | 1 年前3
The Laravel Handbook
Laravel to get you up and running. 2. Getting started To get started with Laravel, you need to set up your PHP environment on your computer. You can do this in various ways. Before going on, remove called environment variables, for your app: 9 For example in this portion of the file you can see we set the app name, the debug flag, the URL, settings related to logging, to the database connection, email config/app.php file: 10 Each file in the folder contain a lot of configuration options you can set, very well documented. What’s the difference between config files and the .env file? Environment0 码力 | 111 页 | 14.25 MB | 1 年前3
《Slides Dev Web》 07. jQuery
au contenu : – text() : get/set le texte entre les balises – html() : get/set l’élément complet (yc balises) – val() : get/set les valeurs d’un formulaire – attr() : set la valeur d’un attribut • Ajout css("background-color"); // get $("p").css({"background-color":"yellow","font-size":"200%"}); // set Evénements • Souris – click, dblclick, mouseenter, mouseleave • Clavier – keypress, keyup, keydown0 码力 | 5 页 | 49.45 KB | 1 年前3
共 12 条
- 1
- 2













