Open ssl.conf in a text editor.
Edit the domain(s) listed under the [alt_names] section so that they match the local domain name you want to use for your project, e.g.
DNS.1 = my-project.dev
Additional FQDNs can be added if required:
| server { | |
| listen 80; | |
| server_name localhost; | |
| root /Users/YOUR_USERNAME/Sites; | |
| access_log /Library/Logs/default.access.log main; | |
| location / { | |
| include /usr/local/etc/nginx/conf.d/php-fpm; | |
| } |
| export class EventBus { | |
| /** | |
| * @private | |
| * @returns {{}} | |
| */ | |
| static _allListeners() { | |
| const self = EventBus; | |
| if(self.__listeners === undefined) { | |
| self.__listeners = {}; |
Laravel has a powerful Inversion of Control (IoC) / Dependency Injection (DI) Container. Unfortunately the official documentation doesn't cover all of the available functionality, so I decided to experiment with it and document it for myself. The following is based on Laravel 5.4.26 - other versions may vary.
I won't attempt to explain the principles behind DI / IoC here - if you're not familiar with them you might want to read What is Dependency Injection? by Fabien Potencier (creator of the Symfony framework).
| #!/bin/bash | |
| youtube-dl --verbose --yes-playlist --format 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best' $1 |
| <?php | |
| namespace Domain\Contracts\Entities\Product; | |
| use Money\Money as MoneyValue; | |
| use Domain\Entities\Money\Money as MoneyEntity; | |
| /** | |
| * Имеет стоимость | |
| */ |
| services: | |
| web: | |
| image: 'redmine:passenger' | |
| container_name: 'redmine_web' | |
| restart: always | |
| ports: | |
| - '3000:3000' | |
| links: | |
| - postgres | |
| environment: |