Skip to content

Instantly share code, notes, and snippets.

@hkan
hkan / README.md
Last active August 29, 2015 14:02
Filter Out Empty Strings of Array

Filter Empty Values

Returns a new array without the empty strings.

Usage

var myArray = [ "hakan", "", "0", 0, false ];

myArray = myArray.filterEmpty();
@hkan
hkan / MigrateAutoCommand.php
Last active December 30, 2015 15:39
Laravel Artisan Auto Migration Command
<?php
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
class InstallCommand extends Command {
/**
* The console command name.