Skip to content

Instantly share code, notes, and snippets.

View ethanstenis's full-sized avatar

Ethan Stenis ethanstenis

View GitHub Profile
@ethanstenis
ethanstenis / Postman POST PUT Requests.txt
Last active September 13, 2023 01:11
How to make Postman work with POST/PUT requests in Laravel...
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 February 28, 2016 19:21
ACA full Stack Brello App Schema
<?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 February 21, 2016 21:31
This is the javascript code for the Invodo Test
Invodo.init({
pageName: "Implementation Demo",
pageType: "other",
onload: function() {
window.onresize = function() {
videoResize();
};
videoResize();
@ethanstenis
ethanstenis / Invodo-Test.html
Last active February 21, 2016 21:29
This is the html code for the Invodo Test
<!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 February 5, 2016 01:21
ACA Full Stack Bitter App - Database Design Schema
<?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 February 5, 2016 01:17
ACA Full Stack Bocket App - Database Design Schema
<?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=""/>