Require this project in your composer.json file
"sensiolabs/security-checker": "dev-master"
Add the following line to app/start/artisan.php:
var gulp = require('gulp'); | |
var gutil = require('gulp-util'); | |
var notify = require('gulp-notify'); | |
var sass = require('gulp-ruby-sass'); | |
var autoprefix = require('gulp-autoprefixer'); | |
var minifyCSS = require('gulp-minify-css') | |
var coffee = require('gulp-coffee'); | |
var exec = require('child_process').exec; | |
var sys = require('sys'); |
Create a .environment file in the root of your application and define your environment and gitignore it: | |
``` | |
return array( | |
'LARAVEL_ENV' => 'development', | |
'POSTGRESQL.HOST' => 'localhost', | |
'POSTGRESQL.DATABASE_NAME' => 'laraveldatabase', | |
'POSTGRESQL.DATABASE_USER' => 'laraveluser', |
#!/bin/sh | |
command=${1:-"help"} | |
SELENIUM_VERSION="2.39.0" | |
NODE_OPTIONS="-browser browserName=phantomjs" | |
download() { | |
[ -f selenium-server-standalone.jar ] || wget http://selenium.googlecode.com/files/selenium-server-standalone-${SELENIUM_VERSION}.jar -Oselenium-server-standalone.jar | |
} |
<?php | |
HTML::macro('clever_link', function($route, $text) { | |
$active = null; | |
if (Request::path() == $route) { | |
$active = 'active'; | |
} | |
return HTML::link($route, $text, ['class' => 'list-group-item ' . $active]); | |
}); |
#! /usr/bin/python | |
from sys import argv | |
from os.path import exists | |
from os import makedirs | |
from os import symlink | |
from os import system | |
import getopt | |
# |
<?php | |
use Illuminate\Support\Contracts\ArrayableInterface; | |
use Illuminate\Support\Contracts\JsonableInterface; | |
class Excel implements ArrayableInterface, JsonableInterface{ | |
protected $objPHPExcel; | |
public function __construct($file){ | |
if($file instanceof \SplFileInfo){ | |
$filename = $file->getRealPath(); |
xdebug.profiler_enable = 1 | |
xdebug.profiler_output_dir = "/vagrant/cachegrind" | |
xdebug.profiler_output_name = "callgrind.out.%t.%p" |
<?php | |
class ProjectController extends BaseController implements ProjectCreatorDelegate | |
{ | |
public function store() | |
{ | |
$creator = new ProjectCreator($this); | |
return $creator->create(Input::all()); | |
} |