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 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 class will be available in all views under the name $shareddata. View::share is typically called in a service provider, or perhaps in the constructor of a controller, so the data will be shared in views returned0 码力 | 216 页 | 1.58 MB | 1 年前3
《Slides Dev Web》 09. Services Web
orientée service2 : atome : service (traitement) : RPC (SOAP) 1https://en.wikipedia.org/wiki/Resource-oriented_architecture 2https://fr.wikipedia.org/wiki/Architecture_orient%C3%A9e_services 1 Service web développer des applis distribuées – Accès pour une application aux services offerts aux humains • Service web = webapp pour une autre application : – Webapps : pour humains, via un navigateur (HTTP + HTML) Consommer un service web ≠ Créer un service web SOAP • AVANT : Simple Object Access Protocol (obsolète) • Evolution de XML-RPC, format XML d’envoi de messages • Architecture Orientée Service (SOA) • Indépendant0 码力 | 6 页 | 47.90 KB | 1 年前3
《Slides Dev Web》 04. HTML 5slides1 Google 2011 ( sources2 ) – Obslolète : quota, web sql : Web Storage, application cache : Service Workers • API d’accès à la caméra3, avec du webGL4… • Bachelor NIFFF 2014 : une webapp mobile pour : howto • Portabilité : Progressive Enhancement17 • Rapidité : App Shell18, cache • Offline : Service Workers19 • Install Banner20 : HTTPS, WebApp Manifest, SW, 2 visits • Tests21 : Lighthouse en automatise 18https://developers.google.com/web/updates/2015/11/app-shell 19https://jakearchibald.com/2014/service-worker-first-draft/ 20https://developers.google.com/web/fundamentals/app-install-banners/ 21https://developers0 码力 | 3 页 | 29.58 KB | 1 年前3
Laravel 6.0 中文文档Laravel 中文学习资源:https://xueyuanjun.com 126 $this->app->extend(Service::class, function($service) { return new DecoratedService($service); }); 解析 make 方法 有很多方式可以从容器中解析对象,首先,你可以使用 make 方法, 该方法接收你想要解析的类名或接口名作为参数: Psr\Container\ContainerInterface; Route::get('/', function (ContainerInterface $contain er) { $service = $container->get('Service'); // }); 如果传入的标识不能被解析则会抛出异常。如果该标识未被绑定的话 抛出的异常会 是 Psr\Container\NotFoundExceptionInterface RiakServiceProvider extends ServiceProvider imp lements DeferrableProvider { /** * Register the service provider. * * @return void */ public function register() { $this->app->singleton(Connection::class0 码力 | 1442 页 | 14.66 MB | 1 年前3
The Laravel Handbook
type="submit" name="send" value="Submit"> Run php artisan serve if you stopped the service, and go to http://127.0.0.1:8000/newdog The style is not brilliant, but the form shows up: and we can trust that to work as expected. Forge does not provide a server to you. But it’s a service that connects to DigitalOcean and other VPS - virtual private server - providers like Hetzner,0 码力 | 111 页 | 14.25 MB | 1 年前3
Laravel 5.6 中文文档额外代码装饰或配置该服务。extend 方法接收一个闭包来返回修改后的服 务: $this->app->extend(Service::class, function($service) { return new DecoratedService($service); }); 解析 make 方法 有很多方式可以从容器中解析对象,首先,你可以使用 make 方法,该方法接收你想要解析的类名或接口名作为参数: Psr\Container\ContainerInterface; Route::get('/', function (ContainerInterface $container) { $service = $container->get('Service'); // }); 注:如果绑定到容器的唯一标识有冲突调用 get 方法会抛出异常。 本文档由 Laravel 学院提供 Laravel $query->bindings // $query->time }); } /** * Register the service provider. * * @return void */ public function register() { //0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 5.3 中文文档function __construct(UserRepository $users) { // Dependencies automatically resolved by service container... $this->users = $users; } /** * 绑定数据到视图. * 本文档由 $event->job // $event->exception }); } /** * Register the service provider. * * @return void */ public function register() { // $event->job->payload() }); } /** * Register the service provider. * 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源0 码力 | 691 页 | 9.37 MB | 1 年前3
《Slides Dev Web》 12. Risques applicatifs
sensible sur le réseau • 3 acteurs : – User Agent : Humain / Navigateur – Relying Party : Serveur (service auquel on veut s’authentifier) – Authenticator : Clef USB / Smartphone / OS + biométrie • Communication0 码力 | 12 页 | 474.37 KB | 1 年前3
Laravel 5.1 中文文档gitignore 文件,编辑文件 内容如下: *!.gitignore 该目录应该是可写的,用来存储临时优化文件如 compiled.php,routes.php,config.php 以及 service.json 新增 BroadcastServiceProvider 在配置文件 config/app.php 中,添加 Illuminate\Broadcasting\BroadcastServiceProvider function __construct(UserRepository $users) { // Dependencies automatically resolved by service contai ner... $this->users = $users; } /** * 绑定数据到视图. * * protected $description = 'Send drip e-mails to a user'; /** * The drip e-mail service. * * @var DripEmailer */ protected $drip; /** * 创建新的命令实例 本文档由0 码力 | 307 页 | 3.46 MB | 1 年前3
共 12 条
- 1
- 2













