Skip to content

Instantly share code, notes, and snippets.

View morrislaptop's full-sized avatar

Craig Morris morrislaptop

View GitHub Profile
@if ( Config::get('app.debug') )
<link rel="stylesheet" href="bower_components/dropzone/dist/min/dropzone.min.css" />
<link rel="stylesheet" href="css/app.css" />
@else
<link rel="stylesheet" href="{{ elixir("css/all.css") }}">
@endif
<!-- bower:css -->
<link rel="stylesheet" href="bower_components/dropzone/dist/min/dropzone.min.css" />
<link rel="stylesheet" href="css/app.css" />
<!-- endbower -->
elixir(function(imix) {
// Workflow stuff
imix.sass('app.scss')
.coffee()
.phpUnit()
.wiredep();
// Build stuff
if (elixir.config.production) {
<?php
'mysql' => [
'driver' => 'mysql',
'host' => env('DB_HOST', 'homestead' == gethostname() ? 'localhost' : '127.0.0.1'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'port' => env('DB_PORT', 'homestead' == gethostname() ? null : 33060),
'charset' => 'utf8',
<?php namespace App\Bridges;
use ReflectionClass;
trait LaravelFivePackageTrait {
public function boot()
{
$this->loadViewsFrom($this->namespace, $this->guessPackagePath() . '/views');
$this->loadTranslationsFrom($this->namespace, $this->guessPackagePath() . '/lang');
<?php namespace FestivalPlaylists\Bridges;
use Laracasts\Flash\FlashServiceProvider as BaseFlashServiceProvider;
class FlashServiceProvider extends BaseFlashServiceProvider {
var $namespace = 'flash';
var $vendor = 'laracasts';
use LaravelFivePackageTrait;
faker.seed(100);
var frozen = 153665219; // Grab this value from a previous build
var seed = 1 ? frozen : (new Date).getTime() % 1000000000; // change 1 to 0 to switch between random or frozen
console.log("This seed is " + seed);
faker.seed(seed);
<li>
<a href="#">
<img src="{{image.image(280, 160, true)}}" width="280" height="160" />
<div class="caption">
<i class="pe-7s-{{helpers.randomize(['news-paper', 'global', 'science'])}} pe-3x"></i>
<div>
<strong>{{name.findName}}</strong><br />
<span>{{random.number(31)}} {{date.month}} {{random.number({min: 2000, max: 2015})}}</span>
</div>
</div>
<div class="news-center-articles">
<ul>
@@include('./partials/article-thumb.html')
@@include('./partials/article-thumb.html')
@@include('./partials/article-thumb.html')
@@include('./partials/article-thumb.html')
@@include('./partials/article-thumb.html')
@@include('./partials/article-thumb.html')
</ul>
<a class="news-center-read-more" href="#">Read More</a>