Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block kpbowler

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
kpbowler / default.conf
Created Jul 23, 2019
Nginx proxy pass
View default.conf
server {
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 / TestController.php
Last active Oct 5, 2018
Getting data from model into view
View TestController.php
<?php namespace App\Http\Controllers;
class TestController extends Controller {
public function show($id) {
$contact = Contact::find($id);
$name = $contact->fullname;
return view('', compact('name'));
You can’t perform that action at this time.