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
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
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: 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, AWS, Vultr and more and it0 码力 | 111 页 | 14.25 MB | 1 年前3
Laravel 6.0 中文文档Python RabbitMQ Solr Webdriver & Laravel Dusk 相关工具 安装 & 设置 首次安装 在使用 Homestead 之前,需要先安装 Virtual Box、VMWare、 Parallels 或 Hyper-V (四选一,我们通常选择 VirtualBox,因为只 有它是免费的)以及 Vagrant,所有这些软件包都为常用操作系统提 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 58 vagrant box add laravel/homestead ~/Downloads/virtual box.box 注:如果下载速度太慢,你还可以从这里下载相应版本的 Homestead 盒子:Laravel 学院提供的相关资源下载。 运行上述命令有可能报错: Check your Homestead Laravel 中文学习资源:https://xueyuanjun.com 126 $this->app->extend(Service::class, function($service) { return new DecoratedService($service); }); 解析 make 方法 有很多方式可以从容器中解析对象,首先,你可以使用 make 方法, 该方法接收你想要解析的类名或接口名作为参数:0 码力 | 1442 页 | 14.66 MB | 1 年前3
Laravel 5.1 中文文档gitignore 文件,编辑文件 内容如下: *!.gitignore 该目录应该是可写的,用来存储临时优化文件如 compiled.php,routes.php,config.php 以及 service.json 新增 BroadcastServiceProvider 在配置文件 config/app.php 中,添加 Illuminate\Broadcasting\BroadcastServiceProvider Beanstalkd Laravel Envoy Blackfire Profiler 2、安装 & 设置 2.1 首次安装 在启用 Homestead 环境之前,需要先安装 Virtual Box 或者 VMWare 和 Vagrant,所有这些 软件包都会常用操作系统提供了一个便于使用的可视化安装器。 2.1.1 安装 Homestead Vagrant 盒子 VirtualBox/VMWare function __construct(UserRepository $users) { // Dependencies automatically resolved by service contai ner... $this->users = $users; } /** * 绑定数据到视图. * *0 码力 | 307 页 | 3.46 MB | 1 年前3
《Slides Dev Web》 03. Laravel
dans le PATH : $ laravel new raidit $ cd raidit • Racine du site dans /public (lien symbolique ou virtual host) Le dépôt • Initialiser le dépôt $cd raidit $git init $git add . $git commit -m "Install git $git push --set-upstream origin master • Penser à ajouter sa clé publique à Github Apache • Virtual hosts – http-vhosts.conf (activer dans httpd.conf) – Un par site – Pointer dans /public • AllowOverride0 码力 | 8 页 | 224.34 KB | 1 年前3
Laravel 5.2 中文文档学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 16 2、安装 & 设置 首次安装 在使用 Homestead 之前,需要先安装 Virtual Box/VMWare 和 Vagrant,所有这些软件包 都为常用操作系统提供了一个便于使用的可视化安装器。 安装 Homestead Vagrant 盒子 VirtualBox/VMWare function __construct(UserRepository $users) { // Dependencies automatically resolved by service container... $this->users = $users; } /** * 绑定数据到视图. * 本文档由 protected $description = 'Send drip e-mails to a user'; /** * The drip e-mail service. * * @var DripEmailer */ protected $drip; /** * 创建新的命令实例0 码力 | 377 页 | 4.56 MB | 1 年前3
Laravel 5.3 中文文档and Gulp) Redis Memcached Beanstalkd 2、安装 & 设置 首次安装 在使用 Homestead 之前,需要先安装 Virtual Box 5.x/VMWare 和 Vagrant,所有这些软件包都为 常用操作系统提供了一个便于使用的可视化安装器。 本文档由 Laravel 学院(LaravelAcademy.org)提供 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() {0 码力 | 691 页 | 9.37 MB | 1 年前3
Laravel 5.6 中文文档Beanstalkd Mailhog Elasticsearch(可选) ngrok 安装 & 设置 首次安装 在使用 Homestead 之前,需要先安装 Virtual Box 5.2、VMWare、Parallels 或 Hyper-V (四选一,我们通常选择 VirtualBox,因为只有它是免费的) 以及 Vagrant,所有这些软件包都为常用操作系统提 额外代码装饰或配置该服务。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 学院提供 Laravel0 码力 | 377 页 | 14.56 MB | 1 年前3
《Slides Dev Web》 11. HTTPS
autosigné) • Obtenir le certificat et la clé privée du serveur • Configurer httpd. Pour Apache : – virtual host (port 443), ssl.conf, (ports.conf) • Création de l’arborescence sécurisée • Démarrage serveur0 码力 | 6 页 | 109.17 KB | 1 年前3
共 14 条
- 1
- 2













