 Laravel 5.0 Documentation
ii. View Composers 5. Architecture Foundations i. Service Providers i. Introduction ii. Basic Provider Example iii. Registering Providers iv. Deferred Providers ii. Service Container i. Introduction composer.json file's require section. You'll also need to add the Form and HTML facades and service provider. Edit config/app.php , and add this line to the 'providers' array: Global IoC Bindings Views dation\Application contract via the service container. Of course, if you are within a service provider, the application instance is available via the $this->app instance variable. An application0 码力 | 242 页 | 1.44 MB | 1 年前3 Laravel 5.0 Documentation
ii. View Composers 5. Architecture Foundations i. Service Providers i. Introduction ii. Basic Provider Example iii. Registering Providers iv. Deferred Providers ii. Service Container i. Introduction composer.json file's require section. You'll also need to add the Form and HTML facades and service provider. Edit config/app.php , and add this line to the 'providers' array: Global IoC Bindings Views dation\Application contract via the service container. Of course, if you are within a service provider, the application instance is available via the $this->app instance variable. An application0 码力 | 242 页 | 1.44 MB | 1 年前3
 Learning Laravelmake:model Create a new Eloquent model class make:policy Create a new policy class make:provider Create a new service provider class make:request Create a new form request class make:seeder Create a new seeder 'driver' => 'session', 'provider' => 'users', ], 'api' => [ 'driver' => 'token', 'provider' => 'users', ], //Add Admin Admin Guard 'admin' => [ 'driver' => 'session', 'provider' => 'admins', ], ], and 'providers' => [ 'users' => [ 'driver' => 'eloquent'0 码力 | 216 页 | 1.58 MB | 1 年前3 Learning Laravelmake:model Create a new Eloquent model class make:policy Create a new policy class make:provider Create a new service provider class make:request Create a new form request class make:seeder Create a new seeder 'driver' => 'session', 'provider' => 'users', ], 'api' => [ 'driver' => 'token', 'provider' => 'users', ], //Add Admin Admin Guard 'admin' => [ 'driver' => 'session', 'provider' => 'admins', ], ], and 'providers' => [ 'users' => [ 'driver' => 'eloquent'0 码力 | 216 页 | 1.58 MB | 1 年前3
 Laravel 5.6 中文文档Homestead 设置 Provider Homestead.yaml 文件中的 provider 键表示使用哪个 Vagrant 提供者:virtualbox、vmware_fushion、 vmware_workstation、 parallels 或 hyperv,你可以将其设置为自己选择的提供者,当然对大部分人来说也没得选: provider: virtualbox 配置共享文件夹 MySQL,所以在应用数据库配置中你仍然可以使用 mysql 驱动: box: laravel/homestead ip: "192.168.10.10" memory: 2048 cpus: 4 provider: virtualbox mariadb: true 安装 Elasticsearch 要安装 Elasticsearch,需要添加 elasticsearch 到 Homestead 机器内存至少是分配给 Elasticsearch 的两倍: box: laravel/homestead ip: "192.168.10.10" memory: 4096 cpus: 4 provider: virtualbox elasticsearch: 6 注:查看 Elasticsearch 文档学习如何自定义配置。 别名 你可以在 Homestead 目录下通过编辑 aliases0 码力 | 377 页 | 14.56 MB | 1 年前3 Laravel 5.6 中文文档Homestead 设置 Provider Homestead.yaml 文件中的 provider 键表示使用哪个 Vagrant 提供者:virtualbox、vmware_fushion、 vmware_workstation、 parallels 或 hyperv,你可以将其设置为自己选择的提供者,当然对大部分人来说也没得选: provider: virtualbox 配置共享文件夹 MySQL,所以在应用数据库配置中你仍然可以使用 mysql 驱动: box: laravel/homestead ip: "192.168.10.10" memory: 2048 cpus: 4 provider: virtualbox mariadb: true 安装 Elasticsearch 要安装 Elasticsearch,需要添加 elasticsearch 到 Homestead 机器内存至少是分配给 Elasticsearch 的两倍: box: laravel/homestead ip: "192.168.10.10" memory: 4096 cpus: 4 provider: virtualbox elasticsearch: 6 注:查看 Elasticsearch 文档学习如何自定义配置。 别名 你可以在 Homestead 目录下通过编辑 aliases0 码力 | 377 页 | 14.56 MB | 1 年前3
 Laravel 5.3 中文文档bash init.sh 配置 Homestead 设置 Provider 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 55 Homestead.yaml 文 件 中 的 provider 键 表 示 使 用 哪 个 Vagrant 提 供 者 : virtualbox virtualbox 、 vmware_fushion 或者 vmware_workstation,你可以将其设置为自己喜欢的提供者: provider: virtualbox 配置共享文件夹 Homestead.yaml 文件中的 folders 属性列出了所有主机和 Homestead 虚拟机共享的文件夹,一 旦这些目录中的文件有了修改,将会在本地和 Homestead 虚拟机之间保持同步,如果有需要的 的替代品,所以在应用数据库配置中你 仍然可以使用 mysql 驱动: box: laravel/homestead ip: "192.168.20.20" memory: 2048 cpus: 4 provider: virtualbox mariadb: true 3、日常使用 全局访问 Homestead 有时候你想要在文件系统的任意位置运行 vagrant up 启动 Homestead0 码力 | 691 页 | 9.37 MB | 1 年前3 Laravel 5.3 中文文档bash init.sh 配置 Homestead 设置 Provider 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 55 Homestead.yaml 文 件 中 的 provider 键 表 示 使 用 哪 个 Vagrant 提 供 者 : virtualbox virtualbox 、 vmware_fushion 或者 vmware_workstation,你可以将其设置为自己喜欢的提供者: provider: virtualbox 配置共享文件夹 Homestead.yaml 文件中的 folders 属性列出了所有主机和 Homestead 虚拟机共享的文件夹,一 旦这些目录中的文件有了修改,将会在本地和 Homestead 虚拟机之间保持同步,如果有需要的 的替代品,所以在应用数据库配置中你 仍然可以使用 mysql 驱动: box: laravel/homestead ip: "192.168.20.20" memory: 2048 cpus: 4 provider: virtualbox mariadb: true 3、日常使用 全局访问 Homestead 有时候你想要在文件系统的任意位置运行 vagrant up 启动 Homestead0 码力 | 691 页 | 9.37 MB | 1 年前3
 Laravel 6.0 中文文档init.sh // Windows... init.bat 配置 Homestead 设置 Provider 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 60 Homestead.yaml 文件中的 provider 键表示使用哪个 Vagrant 提 供者:virtualbox、vmware_fushion、 vmware_workstation、 parallels 或 hyperv,你可以将其设置为自己选择的提供者,当然 对大部分人来说也没得选: provider: virtualbox 配置共享文件夹 Homestead.yaml 文件中的 folders 属性列出了所有主机和 Homestead 虚拟机共享的文件夹,一旦这些目录中的文件有了修 改,将会在本地和 Homestead make 以我的项目 laravel6 为例,生成的 Homestead.yaml 配置文件如 下: ip: 192.168.10.10 memory: 2048 cpus: 2 provider: virtualbox authorize: ~/.ssh/id_rsa.pub keys: - ~/.ssh/id_rsa folders: - map: ~/Docker/wwwroot/laravel60 码力 | 1442 页 | 14.66 MB | 1 年前3 Laravel 6.0 中文文档init.sh // Windows... init.bat 配置 Homestead 设置 Provider 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 60 Homestead.yaml 文件中的 provider 键表示使用哪个 Vagrant 提 供者:virtualbox、vmware_fushion、 vmware_workstation、 parallels 或 hyperv,你可以将其设置为自己选择的提供者,当然 对大部分人来说也没得选: provider: virtualbox 配置共享文件夹 Homestead.yaml 文件中的 folders 属性列出了所有主机和 Homestead 虚拟机共享的文件夹,一旦这些目录中的文件有了修 改,将会在本地和 Homestead make 以我的项目 laravel6 为例,生成的 Homestead.yaml 配置文件如 下: ip: 192.168.10.10 memory: 2048 cpus: 2 provider: virtualbox authorize: ~/.ssh/id_rsa.pub keys: - ~/.ssh/id_rsa folders: - map: ~/Docker/wwwroot/laravel60 码力 | 1442 页 | 14.66 MB | 1 年前3
 Laravel 5.2 中文文档Illuminate\Contracts\Auth\Authenticatable。 自定义驱动 如果你使用了 Auth::extend 方法自定义获取用户的方法,现在需要使 用 Auth::provider 来自定义用户提供者。一旦你自定义了提供者,就要在新 的 auth.php 配置文件中的 providers 数组中配置该提供者。 更多自定义认证提供者详情,请查看其对应文档。 本文档由 bash init.sh 配置 Homestead 设置 Provider Homestead.yaml 文件中的 provider 键表示使用哪个 Vagrant 提供者:virtualbox、 vmware_fushion 或者 vmware_workstation,你可以将其设置为自己喜欢的提供者: provider: virtualbox 配置共享文件夹 Homestead ,路由或者任何其它功能。 通过 Artisan 命令 make:provider 可以简单生成一个新的提供者: 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 72 php artisan make:provider RiakServiceProvider register 方法0 码力 | 377 页 | 4.56 MB | 1 年前3 Laravel 5.2 中文文档Illuminate\Contracts\Auth\Authenticatable。 自定义驱动 如果你使用了 Auth::extend 方法自定义获取用户的方法,现在需要使 用 Auth::provider 来自定义用户提供者。一旦你自定义了提供者,就要在新 的 auth.php 配置文件中的 providers 数组中配置该提供者。 更多自定义认证提供者详情,请查看其对应文档。 本文档由 bash init.sh 配置 Homestead 设置 Provider Homestead.yaml 文件中的 provider 键表示使用哪个 Vagrant 提供者:virtualbox、 vmware_fushion 或者 vmware_workstation,你可以将其设置为自己喜欢的提供者: provider: virtualbox 配置共享文件夹 Homestead ,路由或者任何其它功能。 通过 Artisan 命令 make:provider 可以简单生成一个新的提供者: 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 72 php artisan make:provider RiakServiceProvider register 方法0 码力 | 377 页 | 4.56 MB | 1 年前3
 CakePHP Cookbook Documentation 5.xto your Testcase classes. data providers have to be static If your testcases leverage the data provider feature of PHPUnit then you have to adjust your data providers to be static: public function myProvider(): enabled the following occurs: 1. The validator object is created. 2. The table and default validation provider are attached. 3. The named validation method is invoked. For example validationDefault. 4. The Model behaviors are available on the table provider. 2. The core Validation class is setup as the default provider. When a validation rule is created you can name the provider of that rule. For example, if your0 码力 | 1080 页 | 939.39 KB | 1 年前3 CakePHP Cookbook Documentation 5.xto your Testcase classes. data providers have to be static If your testcases leverage the data provider feature of PHPUnit then you have to adjust your data providers to be static: public function myProvider(): enabled the following occurs: 1. The validator object is created. 2. The table and default validation provider are attached. 3. The named validation method is invoked. For example validationDefault. 4. The Model behaviors are available on the table provider. 2. The core Validation class is setup as the default provider. When a validation rule is created you can name the provider of that rule. For example, if your0 码力 | 1080 页 | 939.39 KB | 1 年前3
 CakePHP Cookbook 4.x
