Skip to content

Instantly share code, notes, and snippets.

View isimmons's full-sized avatar
😁
Having fun learning to code

Ian isimmons

😁
Having fun learning to code
View GitHub Profile
@isimmons
isimmons / github.css
Created February 22, 2014 06:14 — forked from tuzz/github.css
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px;
color: #333;
}
@isimmons
isimmons / package.json
Last active August 29, 2015 13:56
Gulp package.json devDependencies for use with https://gist.github.com/isimmons/8701121
{
"devDependencies": {
"gulp-livereload": "~1.0.1",
"tiny-lr": "0.0.5",
"gulp-autoprefixer": "0.0.6",
"gulp-notify": "~0.4.3",
"gulp-util": "~2.2.14",
"gulp-ruby-sass": "~0.3.0",
"gulp-phpunit": "0.0.3",
"gulp": "~3.5.2",
@isimmons
isimmons / gulpfile.js
Last active August 29, 2015 13:55
gulpfile for gulp.js + Laravel: Compile sass/coffee, run phpunit tests, livereload css, js, and blade templates
/*
See dev dependencies https://gist.github.com/isimmons/8927890
Compiles sass to compressed css with autoprefixing
Compiles coffee to javascript
Livereloads on changes to coffee, sass, and blade templates
Runs PHPUnit tests
Watches sass, coffee, blade, and phpunit
Default tasks sass, coffee, phpunit, watch
*/
@isimmons
isimmons / gist:8202227
Last active July 26, 2024 16:15
Truncate tables with foreign key constraints in a Laravel seed file.

For the scenario, imagine posts has a foreign key user_id referencing users.id

public function up()
{
	Schema::create('posts', function(Blueprint $table) {
		$table->increments('id');
		$table->string('title');
		$table->text('body');
@isimmons
isimmons / gist:7963369
Created December 14, 2013 18:58
Laravel 4.1 Full change list from 'php artisan changes' as of Dec 14, 2003
-> Added new hasManyThrough relationship type.
-> Cloned Eloquent query builders now clone the underlying query builder.
-> Allow for passing of custom attributes into Validator::make as fourth parameter.
-> Allow comma delimited list of queues to be passed to queue:listen / queue:work to implement queue priority.
-> When new bindings are added to container, old aliases bound to that key will now be dropped.