This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Database\Migrations\Migration; | |
class CreateCouponsTable extends Migration | |
{ | |
public function up() | |
{ | |
Schema::create('coupons', function (Blueprint $table) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @author Martin Dilling-Hansen <[email protected]> | |
* @date 2015-01-12 | |
*/ | |
interface hasWords | |
{ | |
/** | |
* Get an flat array of words. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace Validators\ExtendedValidator; | |
use Illuminate\Validation\Validator; | |
/** | |
* Extending Laravels validator to support some extra validation rules. | |
* | |
* http://stackoverflow.com/a/26537606 | |
* | |
* @author Martin Dilling-Hansen <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# --------------------------------------- | |
# Virtual Machine Setup | |
# --------------------------------------- | |
# Adding multiverse sources. | |
cat > /etc/apt/sources.list.d/multiverse.list << EOF | |
deb http://archive.ubuntu.com/ubuntu trusty multiverse | |
deb http://archive.ubuntu.com/ubuntu trusty-updates multiverse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"theme": "earthsong.sublime-theme", | |
"color_scheme": "Packages/User/peel (SL).tmTheme", | |
"always_show_minimap_viewport": true, | |
"bold_folder_labels": true, | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": true, | |
"font_size": 9, | |
"highlight_line": true, | |
"ignored_packages": ["Vintage"], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sublime Text Packages: | |
DocBlockr | |
Emmet | |
Gist | |
Highlighter | |
BracketHighlighter | |
SublimeCodeIntel | |
SublimeLinter | |
Theme - Spacegray |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
session_start(); | |
require_once('config.php'); | |
require_once('db.class.php'); | |
// New instance of the db class | |
$db = new db(DB_NAME, DB_HOST, DB_USER, DB_PASSWORD); | |
// If nothing send by _POST, redirect to index | |
if ( ! count($_POST) > 0) |
NewerOlder