Skip to content

Instantly share code, notes, and snippets.

kpbowler

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
kpbowler / default.conf
Created Jul 23, 2019
Nginx proxy pass
View default.conf
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 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('path.to.view.file.', compact('name'));
You can’t perform that action at this time.