Validator::setProvider() now raises an exception when a non-object, non- string provider name is used. Previously there would be no error, but the provider would also not work. View The $vars parameter of ViewBuilder::build() the DI container is marked as experimental, this upgrade could require you to upgrade your service provider definitions. Database Database mapping types can now implement Cake\Database\Type\ColumnSchemaAwareInterface indicate no further action is necessary. Due to this, the order in which you specify the authentication provider in authenticate config matters. If authenticator returns null, AuthComponent redirects user to0 码力 | 1249 页 | 1.04 MB | 1 年前3 CakePHP Cookbook 4.x
Validator::setProvider() now raises an exception when a non-object, non- string provider name is used. Previously there would be no error, but the provider would also not work. View The $vars parameter of ViewBuilder::build() the DI container is marked as experimental, this upgrade could require you to upgrade your service provider definitions. Database Database mapping types can now implement Cake\Database\Type\ColumnSchemaAwareInterface indicate no further action is necessary. Due to this, the order in which you specify the authentication provider in authenticate config matters. If authenticator returns null, AuthComponent redirects user to0 码力 | 1249 页 | 1.04 MB | 1 年前3
 CakePHP Cookbook 3.x
transport() messageId() domain() attachments() configTransport() profile() Cake\Validation\Validator provider() Cake\View\StringTemplateTrait templates() Cake\View\ViewBuilder templatePath() layoutPath() 'all', [ 'limit' => 5, 'order' => 'Articles.created DESC' ]); If you are using a table provider other than the built-in ORM you can link that table system into CakePHP’s controllers by connecting 'ElasticIndex'); Note The built-in ORM’s TableRegistry is connected by default as the ‘Table’ provider. Paginating a Model Cake\Controller\Controller::paginate() This method is used for paginating0 码力 | 1244 页 | 1.05 MB | 1 年前3 CakePHP Cookbook 3.x
transport() messageId() domain() attachments() configTransport() profile() Cake\Validation\Validator provider() Cake\View\StringTemplateTrait templates() Cake\View\ViewBuilder templatePath() layoutPath() 'all', [ 'limit' => 5, 'order' => 'Articles.created DESC' ]); If you are using a table provider other than the built-in ORM you can link that table system into CakePHP’s controllers by connecting 'ElasticIndex'); Note The built-in ORM’s TableRegistry is connected by default as the ‘Table’ provider. Paginating a Model Cake\Controller\Controller::paginate() This method is used for paginating0 码力 | 1244 页 | 1.05 MB | 1 年前3
 CakePHP Cookbook 3.x
