Skip to content

Commit

Permalink
Transfer code from private repo
Browse files Browse the repository at this point in the history
  • Loading branch information
davetosh committed Feb 5, 2014
1 parent f4d6dec commit dd54224
Show file tree
Hide file tree
Showing 260 changed files with 57,876 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/bootstrap/compiled.php
/vendor
composer.phar
composer.lock
.DS_Store
Thumbs.db
3 changes: 3 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Contribution Guidelines

Please submit all issues and pull requests to the [laravel/framework](http://github.com/laravel/framework) repository!
73 changes: 73 additions & 0 deletions app/breadcrumbs.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<?php

/*
|--------------------------------------------------------------
| LRS breadcrumbs
|--------------------------------------------------------------
*/
Breadcrumbs::register('lrs', function($breadcrumbs) {
$breadcrumbs->push(Lang::get('lrs.list'), url('/lrs'));
});
Breadcrumbs::register('lrs.users', function($breadcrumbs, $lrs) {
$breadcrumbs->push(Lang::get('lrs.sidebar.users'), url('/lrs/' . $lrs->_id . '/users'));
});
Breadcrumbs::register('create', function($breadcrumbs) {
$breadcrumbs->parent('lrs');
$breadcrumbs->push(Lang::get('lrs.create'), url('/lrs'));
});
Breadcrumbs::register('editlrs', function($breadcrumbs, $lrs) {
$breadcrumbs->parent('lrs', $lrs);
$breadcrumbs->push(Lang::get('lrs.edit'), url('/lrs/' . $lrs->_id));
});
Breadcrumbs::register('lrs.invite', function($breadcrumbs, $lrs) {
$breadcrumbs->parent('lrs.users', $lrs);
$breadcrumbs->push(Lang::get('users.invite.invite'), url('/lrs/' . $lrs->_id . '/users'));
});

/*
|---------------------------------------------------------------
| Site breadcrumbs
|---------------------------------------------------------------
*/
Breadcrumbs::register('users', function($breadcrumbs) {
$breadcrumbs->push('Users', url('/site/users'));
});
Breadcrumbs::register('site.invite', function($breadcrumbs) {
$breadcrumbs->parent('users');
$breadcrumbs->push('Invite users', url('/site/invite'));
});
Breadcrumbs::register('settings', function($breadcrumbs) {
$breadcrumbs->push('Settings', url('/site/settings'));
});
Breadcrumbs::register('site.edit', function($breadcrumbs, $site) {
$breadcrumbs->parent('settings');
$breadcrumbs->push('Edit settings', url('/site/'. $site->_id . '/edit'));
});
/*
|---------------------------------------------------------------
| Statement breadcrumbs
|---------------------------------------------------------------
*/
Breadcrumbs::register('statement', function($breadcrumbs, $lrs) {
$breadcrumbs->push('Statements', url('/lrs/'.$lrs->_id.'/statements'));
});
Breadcrumbs::register('filter', function($breadcrumbs, $lrs) {
$breadcrumbs->parent('statement', $lrs);
$breadcrumbs->push(Lang::get('statements.filter'), url('/lrs/$lrs->_id/statements/generator'));
});
Breadcrumbs::register('generator', function($breadcrumbs, $lrs) {
$breadcrumbs->parent('statement', $lrs);
$breadcrumbs->push(Lang::get('statements.generator'), url('/lrs/$lrs->_id/statements/generator'));
});
Breadcrumbs::register('explorer', function($breadcrumbs, $lrs) {
$breadcrumbs->parent('statement', $lrs);
$breadcrumbs->push(Lang::get('statements.explorer'), url('/lrs/$lrs->_id/statements/generator'));
});
Breadcrumbs::register('analytics', function($breadcrumbs, $lrs) {
$breadcrumbs->parent('statement', $lrs);
$breadcrumbs->push(Lang::get('statements.analytics'), url('/lrs/$lrs->_id/statements/generator'));
});
Breadcrumbs::register('reporting', function($breadcrumbs, $lrs) {
$breadcrumbs->parent('statement', $lrs);
$breadcrumbs->push(Lang::get('statements.reporting'), url('/lrs/$lrs->_id/statements/generator'));
});
Empty file added app/commands/.gitkeep
Empty file.
184 changes: 184 additions & 0 deletions app/config/app.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
<?php

return array(

/*
|--------------------------------------------------------------------------
| Application Debug Mode
|--------------------------------------------------------------------------
|
| When your application is in debug mode, detailed error messages with
| stack traces will be shown on every error that occurs within your
| application. If disabled, a simple generic error page is shown.
|
*/

'debug' => true,

/*
|--------------------------------------------------------------------------
| Application URL
|--------------------------------------------------------------------------
|
| This URL is used by the console to properly generate URLs when using
| the Artisan command line tool. You should set this to the root of
| your application so that it is used when running Artisan tasks.
|
*/

'url' => 'http://localhost/lrs_new',

/*
|--------------------------------------------------------------------------
| Application Timezone
|--------------------------------------------------------------------------
|
| Here you may specify the default timezone for your application, which
| will be used by the PHP date and date-time functions. We have gone
| ahead and set this to a sensible default for you out of the box.
|
*/

'timezone' => 'UTC',

/*
|--------------------------------------------------------------------------
| Application Locale Configuration
|--------------------------------------------------------------------------
|
| The application locale determines the default locale that will be used
| by the translation service provider. You are free to set this value
| to any of the locales which will be supported by the application.
|
*/

'locale' => 'en',

/*
|--------------------------------------------------------------------------
| Encryption Key
|--------------------------------------------------------------------------
|
| This key is used by the Illuminate encrypter service and should be set
| to a random, 32 character string, otherwise these encrypted strings
| will not be safe. Please do this before deploying an application!
|
*/

'key' => '',

/*
|--------------------------------------------------------------------------
| Autoloaded Service Providers
|--------------------------------------------------------------------------
|
| The service providers listed here will be automatically loaded on the
| request to your application. Feel free to add your own services to
| this array to grant expanded functionality to your applications.
|
*/

'providers' => array(

'Illuminate\Foundation\Providers\ArtisanServiceProvider',
'Illuminate\Auth\AuthServiceProvider',
'Illuminate\Cache\CacheServiceProvider',
'Illuminate\Session\CommandsServiceProvider',
'Illuminate\Foundation\Providers\ConsoleSupportServiceProvider',
'Illuminate\Routing\ControllerServiceProvider',
'Illuminate\Cookie\CookieServiceProvider',
'Illuminate\Database\DatabaseServiceProvider',
'Illuminate\Encryption\EncryptionServiceProvider',
'Illuminate\Filesystem\FilesystemServiceProvider',
'Illuminate\Hashing\HashServiceProvider',
'Illuminate\Html\HtmlServiceProvider',
'Illuminate\Log\LogServiceProvider',
'Illuminate\Mail\MailServiceProvider',
'Illuminate\Database\MigrationServiceProvider',
'Illuminate\Pagination\PaginationServiceProvider',
'Illuminate\Queue\QueueServiceProvider',
'Illuminate\Redis\RedisServiceProvider',
'Illuminate\Remote\RemoteServiceProvider',
'Illuminate\Auth\Reminders\ReminderServiceProvider',
'Illuminate\Database\SeedServiceProvider',
'Illuminate\Session\SessionServiceProvider',
'Illuminate\Translation\TranslationServiceProvider',
'Illuminate\Validation\ValidationServiceProvider',
'Illuminate\View\ViewServiceProvider',
'Illuminate\Workbench\WorkbenchServiceProvider',
'Locker\Repository\RepositoryServiceProvider',
'Jenssegers\Mongodb\Auth\ReminderServiceProvider',
'Jenssegers\Mongodb\MongodbServiceProvider',
'DaveJamesMiller\Breadcrumbs\ServiceProvider',
'Barryvdh\Debugbar\ServiceProvider'

),

/*
|--------------------------------------------------------------------------
| Service Provider Manifest
|--------------------------------------------------------------------------
|
| The service provider manifest is used by Laravel to lazy load service
| providers which are not needed for each request, as well to keep a
| list of all of the services. Here, you may set its storage spot.
|
*/

'manifest' => storage_path().'/meta',

/*
|--------------------------------------------------------------------------
| Class Aliases
|--------------------------------------------------------------------------
|
| This array of class aliases will be registered when this application
| is started. However, feel free to register as many as you wish as
| the aliases are "lazy" loaded so they don't hinder performance.
|
*/

'aliases' => array(

'App' => 'Illuminate\Support\Facades\App',
'Artisan' => 'Illuminate\Support\Facades\Artisan',
'Auth' => 'Illuminate\Support\Facades\Auth',
'Blade' => 'Illuminate\Support\Facades\Blade',
'Cache' => 'Illuminate\Support\Facades\Cache',
'ClassLoader' => 'Illuminate\Support\ClassLoader',
'Config' => 'Illuminate\Support\Facades\Config',
'Controller' => 'Illuminate\Routing\Controller',
'Cookie' => 'Illuminate\Support\Facades\Cookie',
'Crypt' => 'Illuminate\Support\Facades\Crypt',
'DB' => 'Illuminate\Support\Facades\DB',
'Eloquent' => 'Illuminate\Database\Eloquent\Model',
'Event' => 'Illuminate\Support\Facades\Event',
'File' => 'Illuminate\Support\Facades\File',
'Form' => 'Illuminate\Support\Facades\Form',
'Hash' => 'Illuminate\Support\Facades\Hash',
'HTML' => 'Illuminate\Support\Facades\HTML',
'Input' => 'Illuminate\Support\Facades\Input',
'Lang' => 'Illuminate\Support\Facades\Lang',
'Log' => 'Illuminate\Support\Facades\Log',
'Mail' => 'Illuminate\Support\Facades\Mail',
'Paginator' => 'Illuminate\Support\Facades\Paginator',
'Password' => 'Illuminate\Support\Facades\Password',
'Queue' => 'Illuminate\Support\Facades\Queue',
'Redirect' => 'Illuminate\Support\Facades\Redirect',
'Redis' => 'Illuminate\Support\Facades\Redis',
'Request' => 'Illuminate\Support\Facades\Request',
'Response' => 'Illuminate\Support\Facades\Response',
'Route' => 'Illuminate\Support\Facades\Route',
'Schema' => 'Illuminate\Support\Facades\Schema',
'Seeder' => 'Illuminate\Database\Seeder',
'Session' => 'Illuminate\Support\Facades\Session',
'SSH' => 'Illuminate\Support\Facades\SSH',
'Str' => 'Illuminate\Support\Str',
'URL' => 'Illuminate\Support\Facades\URL',
'Validator' => 'Illuminate\Support\Facades\Validator',
'View' => 'Illuminate\Support\Facades\View',
'Breadcrumbs' => 'DaveJamesMiller\Breadcrumbs\Facade',

),

);
71 changes: 71 additions & 0 deletions app/config/auth.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<?php

return array(

/*
|--------------------------------------------------------------------------
| Default Authentication Driver
|--------------------------------------------------------------------------
|
| This option controls the authentication driver that will be utilized.
| This driver manages the retrieval and authentication of the users
| attempting to get access to protected areas of your application.
|
| Supported: "database", "eloquent"
|
*/

'driver' => 'eloquent',

/*
|--------------------------------------------------------------------------
| Authentication Model
|--------------------------------------------------------------------------
|
| When using the "Eloquent" authentication driver, we need to know which
| Eloquent model should be used to retrieve your users. Of course, it
| is often just the "User" model but you may use whatever you like.
|
*/

'model' => 'User',

/*
|--------------------------------------------------------------------------
| Authentication Table
|--------------------------------------------------------------------------
|
| When using the "Database" authentication driver, we need to know which
| table should be used to retrieve your users. We have chosen a basic
| default value but you may easily change it to any table you like.
|
*/

'table' => 'users',

/*
|--------------------------------------------------------------------------
| Password Reminder Settings
|--------------------------------------------------------------------------
|
| Here you may set the settings for password reminders, including a view
| that should be used as your password reminder e-mail. You will also
| be able to set the name of the table that holds the reset tokens.
|
| The "expire" time is the number of minutes that the reminder should be
| considered valid. This security feature keeps tokens short-lived so
| they have less time to be guessed. You may change this as needed.
|
*/

'reminder' => array(

'email' => 'emails.auth.reminder',

'table' => 'password_reminders',

'expire' => 60,

),

);
Loading

0 comments on commit dd54224

Please sign in to comment.