This file contains 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('angularAuth', ['ngCookies']) | |
.config([ | |
'$routeProvider', | |
'$locationProvider', | |
'$httpProvider', | |
function ($routeProvider, $locationProvider, $httpProvider) { | |
// ... | |
var interceptor = ['$location', '$q', function($location, $q) { |
This file contains 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 L4Extras; | |
use Illuminate\Support\Facades\Route; | |
class RouteHelper { | |
/** | |
* This function creates all your resource routes (index, create, store, show, edit, update, destroy) | |
* for you automatically like a Route::resource() would | |
* $resourceGenerator('users', 'UserController', 'resource.users') |