10 • domain() • attachments() • configTransport() • profile() Cake\Validation\Validator • provider() Cake\View\StringTemplateTrait • templates() Cake\View\ViewBuilder • templatePath() • layoutPath() $this->Articles->find('all', [ 'limit' => 5, 'order' => 'Articles.created DESC' ]); If you are using a table provider other than the built-in ORM you can link that table system into CakePHP’s controllers by connecting 'ElasticIndex'); Note: The built-in ORM’s TableRegistry is connected by default as the ‘Table’ provider. Paginating a Model Cake\Controller\Controller::paginate() This method is used for paginating0 码力 | 967 页 | 2.80 MB | 1 年前3 CakePHP Cookbook 3.x
10 • domain() • attachments() • configTransport() • profile() Cake\Validation\Validator • provider() Cake\View\StringTemplateTrait • templates() Cake\View\ViewBuilder • templatePath() • layoutPath() $this->Articles->find('all', [ 'limit' => 5, 'order' => 'Articles.created DESC' ]); If you are using a table provider other than the built-in ORM you can link that table system into CakePHP’s controllers by connecting 'ElasticIndex'); Note: The built-in ORM’s TableRegistry is connected by default as the ‘Table’ provider. Paginating a Model Cake\Controller\Controller::paginate() This method is used for paginating0 码力 | 967 页 | 2.80 MB | 1 年前3
共 34 条
- 1
- 2
- 3
- 4














