Skip to content

Instantly share code, notes, and snippets.

@wells
wells / mydomain.com
Created September 17, 2016 17:12
Example nginx config for Laravel
server {
listen 80;
server_name mydomain.com;
root "/srv/www/mydomain.com/public";
index index.html index.htm index.php;
charset utf-8;
location / {
try_files $uri d$uri/ /index.php?$query_string;
@wells
wells / AppServiceProvider.php
Created April 6, 2016 17:05
API Versioning in Laravel AppServiceProvider
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.