Skip to content

Instantly share code, notes, and snippets.

Laracasts laracasts

Block or report user

Report or block laracasts

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ApiTester.php
use Faker\Factory as Faker;
abstract class ApiTester extends TestCase {
* @var int
protected $times = 1;
laracasts / ApiTester.php
Created Apr 9, 2014
Incremental APIs: Level 9 - Tests (Readable Ones!)
View ApiTester.php
use Faker\Factory as Faker;
class ApiTester extends TestCase {
* @var Faker
protected $fake;
laracasts / gulpfile.js
Last active Aug 29, 2019
Example Laravel-specific Gulpfile from
View gulpfile.js
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');
laracasts / test.php
Last active Jul 10, 2018
Transactions for functional/integration tests.
View test.php
class ExampleTest extends TestCase {
public function setUp()
View gist:7628742
@mixin linear-gradient($options...) {
background: -webkit-linear-gradient($details);
background: -moz-linear-gradient($details);
background: linear-gradient($details);
.foo {
@include linear-gradient(top, red, green);
You can’t perform that action at this time.