Require this project in your composer.json file
"sensiolabs/security-checker": "dev-master"
Add the following line to app/start/artisan.php:
<?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(); |
#! /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 | |
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]); | |
}); |
#!/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 | |
} |
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', |
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'); |
var gulp = require('gulp'); | |
var sys = require('sys'); | |
var exec = require('child_process').exec; | |
var hold = false; | |
gulp.task('phpunit', function() { | |
exec('phpunit', function(error, stdout) { | |
sys.puts(stdout); | |
hold = false; | |
}); |
var gulp = require('gulp'); | |
var minifycss = require('gulp-minify-css'); | |
var autoprefixer = require('gulp-autoprefixer'); | |
var notify = require('gulp-notify'); | |
var sass = require('gulp-ruby-sass'); | |
gulp.task('css', function() { | |
return gulp.src('sass/main.sass') | |
.pipe(sass({ style: 'compressed' })) | |
.pipe(autoprefixer('last 15 version')) |
Setting up Sendy with Laravel | |
(there might be bugs, I striped out some parts of my code because what I have is more complicated then that, so, sorry if it's broken!) | |
-- | |
I would recommand creating a database for Sendy only. | |
Add Sendy's database into your database.php (1) | |
Create the Campaign model (2), and specify that you want to use Sendy's database (Campaigns are the only thing we really need to create, other things like creating lists can be done through Sendy interface, and there is a PHP library to add subscribers) | |
Now, it's time to install Sendy, usually somewhere like yourapp.com/sendy or yourapp.com/newsletter |