Skip to content

Instantly share code, notes, and snippets.

Avatar

Ethan Stenis ethanstenis

View GitHub Profile
@ethanstenis
ethanstenis / Postman POST PUT Requests.txt
Last active Sep 7, 2020
How to make Postman work with POST/PUT requests in Laravel...
View Postman POST PUT Requests.txt
To make Postman work with POST/PUT requests...
https://laravel.com/docs/5.2/routing#csrf-x-csrf-token
In addition to checking for the CSRF token as a POST parameter, the Laravel VerifyCsrfToken middleware will also check for the X-CSRF-TOKEN request header.
1. Store the token in a "meta" tag at the top of your root view file (layouts/app.blade.php)...
<meta name="csrf-token" content="{{ csrf_token() }}">
** If using jQuery, you can now instruct it to include the token in all request headers.
$.ajaxSetup({
@ethanstenis
ethanstenis / Brello.xml
Last active Feb 28, 2016
ACA full Stack Brello App Schema
View Brello.xml
<?xml version="1.0" encoding="utf-8" ?>
<!-- SQL XML created by WWW SQL Designer, https://github.com/ondras/wwwsqldesigner/ -->
<!-- Active URL: http://ondras.zarovi.cz/sql/demo/ -->
<sql>
<datatypes db="mysql">
<group label="Numeric" color="rgb(238,238,170)">
<type label="Integer" length="0" sql="INTEGER" quote=""/>
<type label="TINYINT" length="0" sql="TINYINT" quote=""/>
<type label="SMALLINT" length="0" sql="SMALLINT" quote=""/>
<type label="MEDIUMINT" length="0" sql="MEDIUMINT" quote=""/>
@ethanstenis
ethanstenis / Invodo-Test.js
Last active Feb 21, 2016
This is the javascript code for the Invodo Test
View Invodo-Test.js
Invodo.init({
pageName: "Implementation Demo",
pageType: "other",
onload: function() {
window.onresize = function() {
videoResize();
};
videoResize();
@ethanstenis
ethanstenis / Invodo-Test.html
Last active Feb 21, 2016
This is the html code for the Invodo Test
View Invodo-Test.html
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Invodo Implementation Test">
<meta charset="utf-8">
<title>Invodo Implementation Test</title>
<script type="text/javascript" src="//e.invodo.com/4.0/s/developer.invodo.com.js"></script>
</head>
@ethanstenis
ethanstenis / bitter.xml
Last active Feb 5, 2016
ACA Full Stack Bitter App - Database Design Schema
View bitter.xml
<?xml version="1.0" encoding="utf-8" ?>
<!-- SQL XML created by WWW SQL Designer, https://github.com/ondras/wwwsqldesigner/ -->
<!-- Active URL: http://ondras.zarovi.cz/sql/demo/ -->
<sql>
<datatypes db="mysql">
<group label="Numeric" color="rgb(238,238,170)">
<type label="Integer" length="0" sql="INTEGER" quote=""/>
<type label="TINYINT" length="0" sql="TINYINT" quote=""/>
<type label="SMALLINT" length="0" sql="SMALLINT" quote=""/>
<type label="MEDIUMINT" length="0" sql="MEDIUMINT" quote=""/>
@ethanstenis
ethanstenis / bocket.xml
Last active Feb 5, 2016
ACA Full Stack Bocket App - Database Design Schema
View bocket.xml
<?xml version="1.0" encoding="utf-8" ?>
<!-- SQL XML created by WWW SQL Designer, https://github.com/ondras/wwwsqldesigner/ -->
<!-- Active URL: http://ondras.zarovi.cz/sql/demo/ -->
<sql>
<datatypes db="mysql">
<group label="Numeric" color="rgb(238,238,170)">
<type label="Integer" length="0" sql="INTEGER" quote=""/>
<type label="TINYINT" length="0" sql="TINYINT" quote=""/>
<type label="SMALLINT" length="0" sql="SMALLINT" quote=""/>
<type label="MEDIUMINT" length="0" sql="MEDIUMINT" quote=""/>