Laravel 5.0 Documentation
Composers 5. Architecture Foundations i. Service Providers i. Introduction ii. Basic Provider Example iii. Registering Providers iv. Deferred Providers ii. Service Container i. Introduction ii. Basic Facade Class Reference v. Request Lifecycle i. Introduction ii. Lifecycle Overview iii. Focus On Service Providers vi. Application Structure i. Introduction ii. The Root Directory iii. The App Directory These service providers provide various bootstrapping functions to your application, such as error handling, logging, route loading, and more. Of course, you are free to create additional service providers0 码力 | 242 页 | 1.44 MB | 1 年前3
Learning LaravelImplementation 166 Binding an Instance 166 Binding a Singleton to the Service Container 166 Introduction 167 Using the Service Container as a Dependency Injection Container 167 Chapter 57: Socialite make: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 Admin0 码力 | 216 页 | 1.58 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(): ServerRequest is available via DI. So you can get it from container or use it as a dependency for your service. Some of the duties ServerRequest performs include: Processing the GET, POST, and FILES arrays address. Trusting Proxy Headers If your application is behind a load balancer or running on a cloud service, you will often get the load balancer host, port and scheme in your requests. Often load balancers0 码力 | 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() While 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 Use Response::isNotModified() instead. BaseApplication::handle() now adds the $request into the service container all the time. HttpsEnforcerMiddleware now has an hsts option that allows you to configure0 码力 | 1249 页 | 1.04 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.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
CakePHP Cookbook Documentation 5.xDocumentation, Release 5.x 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(): ServerRequest is available via DI. So you can get it from container or use it as a dependency for your service. Some of the duties ServerRequest performs include: • Processing the GET, POST, and FILES arrays 5.x Trusting Proxy Headers If your application is behind a load balancer or running on a cloud service, you will often get the load balancer host, port and scheme in your requests. Often load balancers0 码力 | 848 页 | 2.53 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() address. Trusting Proxy Headers If your application is behind a load balancer or running on a cloud service, you will often get the load balancer host, port and scheme in your requests. Often load balancers '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 connecting0 码力 | 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() address. Trusting Proxy Headers If your application is behind a load balancer or running on a cloud service, you will often get the load balancer host, port and scheme in your requests. Often load balancers $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 connecting0 码力 | 967 页 | 2.80 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() While 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\Colum Use Response::isNotModified() instead. • BaseApplication::handle() now adds the $request into the service container all the time. • HttpsEnforcerMiddleware now has an hsts option that allows you to configure0 码力 | 967 页 | 2.88 MB | 1 年前3
共 76 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8













