Skip to content

Instantly share code, notes, and snippets.

View kpbowler's full-sized avatar

kpbowler

View GitHub Profile
@kpbowler
kpbowler / default.conf
Created July 23, 2019 19:22
Nginx proxy pass
server {
server_name example.com www.example.com;
root /path/to/codebase;
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
charset utf-8;
location / {
proxy_set_header X-Real-IP $remote_addr;
@kpbowler
kpbowler / TestController.php
Last active October 5, 2018 09:38
Getting data from model into view
<?php namespace App\Http\Controllers;
class TestController extends Controller {
public function show($id) {
$contact = Contact::find($id);
$name = $contact->fullname;
return view('path.to.view.file.', compact('name'));