- Laravel Bootstrap https://github.com/davzie/laravel-bootstrap
- TypiCMS https://github.com/sdebacker/TypiCMS
- Bootstrap starter site https://github.com/andrewelkins/Laravel-4-Bootstrap-Starter-Site
- Pongo CMS v1 (uses Laravel 3) http://pongocms.com
- Wardrobe CMS (blogging) https://github.com/wardrobecms/wardrobe
- CodeSleeve https://github.com/CodeSleeve/platform
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Faker\Factory as Faker; | |
class ApiTester extends TestCase { | |
/** | |
* @var Faker | |
*/ | |
protected $fake; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module("app", [ "ngRoute" ]).run ($rootScope, UserService) -> | |
#Avoid $rootScope if you can. User and Session info is about all that should go on $rootScope. | |
#UserService.getUserByID(1).then (user)-> | |
# $rootScope.user = user |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@if (App::environment() == 'local') | |
@foreach (DB::getQueryLog() as $query) | |
<script>console.log(' {{ $query['query'] . ' (' . $query['time'] . ' secs)' }} ')</script> | |
@endforeach | |
@endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use GuzzleHttp\Message\Response; | |
class MailTestCase extends TestCase { | |
protected $mailcatcher; | |
function __construct() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace Larabook\Statuses; | |
use Larabook\Users\User; | |
class StatusRepository { | |
/** | |
* Get all statuses associated with a user. | |
* | |
* @param User $user |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var phpspec = require('gulp-phpspec'); | |
var run = require('gulp-run'); | |
var notify = require('gulp-notify'); | |
gulp.task('test', function() { | |
gulp.src('spec/**/*.php') | |
.pipe(run('clear')) | |
.pipe(phpspec('', { notify: true })) | |
.on('error', notify.onError({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
showMore() Adds more models to the first page of a pageable collection. | |
It does this by resetting the collection to the current collection plus a number of models | |
from fullCollection, and increases the page size to the number of currently-visible models. | |
*/ | |
Backbone.ShowMoreCollection = Backbone.PageableCollection.extend({ | |
showMore: function(num) { | |
var num = num || 10; | |
var state = this.state; | |
var pageNum = state.currentPage; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (C) 2014 [email protected] | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace MyApp\Providers; | |
use Exception; | |
use Cartalyst\Sentry\Sentry; | |
use Cartalyst\Sentry\Users\UserInterface; | |
use Tymon\JWTAuth\Providers\Auth\AuthInterface; | |
class SentryAuthAdapter implements AuthInterface | |
{ | |
/** |