🏡 index : ~doyle/zpan.git

author Jordan Doyle <jordan@doyle.wf> 2016-06-18 12:00:07.0 +00:00:00
committer Jordan Doyle <jordan@doyle.wf> 2016-06-18 12:00:07.0 +00:00:00
commit
2a707f13330779e6e927ecc2e75acc0810133f93 [patch]
tree
31e2d5d7b255ae3e3de7ba6b832b866e3e236f92
download
2a707f13330779e6e927ecc2e75acc0810133f93.tar.gz

Initial commit



Diff

 .babelrc                                                               |    3 +-
 .env.example                                                           |   44 +-
 .gitattributes                                                         |    3 +-
 .gitignore                                                             |   12 +-
 app/Console/Commands/Inspire.php                                       |   33 +-
 app/Console/Kernel.php                                                 |   30 +-
 app/Events/Event.php                                                   |    8 +-
 app/Exceptions/Handler.php                                             |   50 +-
 app/Http/Controllers/Admin/ConnectionInfoController.php                |   56 +-
 app/Http/Controllers/Auth/AuthController.php                           |   58 +-
 app/Http/Controllers/Controller.php                                    |   14 +-
 app/Http/Controllers/DJ/ConnectionInfoController.php                   |   27 +-
 app/Http/Controllers/DJ/DJSaysController.php                           |   65 +-
 app/Http/Controllers/DJ/RequestController.php                          |   62 +-
 app/Http/Controllers/DJ/TimetableController.php                        |  156 +-
 app/Http/Controllers/Event/TimetableController.php                     |  211 +-
 app/Http/Controllers/HomeController.php                                |   18 +-
 app/Http/Controllers/Management/EventsTimetableController.php          |  100 +-
 app/Http/Controllers/StatsController.php                               |   66 +-
 app/Http/Kernel.php                                                    |   56 +-
 app/Http/Middleware/Authenticate.php                                   |   38 +-
 app/Http/Middleware/EncryptCookies.php                                 |   17 +-
 app/Http/Middleware/IsGroup.php                                        |   59 +-
 app/Http/Middleware/RedirectIfAuthenticated.php                        |   26 +-
 app/Http/Middleware/VerifyCsrfToken.php                                |   17 +-
 app/Http/Requests/Request.php                                          |   10 +-
 app/Http/routes.php                                                    |  107 +-
 app/Jobs/Job.php                                                       |   21 +-
 app/Listeners/.gitkeep                                                 |    1 +-
 app/MaterialPresenter.php                                              |   69 +-
 app/Models/ConnectionInfo.php                                          |   32 +-
 app/Models/DJSays.php                                                  |   30 +-
 app/Models/Event.php                                                   |   61 +-
 app/Models/EventType.php                                               |   27 +-
 app/Models/Group.php                                                   |   86 +-
 app/Models/Request.php                                                 |   32 +-
 app/Models/RequestBan.php                                              |   20 +-
 app/Models/Timetable.php                                               |   47 +-
 app/Models/Token.php                                                   |   40 +-
 app/Models/User.php                                                    |  192 +-
 app/Policies/.gitkeep                                                  |    1 +-
 app/Providers/AppServiceProvider.php                                   |   33 +-
 app/Providers/AuthServiceProvider.php                                  |   35 +-
 app/Providers/EventServiceProvider.php                                 |   33 +-
 app/Providers/RouteServiceProvider.php                                 |   61 +-
 app/Providers/VbulletinUserProvider.php                                |   74 +-
 app/helpers.php                                                        |    5 +-
 artisan                                                                |   51 +-
 bootstrap/app.php                                                      |   55 +-
 bootstrap/autoload.php                                                 |   34 +-
 bootstrap/cache/.gitignore                                             |    2 +-
 bower.json                                                             |   28 +-
 composer.json                                                          |   62 +-
 composer.lock                                                          | 4023 +++++++-
 config/app.php                                                         |  216 +-
 config/auth.php                                                        |  107 +-
 config/broadcasting.php                                                |   52 +-
 config/cache.php                                                       |   81 +-
 config/compile.php                                                     |   35 +-
 config/database.php                                                    |  134 +-
 config/debugbar.php                                                    |  170 +-
 config/filesystems.php                                                 |   67 +-
 config/ide-helper.php                                                  |  119 +-
 config/laravel-gettext.php                                             |  115 +-
 config/mail.php                                                        |  112 +-
 config/pusher.php                                                      |   55 +-
 config/queue.php                                                       |   85 +-
 config/services.php                                                    |   42 +-
 config/session.php                                                     |  166 +-
 config/view.php                                                        |   33 +-
 database/.gitignore                                                    |    1 +-
 database/factories/ModelFactory.php                                    |    1 +-
 database/migrations/.gitkeep                                           |    1 +-
 database/migrations/2014_10_12_000000_create_users_tokens_table.php    |   31 +-
 database/migrations/2016_06_09_131012_create_dj_says_table.php         |   32 +-
 database/migrations/2016_06_09_153843_create_connection_info_table.php |   34 +-
 database/migrations/2016_06_10_233839_create_timetables_table.php      |   36 +-
 database/migrations/2016_06_10_234426_create_sessions_table.php        |   34 +-
 database/migrations/2016_06_11_102100_create_requests_table.php        |   34 +-
 database/migrations/2016_06_11_112217_create_request_bans_table.php    |   32 +-
 database/migrations/2016_06_12_161652_create_event_types_table.php     |   32 +-
 database/migrations/2016_06_16_192959_create_events_table.php          |   41 +-
 database/seeds/.gitkeep                                                |    1 +-
 database/seeds/DatabaseSeeder.php                                      |   16 +-
 gulpfile.babel.js                                                      |   21 +-
 package.json                                                           |   55 +-
 phpunit.xml                                                            |   30 +-
 readme.md                                                              |   27 +-
 resources/assets/js/ajax.js                                            |   43 +-
 resources/assets/js/main.js                                            |   11 +-
 resources/assets/js/push-notifications.js                              |   37 +-
 resources/assets/sass/_card.sass                                       |   21 +-
 resources/assets/sass/_drawer.sass                                     |   13 +-
 resources/assets/sass/_login.sass                                      |    5 +-
 resources/assets/sass/_misc.sass                                       |   72 +-
 resources/assets/sass/_navigation.sass                                 |   26 +-
 resources/assets/sass/app.sass                                         |   12 +-
 resources/lang/en/auth.php                                             |   19 +-
 resources/lang/en/pagination.php                                       |   19 +-
 resources/lang/en/passwords.php                                        |   22 +-
 resources/lang/en/validation.php                                       |  114 +-
 resources/lang/i18n/en_GB/LC_MESSAGES/messages.mo                      | Bin 0 -> 818 bytes
 resources/lang/i18n/en_GB/LC_MESSAGES/messages.po                      |   23 +-
 resources/views/admin/connection-info.blade.php                        |   50 +-
 resources/views/auth/login.blade.php                                   |   52 +-
 resources/views/dj/connection-info.blade.php                           |   33 +-
 resources/views/dj/dj-says.blade.php                                   |   35 +-
 resources/views/dj/requests.blade.php                                  |   41 +-
 resources/views/dj/timetable.blade.php                                 |   45 +-
 resources/views/errors/503.blade.php                                   |   47 +-
 resources/views/events/book-slot.blade.php                             |   56 +-
 resources/views/events/timetable.blade.php                             |   49 +-
 resources/views/home.blade.php                                         |   13 +-
 resources/views/layouts/ajax-main.blade.php                            |    2 +-
 resources/views/layouts/head.blade.php                                 |   10 +-
 resources/views/layouts/main.blade.php                                 |   38 +-
 resources/views/layouts/message.blade.php                              |    5 +-
 resources/views/layouts/nav.blade.php                                  |   89 +-
 resources/views/management/events-timetable.blade.php                  |   50 +-
 resources/views/vendor/.gitkeep                                        |    1 +-
 server.php                                                             |   21 +-
 tests/ExampleTest.php                                                  |   19 +-
 tests/TestCase.php                                                     |   25 +-
 123 files changed, 9667 insertions(+)

diff --git a/.babelrc b/.babelrc
new file mode 100644
index 0000000..c13c5f6
--- /dev/null
+++ b/.babelrc
@@ -0,0 +1,3 @@
{
  "presets": ["es2015"]
}
diff --git a/.env.example b/.env.example
new file mode 100644
index 0000000..48ded41
--- /dev/null
+++ b/.env.example
@@ -0,0 +1,44 @@
APP_ENV=local
APP_KEY=SomeRandomString
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://localhost

LASTFM_API_KEY=
LASTFM_SECRET=
LASTFM_TOKEN=

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret

FORUM_CONNECTION=mysql
FORUM_HOST=127.0.0.1
FORUM_PORT=3306
FORUM_DATABASE=homestead
FORUM_USERNAME=homestead
FORUM_PASSWORD=secret

CACHE_DRIVER=file
SESSION_DRIVER=database
QUEUE_DRIVER=sync

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

BROADCAST_DRIVER=pusher
PUSHER_KEY=null
PUSHER_SECRET=null
PUSHER_APP_ID=null
PUSHER_CLUSTER=eu-west-1

MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..a8763f8
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,3 @@
* text=auto
*.css linguist-vendored
*.scss linguist-vendored
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..bbb56ff
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,12 @@
/vendor
/node_modules
/public/storage
/storage
/public
Homestead.yaml
Homestead.json
.env
.phpstorm.meta.php
_ide_helper.php
.idea
bower_components
diff --git a/app/Console/Commands/Inspire.php b/app/Console/Commands/Inspire.php
new file mode 100644
index 0000000..db9ab85
--- /dev/null
+++ b/app/Console/Commands/Inspire.php
@@ -0,0 +1,33 @@
<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;
use Illuminate\Foundation\Inspiring;

class Inspire extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'inspire';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Display an inspiring quote';

    /**
     * Execute the console command.
     *
     * @return mixed
     */
    public function handle()
    {
        $this->comment(PHP_EOL.Inspiring::quote().PHP_EOL);
    }
}
diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php
new file mode 100644
index 0000000..71c519d
--- /dev/null
+++ b/app/Console/Kernel.php
@@ -0,0 +1,30 @@
<?php

namespace App\Console;

use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;

class Kernel extends ConsoleKernel
{
    /**
     * The Artisan commands provided by your application.
     *
     * @var array
     */
    protected $commands = [
        // Commands\Inspire::class,
    ];

    /**
     * Define the application's command schedule.
     *
     * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
     * @return void
     */
    protected function schedule(Schedule $schedule)
    {
        // $schedule->command('inspire')
        //          ->hourly();
    }
}
diff --git a/app/Events/Event.php b/app/Events/Event.php
new file mode 100644
index 0000000..ba2f888
--- /dev/null
+++ b/app/Events/Event.php
@@ -0,0 +1,8 @@
<?php

namespace App\Events;

abstract class Event
{
    //
}
diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php
new file mode 100644
index 0000000..53617ef
--- /dev/null
+++ b/app/Exceptions/Handler.php
@@ -0,0 +1,50 @@
<?php

namespace App\Exceptions;

use Exception;
use Illuminate\Validation\ValidationException;
use Illuminate\Auth\Access\AuthorizationException;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Symfony\Component\HttpKernel\Exception\HttpException;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;

class Handler extends ExceptionHandler
{
    /**
     * A list of the exception types that should not be reported.
     *
     * @var array
     */
    protected $dontReport = [
        AuthorizationException::class,
        HttpException::class,
        ModelNotFoundException::class,
        ValidationException::class,
    ];

    /**
     * Report or log an exception.
     *
     * This is a great spot to send exceptions to Sentry, Bugsnag, etc.
     *
     * @param  \Exception  $e
     * @return void
     */
    public function report(Exception $e)
    {
        parent::report($e);
    }

    /**
     * Render an exception into an HTTP response.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Exception  $e
     * @return \Illuminate\Http\Response
     */
    public function render($request, Exception $e)
    {
        return parent::render($request, $e);
    }
}
diff --git a/app/Http/Controllers/Admin/ConnectionInfoController.php b/app/Http/Controllers/Admin/ConnectionInfoController.php
new file mode 100644
index 0000000..a690d7d
--- /dev/null
+++ b/app/Http/Controllers/Admin/ConnectionInfoController.php
@@ -0,0 +1,56 @@
<?php
namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;
use App\Models\ConnectionInfo;
use Illuminate\Http\Request;

/**
 * Admin-facing connection info controller. Allows the administrator to update the connection information displayed
 * to the DJs.
 *
 * @author Jordan Doyle <jordan@doyle.wf>
 */
class ConnectionInfoController extends Controller
{
    /**
     * Show the form to update the radio information.
     *
     * @return mixed
     */
    public function getForm()
    {
        $connection = ConnectionInfo::orderBy('id', 'desc')->take(1)->first();

        return view('admin.connection-info', [
            'connection' => $connection
        ]);
    }

    /**
     * Post the form and update the radio information for all the DJs.
     *
     * @param Request $request
     * @return mixed
     */
    public function postForm(Request $request)
    {
        $this->validate($request, [
            'ip' => 'required|string|max:200',
            'port' => 'required|integer|max:65535',
            'password' => 'required|string|max:200'
        ]);

        $connection = new ConnectionInfo;
        $connection->ip = $request->get('ip');
        $connection->port = $request->get('port');
        $connection->password = $request->get('password');
        $connection->added_by = auth()->user()->userid;
        $connection->save();

        return redirect()->back()->with('msg', [
            'type' => 'success',
            'msg' => _('Successfully updated the radio connection information. All DJs can see the new data.')
        ]);
    }
}
diff --git a/app/Http/Controllers/Auth/AuthController.php b/app/Http/Controllers/Auth/AuthController.php
new file mode 100644
index 0000000..9e407ad
--- /dev/null
+++ b/app/Http/Controllers/Auth/AuthController.php
@@ -0,0 +1,58 @@
<?php

namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use App\Models\Group;
use Illuminate\Foundation\Auth\ThrottlesLogins;
use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;
use Illuminate\Http\Request;
use Vinkla\Pusher\Facades\Pusher;
use Vinkla\Pusher\PusherManager;

/**
 * Allow the user to login to the panel using their forum login details.
 *
 * @author Jordan Doyle <jordan@doyle.wf>
 */
class AuthController extends Controller
{
    use AuthenticatesAndRegistersUsers, ThrottlesLogins;

    /**
     * Where to redirect users after login / registration.
     *
     * @var string
     */
    protected $redirectTo = '/';

    /**
     * Authenticate the user to allow them to use push notifications.
     *
     * @param Request $request
     * @return string
     */
    public function pusher(Request $request)
    {
        $this->validate($request, [
            'channel_name' => 'required',
            'socket_id' => 'required'
        ]);

        switch ($request->get('channel_name')) {
            case 'private-dj':
                // trying to subscribe to DJ push notifications. ensure they're a DJ.
                if (!auth()->user()->is(Group::RADIO_DJ, Group::GUEST_DJ)) {
                    abort(403, 'Unauthorized.');
                }
                break;

            default:
                // they're trying to subscribe to a channel we don't know about. don't let them do it.
                abort(403, 'Unauthorized.');
                break;
        }

        return Pusher::connection()->socket_auth($request->get('channel_name'), $request->get('socket_id'));
    }
}
diff --git a/app/Http/Controllers/Controller.php b/app/Http/Controllers/Controller.php
new file mode 100644
index 0000000..d492e0b
--- /dev/null
+++ b/app/Http/Controllers/Controller.php
@@ -0,0 +1,14 @@
<?php

namespace App\Http\Controllers;

use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesResources;

class Controller extends BaseController
{
    use AuthorizesRequests, AuthorizesResources, DispatchesJobs, ValidatesRequests;
}
diff --git a/app/Http/Controllers/DJ/ConnectionInfoController.php b/app/Http/Controllers/DJ/ConnectionInfoController.php
new file mode 100644
index 0000000..660a6c3
--- /dev/null
+++ b/app/Http/Controllers/DJ/ConnectionInfoController.php
@@ -0,0 +1,27 @@
<?php
namespace App\Http\Controllers\DJ;

use App\Http\Controllers\Controller;
use App\Models\ConnectionInfo;

/**
 * DJ-facing connection info controller. Allow the DJ to view the connection info.
 *
 * @author Jordan Doyle <jordan@doyle.wf>
 */
class ConnectionInfoController extends Controller
{
    /**
     * View the connection info to the SHOUTcast server.
     *
     * @return mixed
     */
    public function viewConnection()
    {
        $connection = ConnectionInfo::orderBy('id', 'desc')->take(1)->first();

        return view('dj.connection-info', [
            'connection' => $connection
        ]);
    }
}
diff --git a/app/Http/Controllers/DJ/DJSaysController.php b/app/Http/Controllers/DJ/DJSaysController.php
new file mode 100644
index 0000000..62b4c71
--- /dev/null
+++ b/app/Http/Controllers/DJ/DJSaysController.php
@@ -0,0 +1,65 @@
<?php
namespace App\Http\Controllers\DJ;

use App\Http\Controllers\Controller;
use App\Models\DJSays;
use App\Models\User;
use Illuminate\Http\Request;

/**
 * Allow the DJ to update the DJ status displayed on the main site.
 *
 * @author Jordan Doyle <jordan@doyle.wf>
 */
class DJSaysController extends Controller
{
    /**
     * Get the form to change the DJ Says.
     *
     * @return mixed
     */
    public function getForm()
    {
        $says = DJSays::remember(5)->orderBy('id', 'desc')->take(1)->first();
        return view('dj.dj-says', ['current' => $says ? e($says->msg) : 'Currently unset.']);
    }

    /**
     * Change the DJ Says that is shown on the main site.
     *
     * @param Request $request
     * @return mixed
     */
    public function postForm(Request $request)
    {
        $this->validate($request, [
            'msg' => 'required|string|max:200'
        ], [], ['msg' => 'DJ Says']);

        $says = new DJSays;
        $says->dj = auth()->user()->userid;
        $says->msg = $request->get('msg');
        $says->save();

        return redirect()->back()->with('msg', [
            'type' => 'success',
            'msg' => _('Successfully updated the DJ Says, this change has been reflected on the main site.')
        ]);
    }

    /**
     * API method call. Allow the frontend site to get the current DJ Says.
     *
     * @return array
     */
    public function getSays()
    {
        $says = DJSays::remember(5)->orderBy('id', 'desc')->take(1)->first();

        if ($says) {
            return ['dj' => User::remember(30)->find($says->dj)->username, 'msg' => e($says->msg)];
        } else {
            return ['dj' => 'Unavailable', 'msg' => 'Currently unset.'];
        }
    }
}
diff --git a/app/Http/Controllers/DJ/RequestController.php b/app/Http/Controllers/DJ/RequestController.php
new file mode 100644
index 0000000..6d3f9c1
--- /dev/null
+++ b/app/Http/Controllers/DJ/RequestController.php
@@ -0,0 +1,62 @@
<?php
namespace App\Http\Controllers\DJ;

use App\Http\Controllers\Controller;
use App\Models\Request;
use Illuminate\Http\Request as HttpRequest;
use Vinkla\Pusher\Facades\Pusher;

/**
 * Allow the DJ to view requests submitted by users of the site.
 *
 * @author Jordan Doyle <jordan@doyle.wf>
 */
class RequestController extends Controller
{
    /**
     * Get the request list.
     *
     * @return mixed
     */
    public function getList()
    {
        $requests = Request::orderBy('id', 'desc')->paginate(15);
        return view('dj.requests', ['requests' => $requests]);
    }

    /**
     * Soft delete the request from the list.
     *
     * @param int $id id to delete
     * @return mixed
     */
    public function deleteRequest(int $id)
    {
        Request::findOrFail($id)->delete();
        return redirect()->back()->with('msg', ['type' => 'success', 'msg' => 'Successfully deleted request.']);
    }

    /**
     * Submit a request which a DJ can then view.
     *
     * @param HttpRequest $request
     * @return mixed
     */
    public function request(HttpRequest $request)
    {
        $this->validate($request, [
            'name' => 'required|string|max:30',
            'request' => 'required|string|max:500'
        ]);

        $r = new Request;
        $r->name = $request->get('name');
        $r->request = $request->get('request');
        $r->ip_address = $request->ip();
        $r->save();

        Pusher::trigger('private-dj', 'request', ['msg' => str_limit(e($r->request)), 'sender' => e($r->name)]);

        return ['type' => 'success', 'msg' => _('Successfully submitted your request. We\'ll let the DJ know!')];
    }
}
diff --git a/app/Http/Controllers/DJ/TimetableController.php b/app/Http/Controllers/DJ/TimetableController.php
new file mode 100644
index 0000000..85635b8
--- /dev/null
+++ b/app/Http/Controllers/DJ/TimetableController.php
@@ -0,0 +1,156 @@
<?php
namespace App\Http\Controllers\DJ;

use App\Http\Controllers\Controller;
use App\Models\Timetable;
use App\Models\User;
use Carbon\Carbon;
use Illuminate\Http\Request;

/**
 * Allow the DJ to view the timetable and book slots on the timetable.
 *
 * @author Jordan Doyle <jordan@doyle.wf>
 */
class TimetableController extends Controller
{
    /**
     * Show the timetable to the user.
     *
     * @return mixed
     */
    public function getTimetable()
    {
        return view('dj.timetable', ['timetable' => $this->getJSONTimetable()]);
    }

    /**
     * Book slot for the user.
     *
     * @param Request $request
     * @return mixed
     */
    public function bookSlot(Request $request)
    {
        $this->validate($request, [
            'day' => 'required|integer|min:0|max:6',
            'hour' => 'required|integer|min:0|max:23'
        ]);

        $slot = Timetable::where('week', Carbon::now()->weekOfYear)
            ->where('year', Carbon::now()->year)
            ->where('day', $request->get('day'))
            ->where('hour', $request->get('hour'))
            ->take(1)
            ->count();

        if ($slot !== 0) {
            // this slot is already booked.
            if ($request->ajax()) {
                return [
                    'error' => true,
                    'msg' => _('This slot is already booked.')
                ];
            } else {
                return redirect()
                    ->back()
                    ->with('msg', ['type' => 'danger', 'msg' => _('This slot is already booked.')])
                    ->with('tab', $request->get('day'));
            }
        }

        $slot = new Timetable;
        $slot->year = Carbon::now()->year;
        $slot->week = Carbon::now()->weekOfYear;
        $slot->day = $request->get('day');
        $slot->hour = $request->get('hour');
        $slot->dj = auth()->user()->userid;
        $slot->save();

        if ($request->ajax()) {
            return [
                'error' => false,
                'msg' => _('Successfully booked slot.')
            ];
        } else {
            return redirect()
                ->back()
                ->with('msg', ['type' => 'success', 'msg' => _('Successfully booked slot.')])
                ->with('tab', $request->get('day'));
        }
    }

    /**
     * Unbook slot for user if the slot is theirs or if they're an admin.
     *
     * @param Request $request
     * @return mixed
     */
    public function unbookSlot(Request $request)
    {
        $this->validate($request, [
            'day' => 'required|integer|min:0|max:6',
            'hour' => 'required|integer|min:0|max:23'
        ]);

        $slot = Timetable::where('week', Carbon::now()->weekOfYear)
            ->where('year', Carbon::now()->year)
            ->where('day', $request->get('day'))
            ->where('hour', $request->get('hour'))
            ->take(1);

        if ($slot->first()->dj !== auth()->user()->userid && !auth()->user()->isAdmin()) {
            if ($request->ajax()) {
                return [
                    'error' => true,
                    'msg' => _('You do not have permission to unbook this slot as it is not your slot.')
                ];
            } else {
                return redirect()->back()->with('msg', [
                    'type' => 'danger',
                    'msg' => _('You do not have permission to unbook this slot as it is not your slot.')
                ]);
            }
        }

        $slot->delete();

        if ($request->ajax()) {
            return [
                'error' => false,
                'msg' => _('Successfully unbooked slot.')
            ];
        } else {
            return redirect()
                ->back()
                ->with('msg', ['type' => 'success', 'msg' => _('Successfully unbooked slot.')])
                ->with('tab', $request->get('day'));
        }
    }

    /**
     * Get the booked slots for this week in JSON format.
     *
     * @return array
     */
    public function getJSONTimetable()
    {
        $week = Timetable::where('week', Carbon::now()->weekOfYear)->where('year', Carbon::now()->year)->get();

        $timetable = [
            0 => ['name' => 'Monday'],
            1 => ['name' => 'Tuesday'],
            2 => ['name' => 'Wednesday'],
            3 => ['name' => 'Thursday'],
            4 => ['name' => 'Friday'],
            5 => ['name' => 'Saturday'],
            6 => ['name' => 'Sunday']
        ];

        foreach ($week as $slot) {
            $timetable[$slot->day][$slot->hour] = $slot->user->getDisplayName();
        }

        return $timetable;
    }
}
diff --git a/app/Http/Controllers/Event/TimetableController.php b/app/Http/Controllers/Event/TimetableController.php
new file mode 100644
index 0000000..513c31e
--- /dev/null
+++ b/app/Http/Controllers/Event/TimetableController.php
@@ -0,0 +1,211 @@
<?php
namespace App\Http\Controllers\Event;

use App\Http\Controllers\Controller;
use App\Models\Event;
use App\Models\EventType;
use App\Models\User;
use Carbon\Carbon;
use Illuminate\Http\Request;

/**
 * Allow events staff to view this week's timetable.
 *
 * @author Jordan Doyle <jordan@doyle.wf>
 */
class TimetableController extends Controller
{
    /**
     * Show the timetable to the user.
     *
     * @return mixed
     */
    public function getTimetable()
    {
        return view('events.timetable', ['timetable' => $this->getJSONTimetable()]);
    }

    /**
     * Show the form to the user to book a slot.
     *
     * @param Request $request
     * @return mixed
     */
    public function bookSlot(Request $request)
    {
        $this->validate($request, [
            'day' => 'required|integer|min:0|max:6',
            'hour' => 'required|integer|min:0|max:23'
        ]);

        return view('events.book-slot');
    }

    /**
     * Book a slot for the user.
     *
     * @param Request $request
     * @return mixed
     */
    public function save(Request $request)
    {
        $this->validate($request, [
            'day' => 'required|integer|min:0|max:6',
            'hour' => 'required|integer|min:0|max:23',
            'event_type' => 'required|exists:event_types,name,deleted_at,NULL',
            'room_id' => 'required|integer|regex:/^[\d]{8,8}$/'
        ]);

        $slot = Event::where('week', Carbon::now()->weekOfYear)
            ->where('year', Carbon::now()->year)
            ->where('day', $request->get('day'))
            ->where('hour', $request->get('hour'))
            ->where('approved', true)
            ->take(1)
            ->count();

        if ($slot !== 0) {
            // this slot is already booked.
            if ($request->ajax()) {
                return [
                    'error' => true,
                    'msg' => _('This slot is already booked.')
                ];
            } else {
                return redirect()
                    ->route('dashboard::event::timetable')
                    ->with('msg', ['type' => 'danger', 'msg' => _('This slot is already booked.')])
                    ->with('tab', $request->get('day'));
            }
        }

        $slot = Event::where('week', Carbon::now()->weekOfYear)
            ->where('year', Carbon::now()->year)
            ->where('day', $request->get('day'))
            ->where('hour', $request->get('hour'))
            ->where('user', auth()->user()->userid)
            ->where('approved', false)
            ->count();

        if ($slot !== 0) {
            // this user has already submitted a request for this slot
            if ($request->ajax()) {
                return [
                    'error' => true,
                    'msg' => _('You have already submitted a request for this slot.')
                ];
            } else {
                return redirect()
                    ->route('dashboard::event::timetable')
                    ->with('msg', [
                        'type' => 'danger',
                        'msg' => _('You have already submitted a request for this slot.')
                    ])
                    ->with('tab', $request->get('day'));
            }
        }

        $slot = new Event;
        $slot->year = Carbon::now()->year;
        $slot->week = Carbon::now()->weekOfYear;
        $slot->day = $request->get('day');
        $slot->hour = $request->get('hour');
        $slot->event_type_id = EventType::whereName($request->get('event_type'))->firstOrFail()->id;
        $slot->user = auth()->user()->userid;
        $slot->room_id = $request->get('room_id');
        $slot->approved = false;
        $slot->save();

        if ($request->ajax()) {
            return [
                'error' => false,
                'msg' => _('Successfully booked slot.')
            ];
        } else {
            return redirect()
                ->route('dashboard::event::timetable')
                ->with('msg', ['type' => 'success', 'msg' => _('Successfully booked slot.')])
                ->with('tab', $request->get('day'));
        }
    }

    /**
     * Unbook slot for user if the slot is theirs or if they're an admin.
     *
     * @param Request $request
     * @return mixed
     */
    public function unbookSlot(Request $request)
    {
        $this->validate($request, [
            'day' => 'required|integer|min:0|max:6',
            'hour' => 'required|integer|min:0|max:23'
        ]);

        $slot = Event::where('week', Carbon::now()->weekOfYear)
            ->where('year', Carbon::now()->year)
            ->where('day', $request->get('day'))
            ->where('hour', $request->get('hour'))
            ->where('approved', true)
            ->take(1);

        if ($slot->first()->user !== auth()->user()->userid && !auth()->user()->isAdmin()) {
            if ($request->ajax()) {
                return [
                    'error' => true,
                    'msg' => _('You do not have permission to unbook this slot as it is not your slot.')
                ];
            } else {
                return redirect()->back()->with('msg', [
                    'type' => 'danger',
                    'msg' => _('You do not have permission to unbook this slot as it is not your slot.')
                ]);
            }
        }

        $slot->delete();

        if ($request->ajax()) {
            return [
                'error' => false,
                'msg' => _('Successfully unbooked slot.')
            ];
        } else {
            return redirect()
                ->back()
                ->with('msg', ['type' => 'success', 'msg' => _('Successfully unbooked slot.')])
                ->with('tab', $request->get('day'));
        }
    }

    /**
     * Get the booked slots for this week in JSON format.
     *
     * @return array
     */
    public function getJSONTimetable()
    {
        $week = Event::where('week', Carbon::now()->weekOfYear)
            ->where('year', Carbon::now()->year)
            ->where('approved', true)
            ->get();

        $timetable = [
            0 => ['name' => 'Monday'],
            1 => ['name' => 'Tuesday'],
            2 => ['name' => 'Wednesday'],
            3 => ['name' => 'Thursday'],
            4 => ['name' => 'Friday'],
            5 => ['name' => 'Saturday'],
            6 => ['name' => 'Sunday']
        ];

        foreach ($week as $slot) {
            $type = $slot->type->name;

            $timetable[$slot->day][$slot->hour] = $slot->user()->first()->getDisplayName() . " ({$type})";
        }

        return $timetable;
    }
}
diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php
new file mode 100644
index 0000000..d3628f5
--- /dev/null
+++ b/app/Http/Controllers/HomeController.php
@@ -0,0 +1,18 @@
<?php

namespace App\Http\Controllers;

use App\Http\Requests;

class HomeController extends Controller
{
    /**
     * Show the application dashboard.
     *
     * @return \Illuminate\Http\Response
     */
    public function index()
    {
        return view('home');
    }
}
diff --git a/app/Http/Controllers/Management/EventsTimetableController.php b/app/Http/Controllers/Management/EventsTimetableController.php
new file mode 100644
index 0000000..019f3fc
--- /dev/null
+++ b/app/Http/Controllers/Management/EventsTimetableController.php
@@ -0,0 +1,100 @@
<?php
namespace App\Http\Controllers\Management;

use App\Http\Controllers\Controller;
use App\Models\Event;
use Carbon\Carbon;

/**
 * Allow a manager to accept or deny events.
 *
 * @author Jordan Doyle <jordan@doyle.wf>
 */
class EventsTimetableController extends Controller
{
    public function index()
    {
        $unapproved = Event::where('week', Carbon::now()->weekOfYear)
            ->where('year', Carbon::now()->year)
            ->where('approved', false)
            ->orderBy('id', 'desc')
            ->get();

        return view('management.events-timetable', ['unapproved' => $unapproved]);
    }

    /**
     * Approve an event and delete every other event for that hour.
     *
     * @param $id
     * @return mixed
     */
    public function approve($id)
    {
        $event = Event::findOrFail($id);

        if ($event->approved) {
            return redirect()->back()->with('msg', [
                'type' => 'success',
                'msg' => _('This event has already been approved.')
            ]);
        }

        $others = Event::where('week', Carbon::now()->weekOfYear)
            ->where('year', Carbon::now()->year)
            ->where('day', $event->day)
            ->where('hour', $event->hour)
            ->where('approved', true)
            ->count();

        if ($others) {
            // there is already an approved event in this slot.
            return redirect()->back()->with('msg', [
                'msg' => _('There is already an approved event in this slot.'),
                'type' => 'danger'
            ]);
        }

        // approve this event
        $event->approved = true;
        $event->save();

        // delete all the other unapproved events that wanted this slot.
        Event::where('week', Carbon::now()->weekOfYear)
            ->where('year', Carbon::now()->year)
            ->where('day', $event->day)
            ->where('hour', $event->hour)
            ->where('approved', false)
            ->delete();

        return redirect()->back()->with('msg', [
            'msg' => _('Successfully approved event and deleted other events which wanted this slot.'),
            'type' => 'success'
        ]);
    }

    /**
     * Deny an event.
     *
     * @param $id
     * @return mixed
     */
    public function deny($id)
    {
        $event = Event::findOrFail($id);

        if ($event->approved) {
            return redirect()->back()->with('msg', [
                'type' => 'success',
                'msg' => _('This event has already been approved.')
            ]);
        }

        $event->delete();

        return redirect()->back()->with('msg', [
            'msg' => _('Successfully declined event.'),
            'type' => 'success'
        ]);
    }
}
diff --git a/app/Http/Controllers/StatsController.php b/app/Http/Controllers/StatsController.php
new file mode 100644
index 0000000..7e7fe5c
--- /dev/null
+++ b/app/Http/Controllers/StatsController.php
@@ -0,0 +1,66 @@
<?php
namespace App\Http\Controllers;

use App\Http\Requests;
use App\Models\ConnectionInfo;
use LastFmApi\Api\AuthApi;
use LastFmApi\Api\TrackApi;

class StatsController extends Controller
{
    /**
     * Return the current radio stats.
     *
     * @return array
     */
    public function index()
    {
        // we need old values so we can't use Laravel's Cache class.
        $time = @filemtime(storage_path('stats.json'));

        if (!$time || (time() - $time >= 15)) {
            $connection = ConnectionInfo::orderBy('id', 'desc')->take(1)->first();

            $json = file_get_contents("http://{$connection->ip}:{$connection->port}/stats?json=1");
            $stats = json_decode($json);

            $ret = [];

            if (empty($stats->songtitle)) {
                $ret = ['status' => false];
            } else {
                $old = json_decode(file_get_contents(storage_path('stats.json')));

                $ret['dj'] = empty($json->dj) ? $old->dj : $stats->dj;
                $ret['listeners'] = $stats->listeners;

                if (count(explode(' - ', $json->songtitle, 2)) == 2) {
                    list($artist, $song) = explode(' - ', $json->songtitle, 2);
                    $ret['artist'] = $artist;
                    $ret['song'] = $song;

                    if ($stats->songtitle !== "{$old->artist} - {$old->song}") {
                        $lastfm = new AuthApi('getsession', [
                            'apiKey' => env('LASTFM_API_KEY'),
                            'secret' => env('LASTFM_SECRET'),
                            'token' => env('LASTFM_TOKEN')
                        ]);
                        $trackApi = new TrackApi($lastfm);
                        $trackApi->scrobble(['artist' => $artist, 'track' => $song, 'timestamp' => 400]);
                    }
                } else {
                    $ret['song'] = $json->songtitle;
                }

                file_put_contents(storage_path('stats.json'), json_encode($ret));
            }

            return [
                'dj' => $stats->dj,
                'song' => $stats->song
            ];
        } else {
            return json_decode(file_get_contents(storage_path('stats.json')), true);
        }
    }
}
diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php
new file mode 100644
index 0000000..54be437
--- /dev/null
+++ b/app/Http/Kernel.php
@@ -0,0 +1,56 @@
<?php

namespace App\Http;

use Illuminate\Foundation\Http\Kernel as HttpKernel;

class Kernel extends HttpKernel
{
    /**
     * The application's global HTTP middleware stack.
     *
     * These middleware are run during every request to your application.
     *
     * @var array
     */
    protected $middleware = [
        \Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
        \Xinax\LaravelGettext\Middleware\GettextMiddleware::class
    ];

    /**
     * The application's route middleware groups.
     *
     * @var array
     */
    protected $middlewareGroups = [
        'web' => [
            \App\Http\Middleware\EncryptCookies::class,
            \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
            \Illuminate\Session\Middleware\StartSession::class,
            \Illuminate\View\Middleware\ShareErrorsFromSession::class,
            \App\Http\Middleware\VerifyCsrfToken::class,
        ],

        'api' => [
            \Barryvdh\Cors\HandleCors::class,
            'throttle:60,1',
        ],
    ];

    /**
     * The application's route middleware.
     *
     * These middleware may be assigned to groups or used individually.
     *
     * @var array
     */
    protected $routeMiddleware = [
        'auth' => \App\Http\Middleware\Authenticate::class,
        'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
        'can' => \Illuminate\Foundation\Http\Middleware\Authorize::class,
        'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
        'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
        'is' => \App\Http\Middleware\IsGroup::class,
    ];
}
diff --git a/app/Http/Middleware/Authenticate.php b/app/Http/Middleware/Authenticate.php
new file mode 100644
index 0000000..09a4410
--- /dev/null
+++ b/app/Http/Middleware/Authenticate.php
@@ -0,0 +1,38 @@
<?php

namespace App\Http\Middleware;

use Closure;
use Illuminate\Support\Facades\Auth;
use Session;

class Authenticate
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @param  string|null  $guard
     * @return mixed
     */
    public function handle($request, Closure $next, $guard = null)
    {
        if (Auth::guard($guard)->guest()) {
            if ($request->ajax() || $request->wantsJson()) {
                return response('Unauthorized.', $request->is('auth/pusher') ? 403 : 401);
            } else {
                return redirect()->guest(route('auth::login'));
            }
        } elseif (!Auth::guard($guard)->user()->isStaff()) {
            Auth::guard($guard)->logout();

            return redirect()->guest(route('auth::login'))->with('msg', [
                'type' => 'danger',
                'msg' => _('You have been logged out as you are no longer a staff member.')
            ]);
        }

        return $next($request);
    }
}
diff --git a/app/Http/Middleware/EncryptCookies.php b/app/Http/Middleware/EncryptCookies.php
new file mode 100644
index 0000000..3aa15f8
--- /dev/null
+++ b/app/Http/Middleware/EncryptCookies.php
@@ -0,0 +1,17 @@
<?php

namespace App\Http\Middleware;

use Illuminate\Cookie\Middleware\EncryptCookies as BaseEncrypter;

class EncryptCookies extends BaseEncrypter
{
    /**
     * The names of the cookies that should not be encrypted.
     *
     * @var array
     */
    protected $except = [
        //
    ];
}
diff --git a/app/Http/Middleware/IsGroup.php b/app/Http/Middleware/IsGroup.php
new file mode 100644
index 0000000..5574fba
--- /dev/null
+++ b/app/Http/Middleware/IsGroup.php
@@ -0,0 +1,59 @@
<?php

namespace App\Http\Middleware;

use Closure;
use Illuminate\Support\Facades\Auth;
use Session;

class IsGroup
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request $request
     * @param  \Closure $next
     * @param  string $group
     * @return mixed
     */
    public function handle($request, Closure $next, $group)
    {
        if ($group === 'admin') {
            if (!Auth::user()->isAdmin()) {
                Session::flash('msg', [
                    'type' => 'danger',
                    'msg' => sprintf('%s %s',
                        '<strong>' . _('Oh snap!') . '</strong>',
                        _('You do not have permission to view this page.')
                    )
                ]);

                return redirect()->route('dashboard::home');
            }
        } elseif ($group === 'management') {
            if (!Auth::user()->isManagement()) {
                Session::flash('msg', [
                    'type' => 'danger',
                    'msg' => sprintf('%s %s',
                        '<strong>' . _('Oh snap!') . '</strong>',
                        _('You do not have permission to view this page.')
                    )
                ]);

                return redirect()->route('dashboard::home');
            }
        } elseif (!Auth::user()->is($group)) {
            Session::flash('msg', [
                'type' => 'danger',
                'msg' => sprintf('%s %s',
                    '<strong>' . _('Oh snap!') . '</strong>',
                    _('You do not have permission to view this page.')
                )
            ]);

            return redirect()->route('dashboard::home');
        }

        return $next($request);
    }
}
diff --git a/app/Http/Middleware/RedirectIfAuthenticated.php b/app/Http/Middleware/RedirectIfAuthenticated.php
new file mode 100644
index 0000000..a9bc1b7
--- /dev/null
+++ b/app/Http/Middleware/RedirectIfAuthenticated.php
@@ -0,0 +1,26 @@
<?php

namespace App\Http\Middleware;

use Closure;
use Illuminate\Support\Facades\Auth;

class RedirectIfAuthenticated
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @param  string|null  $guard
     * @return mixed
     */
    public function handle($request, Closure $next, $guard = null)
    {
        if (Auth::guard($guard)->check()) {
            return redirect(route('dashboard::home'));
        }

        return $next($request);
    }
}
diff --git a/app/Http/Middleware/VerifyCsrfToken.php b/app/Http/Middleware/VerifyCsrfToken.php
new file mode 100644
index 0000000..a2c3541
--- /dev/null
+++ b/app/Http/Middleware/VerifyCsrfToken.php
@@ -0,0 +1,17 @@
<?php

namespace App\Http\Middleware;

use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as BaseVerifier;

class VerifyCsrfToken extends BaseVerifier
{
    /**
     * The URIs that should be excluded from CSRF verification.
     *
     * @var array
     */
    protected $except = [
        //
    ];
}
diff --git a/app/Http/Requests/Request.php b/app/Http/Requests/Request.php
new file mode 100644
index 0000000..76b2ffd
--- /dev/null
+++ b/app/Http/Requests/Request.php
@@ -0,0 +1,10 @@
<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

abstract class Request extends FormRequest
{
    //
}
diff --git a/app/Http/routes.php b/app/Http/routes.php
new file mode 100644
index 0000000..2eaa0bf
--- /dev/null
+++ b/app/Http/routes.php
@@ -0,0 +1,107 @@
<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

use App\Models\Group;

Route::get('/', ['as' => 'index', function () {
    return redirect()->route(auth()->check() ? 'dashboard::home' : 'auth::login');
}]);

Route::group(['namespace' => 'Auth', 'as' => 'auth::', 'prefix' => 'auth'], function () {
    Route::group(['middleware' => 'guest'], function () {
        // Login routes
        Route::get('login', ['as' => 'login', 'uses' => 'AuthController@showLoginForm']);
        Route::post('login', ['as' => 'login.post', 'uses' => 'AuthController@login']);
    });

    Route::group(['middleware' => 'auth'], function () {
        // Logout routes
        Route::get('logout', ['as' => 'logout', 'uses' => 'AuthController@logout']);

        // Pusher routes
        Route::post('pusher', ['as' => 'pusher', 'uses' => 'AuthController@pusher']);
    });
});

Route::group(['middleware' => 'auth', 'as' => 'dashboard::'], function () {
    // Dashboard Routes
    Route::get('home', ['as' => 'home', 'uses' => 'HomeController@index']);

    Route::group([
        'as' => 'dj::',
        'prefix' => 'dj',
        'namespace' => 'DJ',
        'middleware' => sprintf('is:%s', Group::RADIO_DJ)
    ], function () {
        // DJ Says routes
        Route::get('says', ['as' => 'says', 'uses' => 'DJSaysController@getForm']);
        Route::post('says', ['as' => 'says.post', 'uses' => 'DJSaysController@postForm']);

        // Connection info routes
        Route::get('connection-info',
            ['as' => 'connection-info', 'uses' => 'ConnectionInfoController@viewConnection']);

        // Timetable routes
        Route::get('timetable', ['as' => 'timetable', 'uses' => 'TimetableController@getTimetable']);
        Route::put('timetable', ['as' => 'timetable.book', 'uses' => 'TimetableController@bookSlot']);
        Route::delete('timetable', ['as' => 'timetable.unbook', 'uses' => 'TimetableController@unbookSlot']);

        // Request Line routes
        Route::get('requests', ['as' => 'requests', 'uses' => 'RequestController@getList']);
        Route::delete('request/{id}', ['as' => 'requests.delete', 'uses' => 'RequestController@deleteRequest']);
    });

    Route::group([
        'as' => 'event::',
        'prefix' => 'event',
        'namespace' => 'Event',
        'middleware' => sprintf('is:%s', Group::EVENT)
    ], function () {
        // Timetable routes
        Route::get('timetable', ['as' => 'timetable', 'uses' => 'TimetableController@getTimetable']);
        Route::get('timetable/book', ['as' => 'timetable.book', 'uses' => 'TimetableController@bookSlot']);
        Route::put('timetable/book', ['as' => 'timetable.save', 'uses' => 'TimetableController@save']);
        Route::delete('timetable/unbook', ['as' => 'timetable.unbook', 'uses' => 'TimetableController@unbookSlot']);
    });

    Route::group([
        'as' => 'management::',
        'prefix' => 'management',
        'namespace' => 'Management',
        'middleware' => 'is:management'
    ], function () {
        // Events routes
        Route::group(['prefix' => 'events', 'as' => 'events::'], function () {
            Route::get('timetable', ['as' => 'timetable', 'uses' => 'EventsTimetableController@index']);
            Route::put('approve/{id}', ['as' => 'approve', 'uses' => 'EventsTimetableController@approve']);
            Route::delete('deny/{id}', ['as' => 'deny', 'uses' => 'EventsTimetableController@deny']);
        });
    });

    Route::group([
        'as' => 'admin::',
        'prefix' => 'admin',
        'namespace' => 'Admin',
        'middleware' => 'is:admin'
    ], function () {
        Route::get('connection-info', ['as' => 'connection-info', 'uses' => 'ConnectionInfoController@getForm']);
        Route::post('connection-info', ['as' => 'connection-info.post', 'uses' => 'ConnectionInfoController@postForm']);
    });
});

Route::group(['middleware' => 'api', 'as' => 'api::', 'prefix' => 'api'], function () {
    Route::get('dj-says', ['as' => 'dj-says', 'uses' => 'DJ\DJSaysController@getSays']);
    Route::get('timetable', ['as' => 'timetable', 'uses' => 'DJ\TimetableController@getJSONTimetable']);
    Route::get('events', ['as' => 'events', 'uses' => 'Event\TimetableController@getJSONTimetable']);
    Route::post('request', ['as' => 'request', 'uses' => 'DJ\RequestController@request']);
});
diff --git a/app/Jobs/Job.php b/app/Jobs/Job.php
new file mode 100644
index 0000000..55ece29
--- /dev/null
+++ b/app/Jobs/Job.php
@@ -0,0 +1,21 @@
<?php

namespace App\Jobs;

use Illuminate\Bus\Queueable;

abstract class Job
{
    /*
    |--------------------------------------------------------------------------
    | Queueable Jobs
    |--------------------------------------------------------------------------
    |
    | This job base class provides a central location to place any logic that
    | is shared across all of your jobs. The trait included with the class
    | provides access to the "onQueue" and "delay" queue helper methods.
    |
    */

    use Queueable;
}
diff --git a/app/Listeners/.gitkeep b/app/Listeners/.gitkeep
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/app/Listeners/.gitkeep
@@ -0,0 +1 @@

diff --git a/app/MaterialPresenter.php b/app/MaterialPresenter.php
new file mode 100644
index 0000000..669ef1e
--- /dev/null
+++ b/app/MaterialPresenter.php
@@ -0,0 +1,69 @@
<?php
namespace App;

use Illuminate\Pagination\BootstrapFourPresenter;
use Illuminate\Support\HtmlString;

/**
 * Paginator using material design lite.
 *
 * @author Jordan Doyle <jordan@doyle.wf>
 */
class MaterialPresenter extends BootstrapFourPresenter
{
    /**
     * Convert the URL window into Material Design HTML.
     *
     * @return \Illuminate\Support\HtmlString
     */
    public function render()
    {
        if ($this->hasPages()) {
            return new HtmlString(sprintf(
                '<ul class="pagination">%s %s %s</ul>',
                $this->getPreviousButton('<i class="material-icons">chevron_left</i>'),
                $this->getLinks(),
                $this->getNextButton('<i class="material-icons">chevron_right</i>')
            ));
        }

        return '';
    }

    /**
     * Get HTML wrapper for an available page link.
     *
     * @param  string $url
     * @param  int $page
     * @param  string|null $rel
     * @return string
     */
    protected function getAvailablePageWrapper($url, $page, $rel = null)
    {
        $rel = is_null($rel) ? '' : ' rel="' . $rel . '"';

        return sprintf('<li><a class="no-decoration" href="%s"%s>%s</a></li>', htmlentities($url), $rel, $page);
    }

    /**
     * Get HTML wrapper for disabled text.
     *
     * @param  string $text
     * @return string
     */
    protected function getDisabledTextWrapper($text)
    {
        return '<li class="disabled"><span>' . $text . '</span></li>';
    }

    /**
     * Get HTML wrapper for active text.
     *
     * @param  string $text
     * @return string
     */
    protected function getActivePageWrapper($text)
    {
        return '<li class="active"><span>' . $text . '</span></li>';
    }
}
diff --git a/app/Models/ConnectionInfo.php b/app/Models/ConnectionInfo.php
new file mode 100644
index 0000000..0c62233
--- /dev/null
+++ b/app/Models/ConnectionInfo.php
@@ -0,0 +1,32 @@
<?php
namespace App\Models;

use Carbon\Carbon;
use Eloquent;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Query\Builder;

/**
 * Table containing all previous and current SHOUTcast connection information.
 *
 * @author Jordan Doyle <jordan@doyle.wf>
 * @property integer $id
 * @property string $ip
 * @property integer $port
 * @property string $password
 * @property integer $added_by
 * @property Carbon $created_at
 * @property Carbon $updated_at
 * @method static Builder|ConnectionInfo whereId($value)
 * @method static Builder|ConnectionInfo whereIp($value)
 * @method static Builder|ConnectionInfo wherePort($value)
 * @method static Builder|ConnectionInfo wherePassword($value)
 * @method static Builder|ConnectionInfo whereAddedBy($value)
 * @method static Builder|ConnectionInfo whereCreatedAt($value)
 * @method static Builder|ConnectionInfo whereUpdatedAt($value)
 * @mixin Eloquent
 */
class ConnectionInfo extends Model
{
    protected $table = 'connection_info';
}
diff --git a/app/Models/DJSays.php b/app/Models/DJSays.php
new file mode 100644
index 0000000..84fc1ad
--- /dev/null
+++ b/app/Models/DJSays.php
@@ -0,0 +1,30 @@
<?php
namespace App\Models;

use Carbon\Carbon;
use Eloquent;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Query\Builder;
use Watson\Rememberable\Rememberable;

/**
 * Table containing all previous and current DJ statuses displayed on the main site.
 *
 * @author Jordan Doyle <jordan@doyle.wf>
 * @property integer $id
 * @property integer $dj
 * @property string $msg
 * @property Carbon $created_at
 * @property Carbon $updated_at
 * @method static Builder|DJSays whereId($value)
 * @method static Builder|DJSays whereDj($value)
 * @method static Builder|DJSays whereMsg($value)
 * @method static Builder|DJSays whereCreatedAt($value)
 * @method static Builder|DJSays whereUpdatedAt($value)
 * @mixin Eloquent
 */
class DJSays extends Model {
    use Rememberable;

    protected $table = 'dj_says';
}
diff --git a/app/Models/Event.php b/app/Models/Event.php
new file mode 100644
index 0000000..ece17dc
--- /dev/null
+++ b/app/Models/Event.php
@@ -0,0 +1,61 @@
<?php
namespace App\Models;

use Carbon\Carbon;
use Eloquent;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Query\Builder;

/**
 * Table containing all booked events by events staff.
 *
 * @author Jordan Doyle <jordan@doyle.wf>
 * @property integer $id
 * @property integer $user
 * @property integer $week
 * @property integer $year
 * @property integer $day
 * @property integer $hour
 * @property integer $event_type_id
 * @property integer $room_id
 * @property Carbon $created_at
 * @property Carbon $updated_at
 * @property string $deleted_at
 * @method static Builder|Event whereId($value)
 * @method static Builder|Event whereUser($value)
 * @method static Builder|Event whereWeek($value)
 * @method static Builder|Event whereYear($value)
 * @method static Builder|Event whereDay($value)
 * @method static Builder|Event whereHour($value)
 * @method static Builder|Event whereEventTypesId($value)
 * @method static Builder|Event whereCreatedAt($value)
 * @method static Builder|Event whereUpdatedAt($value)
 * @method static Builder|Event whereDeletedAt($value)
 * @mixin Eloquent
 */
class Event extends Model
{
    use SoftDeletes;

    /**
     * Get the type of event this is.
     *
     * @return BelongsTo
     */
    public function type()
    {
        return $this->belongsTo(EventType::class, 'event_type_id');
    }

    /**
     * Get the user that this event belongs to.
     *
     * @return BelongsTo
     */
    public function user()
    {
        return $this->belongsTo(User::class, 'user');
    }
}
diff --git a/app/Models/EventType.php b/app/Models/EventType.php
new file mode 100644
index 0000000..02ced16
--- /dev/null
+++ b/app/Models/EventType.php
@@ -0,0 +1,27 @@
<?php
namespace App\Models;

use Carbon\Carbon;
use Eloquent;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Query\Builder;

/**
 * Table containing all types of events a host can host.
 *
 * @author Jordan Doyle <jordan@doyle.wf>
 * @property integer $id
 * @property string $name
 * @property Carbon $created_at
 * @property Carbon $updated_at
 * @method static Builder|EventType whereId($value)
 * @method static Builder|EventType whereName($value)
 * @method static Builder|EventType whereCreatedAt($value)
 * @method static Builder|EventType whereUpdatedAt($value)
 * @mixin Eloquent
 */
class EventType extends Model
{
    use SoftDeletes;
}
diff --git a/app/Models/Group.php b/app/Models/Group.php
new file mode 100644
index 0000000..1921f8c
--- /dev/null
+++ b/app/Models/Group.php
@@ -0,0 +1,86 @@
<?php
namespace App\Models;

use Eloquent;
use Illuminate\Database\Eloquent\Model;

/**
 * Table containing all user groups on the forum.
 *
 * @mixin Eloquent
 * @author Jordan Doyle <jordan@doyle.wf>
 */
class Group extends Model
{
    protected $connection = 'forum';
    protected $table = 'usergroup';
    protected $primaryKey = 'usergroupid';
    public $timestamps = false;

    const STAFF_PREFIX = '[STAFF]';
    const GUEST_DJ = 'Guest DJ';
    const RADIO_DJ = 'Radio DJ';
    const EVENT = 'Events';
    const MANAGEMENT = 'Management';
    const ADMINISTRATOR = 'Administrator';
    const OWNERSHIP = 'Ownership';
    const BANNED = 'Banned Users';

    /**
     * Check if this group is the specified one. Use constants in this class (ie. Group::RADIO_DJ)
     *
     * @param $name string group to check this group is.
     * @return bool
     */
    public function is($name)
    {
        $group = $this->title;

        if ($this->isManagement()) {
            return true;
        }

        return str_contains($group, $name) && $this->isStaff();
    }

    /**
     * Check if this group is an admin group.
     *
     * @return bool
     */
    public function isAdmin()
    {
        return $this->adminpermissions === 3;
    }

    public function isManagement()
    {
        $group = $this->title;

        if ($this->isAdmin()) {
            return true;
        }

        return ends_with($group, static::MANAGEMENT) && $this->isStaff();
    }

    /**
     * Check if this group is a banned group.
     *
     * @return bool
     */
    public function isBanned()
    {
        return str_contains($this->title, static::BANNED);
    }

    /**
     * Check if this group is a staff group.
     *
     * @return bool
     */
    public function isStaff()
    {
        return starts_with($this->title, static::STAFF_PREFIX) && !$this->isBanned();
    }
}
diff --git a/app/Models/Request.php b/app/Models/Request.php
new file mode 100644
index 0000000..90bc38b
--- /dev/null
+++ b/app/Models/Request.php
@@ -0,0 +1,32 @@
<?php
namespace App\Models;

use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Query\Builder;

/**
 * Table containing all requests sent in by users.
 *
 * @author Jordan Doyle <jordan@doyle.wf>
 * @property integer $id
 * @property string $name
 * @property string $request
 * @property string $ip_address
 * @property Carbon $created_at
 * @property Carbon $updated_at
 * @property string $deleted_at
 * @method static Builder|Request whereId($value)
 * @method static Builder|Request whereName($value)
 * @method static Builder|Request whereRequest($value)
 * @method static Builder|Request whereIpAddress($value)
 * @method static Builder|Request whereCreatedAt($value)
 * @method static Builder|Request whereUpdatedAt($value)
 * @method static Builder|Request whereDeletedAt($value)
 * @mixin \Eloquent
 */
class Request extends Model
{
    use SoftDeletes;
}
diff --git a/app/Models/RequestBan.php b/app/Models/RequestBan.php
new file mode 100644
index 0000000..0ad2e2f
--- /dev/null
+++ b/app/Models/RequestBan.php
@@ -0,0 +1,20 @@
<?php
namespace App\Models;

use Carbon\Carbon;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * Table containing IPs of everyone that is banned from the request line.
 *
 * @property integer $id
 * @property string $ip
 * @property integer $added_by
 * @property Carbon $created_at
 * @property Carbon $updated_at
 * @author Jordan Doyle <jordan@doyle.wf>
 */
class RequestBan
{
    use SoftDeletes;
}
diff --git a/app/Models/Timetable.php b/app/Models/Timetable.php
new file mode 100644
index 0000000..8d0371d
--- /dev/null
+++ b/app/Models/Timetable.php
@@ -0,0 +1,47 @@
<?php
namespace App\Models;

use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Query\Builder;

/**
 * Table containing all booked slots by DJ staff.
 *
 * @author Jordan Doyle <jordan@doyle.wf>
 * @property integer $id
 * @property integer $dj
 * @property integer $week
 * @property integer $year
 * @property integer $day
 * @property integer $hour
 * @property Carbon $created_at
 * @property Carbon $updated_at
 * @property string $deleted_at
 * @method static Builder|Timetable whereId($value)
 * @method static Builder|Timetable whereDj($value)
 * @method static Builder|Timetable whereWeek($value)
 * @method static Builder|Timetable whereYear($value)
 * @method static Builder|Timetable whereDay($value)
 * @method static Builder|Timetable whereHour($value)
 * @method static Builder|Timetable whereCreatedAt($value)
 * @method static Builder|Timetable whereUpdatedAt($value)
 * @method static Builder|Timetable whereDeletedAt($value)
 * @mixin \Eloquent
 */
class Timetable extends Model
{
    use SoftDeletes;

    /**
     * Get the user that this slot belongs to.
     *
     * @return BelongsTo
     */
    public function user()
    {
        return $this->belongsTo(User::class, 'dj');
    }
}
diff --git a/app/Models/Token.php b/app/Models/Token.php
new file mode 100644
index 0000000..d2e63d9
--- /dev/null
+++ b/app/Models/Token.php
@@ -0,0 +1,40 @@
<?php
namespace App\Models;

use Carbon\Carbon;
use Eloquent;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Query\Builder;

/**
 * Table to hold all "remember me" tokens for users.
 *
 * @author Jordan Doyle <jordan@doyle.wf>
 * @property integer $user_id id of the user this token belongs to
 * @property string $remember_token token
 * @property Carbon $created_at when this token was created
 * @property Carbon $updated_at when this token was last updated
 * @property-read User $user user this token belongs to
 * @method static Builder|Token whereUserId($value)
 * @method static Builder|Token whereRememberToken($value)
 * @method static Builder|Token whereCreatedAt($value)
 * @method static Builder|Token whereUpdatedAt($value)
 * @mixin Eloquent
 */
class Token extends Model
{
    public $table = 'users_tokens';
    protected $primaryKey = 'user_id';
    protected $fillable = ['remember_token', 'user_id'];

    /**
     * Get the user this "remember me" token belongs to.
     *
     * @return BelongsTo
     */
    public function user()
    {
        return $this->belongsTo(User::class);
    }
}
diff --git a/app/Models/User.php b/app/Models/User.php
new file mode 100644
index 0000000..d0b0f4c
--- /dev/null
+++ b/app/Models/User.php
@@ -0,0 +1,192 @@
<?php

namespace App\Models;

use Eloquent;
use Illuminate\Database\Eloquent\Relations\HasOne;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Support\HtmlString;
use Watson\Rememberable\Rememberable;

/**
 * vBulletin table containing all users.
 *
 * @author Jordan Doyle <jordan@doyle.wf>
 * @mixin Eloquent
 */
class User extends Authenticatable
{
    use Rememberable;

    protected $connection = 'forum';
    protected $table = 'user';
    protected $primaryKey = 'userid';
    public $timestamps = false;

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [];

    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    protected $hidden = [
        'password', 'salt'
    ];

    /**
     * Get this user's "remember me" token.
     *
     * @return HasOne
     */
    public function token()
    {
        return $this->hasOne(Token::class);
    }

    /**
     * Get this user's display group.
     *
     * @return Group
     */
    public function getDisplayGroup()
    {
        $display = $this->displaygroupid;

        if (!$display) {
            $display = $this->usergroupid;
        }

        return Group::find($display);
    }

    /**
     * Check if this user is a staff member.
     *
     * @return bool
     */
    public function isStaff()
    {
        $staff = false;

        foreach ($this->usergroups->get() as $group) {
            if ($group->isStaff()) {
                $staff = true;
            }

            if ($group->isBanned()) {
                return false;
            }
        }

        return $staff;
    }

    /**
     * Check if this user is management.
     *
     * @return bool
     */
    public function isManagement()
    {
        foreach ($this->usergroups->get() as $group) {
            if ($group->isManagement()) {
                return true;
            }
        }

        return false;
    }


    /**
     * Check if this user is an administrator.
     *
     * @return bool
     */
    public function isAdmin()
    {
        foreach ($this->usergroups->get() as $group) {
            if ($group->isAdmin()) {
                return true;
            }
        }

        return false;
    }

    /**
     * Check if this user is apart of a group.
     *
     * @param array $groups
     * @return bool
     * @internal param string $group group to check if the user is apart of
     */
    public function is(...$groups)
    {
        foreach ($this->usergroups->get() as $usergroup) {
            foreach ($groups as $group) {
                if ($usergroup->is($group)) {
                    return true;
                }
            }
        }

        return false;
    }

    /**
     * Get the usergroups this user belongs to.
     *
     * @return mixed
     */
    public function getUsergroupsAttribute()
    {
        if (!$this->relationLoaded('usergroups')) {
            $usergroups = Group::whereIn('usergroupid', $this->membergroupids);
            $this->setRelation('usergroups', $usergroups);
        }

        return $this->getRelation('usergroups');
    }

    /**
     * Get a query containing all the usergroups this user belongs to.
     *
     * @return Group
     */
    public function usergroups()
    {
        return Group::whereIn('usergroupid', $this->membergroupids);
    }

    /**
     * Mutate the weird relationship vBulletin gives us into an array to make it easier to work with.
     *
     * @param $commaSeparatedIds
     * @return mixed
     */
    public function getMembergroupidsAttribute($commaSeparatedIds)
    {
        $groups = json_decode("[{$commaSeparatedIds}]", true);
        array_unshift($groups, $this->usergroupid);

        return $groups;
    }

    /**
     * Get the display name of this user.
     *
     * @return HtmlString
     */
    public function getDisplayName()
    {
        $group = $this->getDisplayGroup();
        return new HtmlString($group->opentag . e($this->username) . $group->closetag);
    }
}
diff --git a/app/Policies/.gitkeep b/app/Policies/.gitkeep
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/app/Policies/.gitkeep
@@ -0,0 +1 @@

diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php
new file mode 100644
index 0000000..2d18170
--- /dev/null
+++ b/app/Providers/AppServiceProvider.php
@@ -0,0 +1,33 @@
<?php

namespace App\Providers;

use App\MaterialPresenter;
use Illuminate\Pagination\Paginator;
use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        Paginator::presenter(function ($paginator)
        {
            return new MaterialPresenter($paginator);
        });
    }

    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        //
    }
}
diff --git a/app/Providers/AuthServiceProvider.php b/app/Providers/AuthServiceProvider.php
new file mode 100644
index 0000000..8396eb5
--- /dev/null
+++ b/app/Providers/AuthServiceProvider.php
@@ -0,0 +1,35 @@
<?php

namespace App\Providers;

use App\Models\User;
use Auth;
use Illuminate\Contracts\Auth\Access\Gate as GateContract;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;

class AuthServiceProvider extends ServiceProvider
{
    /**
     * The policy mappings for the application.
     *
     * @var array
     */
    protected $policies = [
        'App\Model' => 'App\Policies\ModelPolicy',
    ];

    /**
     * Register any application authentication / authorization services.
     *
     * @param  \Illuminate\Contracts\Auth\Access\Gate  $gate
     * @return void
     */
    public function boot(GateContract $gate)
    {
        $this->registerPolicies($gate);

        Auth::provider('vbulletin', function ($app, array $config) {
            return new VbulletinUserProvider($config['model']);
        });
    }
}
diff --git a/app/Providers/EventServiceProvider.php b/app/Providers/EventServiceProvider.php
new file mode 100644
index 0000000..58ce962
--- /dev/null
+++ b/app/Providers/EventServiceProvider.php
@@ -0,0 +1,33 @@
<?php

namespace App\Providers;

use Illuminate\Contracts\Events\Dispatcher as DispatcherContract;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;

class EventServiceProvider extends ServiceProvider
{
    /**
     * The event listener mappings for the application.
     *
     * @var array
     */
    protected $listen = [
        'App\Events\SomeEvent' => [
            'App\Listeners\EventListener',
        ],
    ];

    /**
     * Register any other events for your application.
     *
     * @param  \Illuminate\Contracts\Events\Dispatcher  $events
     * @return void
     */
    public function boot(DispatcherContract $events)
    {
        parent::boot($events);

        //
    }
}
diff --git a/app/Providers/RouteServiceProvider.php b/app/Providers/RouteServiceProvider.php
new file mode 100644
index 0000000..bde0881
--- /dev/null
+++ b/app/Providers/RouteServiceProvider.php
@@ -0,0 +1,61 @@
<?php

namespace App\Providers;

use Illuminate\Routing\Router;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;

class RouteServiceProvider extends ServiceProvider
{
    /**
     * This namespace is applied to your controller routes.
     *
     * In addition, it is set as the URL generator's root namespace.
     *
     * @var string
     */
    protected $namespace = 'App\Http\Controllers';

    /**
     * Define your route model bindings, pattern filters, etc.
     *
     * @param  \Illuminate\Routing\Router  $router
     * @return void
     */
    public function boot(Router $router)
    {
        //

        parent::boot($router);
    }

    /**
     * Define the routes for the application.
     *
     * @param  \Illuminate\Routing\Router  $router
     * @return void
     */
    public function map(Router $router)
    {
        $this->mapWebRoutes($router);

        //
    }

    /**
     * Define the "web" routes for the application.
     *
     * These routes all receive session state, CSRF protection, etc.
     *
     * @param  \Illuminate\Routing\Router  $router
     * @return void
     */
    protected function mapWebRoutes(Router $router)
    {
        $router->group([
            'namespace' => $this->namespace, 'middleware' => 'web',
        ], function ($router) {
            require app_path('Http/routes.php');
        });
    }
}
diff --git a/app/Providers/VbulletinUserProvider.php b/app/Providers/VbulletinUserProvider.php
new file mode 100644
index 0000000..fdcced0
--- /dev/null
+++ b/app/Providers/VbulletinUserProvider.php
@@ -0,0 +1,74 @@
<?php
namespace App\Providers;

use App\Models\Token;
use Illuminate\Auth\EloquentUserProvider;
use Illuminate\Contracts\Auth\Authenticatable;

class VbulletinUserProvider extends EloquentUserProvider {
    /**
     * Create a new database user provider.
     *
     * @param  string $model
     */
    public function __construct($model)
    {
        $this->model = $model;
    }

    /**
     * Retrieve a user by their unique identifier and "remember me" token.
     *
     * @param  mixed $identifier
     * @param  string $token
     * @return \Illuminate\Contracts\Auth\Authenticatable|null
     */
    public function retrieveByToken($identifier, $token)
    {
        $model = $this->createModel();

        $user = $model->newQuery()->where($model->getAuthIdentifierName(), $identifier)->first();

        if (!$user) {
            return $user;
        }

        $token = $user->token()->where('remember_token', $token)->first();

        if (!$token) {
            return $token;
        }

        return $token->user()->first();
    }

    /**
     * Update the "remember me" token for the given user in storage.
     *
     * @param  \Illuminate\Contracts\Auth\Authenticatable $user
     * @param  string $token
     * @return void
     */
    public function updateRememberToken(Authenticatable $user, $token)
    {
        Token::updateOrCreate(['user_id' => $user->userid], ['remember_token' => $token]);
    }

    /**
     * Validate a user against the given credentials.
     *
     * @param  \Illuminate\Contracts\Auth\Authenticatable $user
     * @param  array $credentials
     * @return bool
     */
    public function validateCredentials(Authenticatable $user, array $credentials)
    {
        $plain = $credentials['password'];

        if (!$user->isStaff()) {
            return false;
        }

        return md5(md5($plain) . $user->salt) === $user->getAuthPassword();
    }
}
diff --git a/app/helpers.php b/app/helpers.php
new file mode 100644
index 0000000..910f5c3
--- /dev/null
+++ b/app/helpers.php
@@ -0,0 +1,5 @@
<?php
function is_route($route)
{
    return Request::is(ltrim(route($route, [], false), '/'));
}
diff --git a/artisan b/artisan
new file mode 100644
index 0000000..df630d0
--- /dev/null
+++ b/artisan
@@ -0,0 +1,51 @@
#!/usr/bin/env php
<?php

/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader
| for our application. We just need to utilize it! We'll require it
| into the script here so that we do not have to worry about the
| loading of any our classes "manually". Feels great to relax.
|
*/

require __DIR__.'/bootstrap/autoload.php';

$app = require_once __DIR__.'/bootstrap/app.php';

/*
|--------------------------------------------------------------------------
| Run The Artisan Application
|--------------------------------------------------------------------------
|
| When we run the console application, the current CLI command will be
| executed in this console and the response sent back to a terminal
| or another output device for the developers. Here goes nothing!
|
*/

$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);

$status = $kernel->handle(
    $input = new Symfony\Component\Console\Input\ArgvInput,
    new Symfony\Component\Console\Output\ConsoleOutput
);

/*
|--------------------------------------------------------------------------
| Shutdown The Application
|--------------------------------------------------------------------------
|
| Once Artisan has finished running. We will fire off the shutdown events
| so that any final work may be done by the application before we shut
| down the process. This is the last thing to happen to the request.
|
*/

$kernel->terminate($input, $status);

exit($status);
diff --git a/bootstrap/app.php b/bootstrap/app.php
new file mode 100644
index 0000000..f2801ad
--- /dev/null
+++ b/bootstrap/app.php
@@ -0,0 +1,55 @@
<?php

/*
|--------------------------------------------------------------------------
| Create The Application
|--------------------------------------------------------------------------
|
| The first thing we will do is create a new Laravel application instance
| which serves as the "glue" for all the components of Laravel, and is
| the IoC container for the system binding all of the various parts.
|
*/

$app = new Illuminate\Foundation\Application(
    realpath(__DIR__.'/../')
);

/*
|--------------------------------------------------------------------------
| Bind Important Interfaces
|--------------------------------------------------------------------------
|
| Next, we need to bind some important interfaces into the container so
| we will be able to resolve them when needed. The kernels serve the
| incoming requests to this application from both the web and CLI.
|
*/

$app->singleton(
    Illuminate\Contracts\Http\Kernel::class,
    App\Http\Kernel::class
);

$app->singleton(
    Illuminate\Contracts\Console\Kernel::class,
    App\Console\Kernel::class
);

$app->singleton(
    Illuminate\Contracts\Debug\ExceptionHandler::class,
    App\Exceptions\Handler::class
);

/*
|--------------------------------------------------------------------------
| Return The Application
|--------------------------------------------------------------------------
|
| This script returns the application instance. The instance is given to
| the calling script so we can separate the building of the instances
| from the actual running of the application and sending responses.
|
*/

return $app;
diff --git a/bootstrap/autoload.php b/bootstrap/autoload.php
new file mode 100644
index 0000000..3830137
--- /dev/null
+++ b/bootstrap/autoload.php
@@ -0,0 +1,34 @@
<?php

define('LARAVEL_START', microtime(true));

/*
|--------------------------------------------------------------------------
| Register The Composer Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader
| for our application. We just need to utilize it! We'll require it
| into the script here so that we do not have to worry about the
| loading of any our classes "manually". Feels great to relax.
|
*/

require __DIR__.'/../vendor/autoload.php';

/*
|--------------------------------------------------------------------------
| Include The Compiled Class File
|--------------------------------------------------------------------------
|
| To dramatically increase your application's performance, you may use a
| compiled class file which contains all of the classes commonly used
| by a request. The Artisan "optimize" is used to create this file.
|
*/

$compiledPath = __DIR__.'/cache/compiled.php';

if (file_exists($compiledPath)) {
    require $compiledPath;
}
diff --git a/bootstrap/cache/.gitignore b/bootstrap/cache/.gitignore
new file mode 100644
index 0000000..d6b7ef3
--- /dev/null
+++ b/bootstrap/cache/.gitignore
@@ -0,0 +1,2 @@
*
!.gitignore
diff --git a/bower.json b/bower.json
new file mode 100644
index 0000000..9ff3db4
--- /dev/null
+++ b/bower.json
@@ -0,0 +1,28 @@
{
  "name": "zpan",
  "description": "",
  "main": "",
  "authors": [
    "Jordan Doyle <jordan@doyle.wf>"
  ],
  "license": "GPLv3",
  "moduleType": [],
  "homepage": "",
  "private": true,
  "ignore": [
    "**/.*",
    "node_modules",
    "bower_components",
    "test",
    "tests"
  ],
  "dependencies": {
    "components-font-awesome": "~4.6.3",
    "material-design-lite": "~1.1.3",
    "pusher-websocket-iso": "pusher#~3.1.0",
    "history.js": "browserstate/history.js#~1.8.0",
    "ajaxify": "browserstate/ajaxify",
    "jquery-scrollto": "~1.4.4",
    "getmdl-select": "*"
  }
}
diff --git a/composer.json b/composer.json
new file mode 100644
index 0000000..565a943
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,62 @@
{
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "type": "project",
    "require": {
        "php": ">=5.5.9",
        "laravel/framework": "5.2.*",
        "barryvdh/laravel-ide-helper": "^2.1",
        "doctrine/dbal": "^2.5",
        "xinax/laravel-gettext": "^3.1",
        "watson/rememberable": "^1.0",
        "barryvdh/laravel-cors": "^0.8.0",
        "pusher/pusher-php-server": "^2.4",
        "vinkla/pusher": "^2.3",
        "matto1990/lastfm-api": "^1.2",
        "barryvdh/laravel-debugbar": "^2.2"
    },
    "require-dev": {
        "fzaninotto/faker": "~1.4",
        "mockery/mockery": "0.9.*",
        "phpunit/phpunit": "~4.0",
        "symfony/css-selector": "2.8.*|3.0.*",
        "symfony/dom-crawler": "2.8.*|3.0.*"
    },
    "autoload": {
        "classmap": [
            "database"
        ],
        "psr-4": {
            "App\\": "app/"
        }
    },
    "autoload-dev": {
        "classmap": [
            "tests/TestCase.php"
        ],
        "files": [
            "app/helpers.php"
        ]
    },
    "scripts": {
        "post-root-package-install": [
            "php -r \"copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "php artisan key:generate"
        ],
        "post-install-cmd": [
            "Illuminate\\Foundation\\ComposerScripts::postInstall",
            "php artisan optimize"
        ],
        "post-update-cmd": [
            "Illuminate\\Foundation\\ComposerScripts::postUpdate",
            "php artisan optimize"
        ]
    },
    "config": {
        "preferred-install": "dist"
    }
}
diff --git a/composer.lock b/composer.lock
new file mode 100644
index 0000000..631ffd4
--- /dev/null
+++ b/composer.lock
@@ -0,0 +1,4023 @@
{
    "_readme": [
        "This file locks the dependencies of your project to a known state",
        "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
        "This file is @generated automatically"
    ],
    "hash": "8b016d3e58f6580f0512a20c8972dcb2",
    "content-hash": "221d4887f8f973a10cb8d082d012ebb9",
    "packages": [
        {
            "name": "barryvdh/laravel-cors",
            "version": "v0.8.0",
            "source": {
                "type": "git",
                "url": "https://github.com/barryvdh/laravel-cors.git",
                "reference": "39975d7505757488f982ca132bcd02c704792fd8"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/barryvdh/laravel-cors/zipball/39975d7505757488f982ca132bcd02c704792fd8",
                "reference": "39975d7505757488f982ca132bcd02c704792fd8",
                "shasum": ""
            },
            "require": {
                "illuminate/support": "5.1.x|5.2.x",
                "php": ">=5.5.9",
                "symfony/http-foundation": "~2.7|~3.0",
                "symfony/http-kernel": "~2.7|~3.0"
            },
            "require-dev": {
                "phpunit/phpunit": "^5.2"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "0.8-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Barryvdh\\Cors\\": "src/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Barry vd. Heuvel",
                    "email": "barryvdh@gmail.com"
                }
            ],
            "description": "Adds CORS (Cross-Origin Resource Sharing) headers support in your Laravel application",
            "keywords": [
                "api",
                "cors",
                "crossdomain",
                "laravel"
            ],
            "time": "2016-02-11 18:38:09"
        },
        {
            "name": "barryvdh/laravel-debugbar",
            "version": "v2.2.2",
            "source": {
                "type": "git",
                "url": "https://github.com/barryvdh/laravel-debugbar.git",
                "reference": "c291e58d0a13953e0f68d99182ee77ebc693edc0"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/barryvdh/laravel-debugbar/zipball/c291e58d0a13953e0f68d99182ee77ebc693edc0",
                "reference": "c291e58d0a13953e0f68d99182ee77ebc693edc0",
                "shasum": ""
            },
            "require": {
                "illuminate/support": "5.1.*|5.2.*",
                "maximebf/debugbar": "~1.11.0",
                "php": ">=5.5.9",
                "symfony/finder": "~2.7|~3.0"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "2.2-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Barryvdh\\Debugbar\\": "src/"
                },
                "files": [
                    "src/helpers.php"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Barry vd. Heuvel",
                    "email": "barryvdh@gmail.com"
                }
            ],
            "description": "PHP Debugbar integration for Laravel",
            "keywords": [
                "debug",
                "debugbar",
                "laravel",
                "profiler",
                "webprofiler"
            ],
            "time": "2016-05-11 13:54:43"
        },
        {
            "name": "barryvdh/laravel-ide-helper",
            "version": "v2.1.4",
            "source": {
                "type": "git",
                "url": "https://github.com/barryvdh/laravel-ide-helper.git",
                "reference": "f1ebd847aac9a4545325d35108cafc285fe1605f"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/barryvdh/laravel-ide-helper/zipball/f1ebd847aac9a4545325d35108cafc285fe1605f",
                "reference": "f1ebd847aac9a4545325d35108cafc285fe1605f",
                "shasum": ""
            },
            "require": {
                "illuminate/console": "5.0.x|5.1.x|5.2.x",
                "illuminate/filesystem": "5.0.x|5.1.x|5.2.x",
                "illuminate/support": "5.0.x|5.1.x|5.2.x",
                "php": ">=5.4.0",
                "phpdocumentor/reflection-docblock": "^2.0.4",
                "symfony/class-loader": "~2.3|~3.0"
            },
            "require-dev": {
                "doctrine/dbal": "~2.3"
            },
            "suggest": {
                "doctrine/dbal": "Load information from the database about models for phpdocs (~2.3)"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "2.1-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Barryvdh\\LaravelIdeHelper\\": "src"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Barry vd. Heuvel",
                    "email": "barryvdh@gmail.com"
                }
            ],
            "description": "Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.",
            "keywords": [
                "autocomplete",
                "codeintel",
                "helper",
                "ide",
                "laravel",
                "netbeans",
                "phpdoc",
                "phpstorm",
                "sublime"
            ],
            "time": "2016-03-03 08:45:00"
        },
        {
            "name": "classpreloader/classpreloader",
            "version": "3.0.0",
            "source": {
                "type": "git",
                "url": "https://github.com/ClassPreloader/ClassPreloader.git",
                "reference": "9b10b913c2bdf90c3d2e0d726b454fb7f77c552a"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/ClassPreloader/ClassPreloader/zipball/9b10b913c2bdf90c3d2e0d726b454fb7f77c552a",
                "reference": "9b10b913c2bdf90c3d2e0d726b454fb7f77c552a",
                "shasum": ""
            },
            "require": {
                "nikic/php-parser": "^1.0|^2.0",
                "php": ">=5.5.9"
            },
            "require-dev": {
                "phpunit/phpunit": "^4.8|^5.0"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "3.0-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "ClassPreloader\\": "src/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Michael Dowling",
                    "email": "mtdowling@gmail.com"
                },
                {
                    "name": "Graham Campbell",
                    "email": "graham@alt-three.com"
                }
            ],
            "description": "Helps class loading performance by generating a single PHP file containing all of the autoloaded files for a specific use case",
            "keywords": [
                "autoload",
                "class",
                "preload"
            ],
            "time": "2015-11-09 22:51:51"
        },
        {
            "name": "dnoegel/php-xdg-base-dir",
            "version": "0.1",
            "source": {
                "type": "git",
                "url": "https://github.com/dnoegel/php-xdg-base-dir.git",
                "reference": "265b8593498b997dc2d31e75b89f053b5cc9621a"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/dnoegel/php-xdg-base-dir/zipball/265b8593498b997dc2d31e75b89f053b5cc9621a",
                "reference": "265b8593498b997dc2d31e75b89f053b5cc9621a",
                "shasum": ""
            },
            "require": {
                "php": ">=5.3.2"
            },
            "require-dev": {
                "phpunit/phpunit": "@stable"
            },
            "type": "project",
            "autoload": {
                "psr-4": {
                    "XdgBaseDir\\": "src/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "description": "implementation of xdg base directory specification for php",
            "time": "2014-10-24 07:27:01"
        },
        {
            "name": "doctrine/annotations",
            "version": "v1.2.7",
            "source": {
                "type": "git",
                "url": "https://github.com/doctrine/annotations.git",
                "reference": "f25c8aab83e0c3e976fd7d19875f198ccf2f7535"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/doctrine/annotations/zipball/f25c8aab83e0c3e976fd7d19875f198ccf2f7535",
                "reference": "f25c8aab83e0c3e976fd7d19875f198ccf2f7535",
                "shasum": ""
            },
            "require": {
                "doctrine/lexer": "1.*",
                "php": ">=5.3.2"
            },
            "require-dev": {
                "doctrine/cache": "1.*",
                "phpunit/phpunit": "4.*"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "1.3.x-dev"
                }
            },
            "autoload": {
                "psr-0": {
                    "Doctrine\\Common\\Annotations\\": "lib/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Roman Borschel",
                    "email": "roman@code-factory.org"
                },
                {
                    "name": "Benjamin Eberlei",
                    "email": "kontakt@beberlei.de"
                },
                {
                    "name": "Guilherme Blanco",
                    "email": "guilhermeblanco@gmail.com"
                },
                {
                    "name": "Jonathan Wage",
                    "email": "jonwage@gmail.com"
                },
                {
                    "name": "Johannes Schmitt",
                    "email": "schmittjoh@gmail.com"
                }
            ],
            "description": "Docblock Annotations Parser",
            "homepage": "http://www.doctrine-project.org",
            "keywords": [
                "annotations",
                "docblock",
                "parser"
            ],
            "time": "2015-08-31 12:32:49"
        },
        {
            "name": "doctrine/cache",
            "version": "v1.6.0",
            "source": {
                "type": "git",
                "url": "https://github.com/doctrine/cache.git",
                "reference": "f8af318d14bdb0eff0336795b428b547bd39ccb6"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/doctrine/cache/zipball/f8af318d14bdb0eff0336795b428b547bd39ccb6",
                "reference": "f8af318d14bdb0eff0336795b428b547bd39ccb6",
                "shasum": ""
            },
            "require": {
                "php": "~5.5|~7.0"
            },
            "conflict": {
                "doctrine/common": ">2.2,<2.4"
            },
            "require-dev": {
                "phpunit/phpunit": "~4.8|~5.0",
                "predis/predis": "~1.0",
                "satooshi/php-coveralls": "~0.6"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "1.6.x-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Doctrine\\Common\\Cache\\": "lib/Doctrine/Common/Cache"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Roman Borschel",
                    "email": "roman@code-factory.org"
                },
                {
                    "name": "Benjamin Eberlei",
                    "email": "kontakt@beberlei.de"
                },
                {
                    "name": "Guilherme Blanco",
                    "email": "guilhermeblanco@gmail.com"
                },
                {
                    "name": "Jonathan Wage",
                    "email": "jonwage@gmail.com"
                },
                {
                    "name": "Johannes Schmitt",
                    "email": "schmittjoh@gmail.com"
                }
            ],
            "description": "Caching library offering an object-oriented API for many cache backends",
            "homepage": "http://www.doctrine-project.org",
            "keywords": [
                "cache",
                "caching"
            ],
            "time": "2015-12-31 16:37:02"
        },
        {
            "name": "doctrine/collections",
            "version": "v1.3.0",
            "source": {
                "type": "git",
                "url": "https://github.com/doctrine/collections.git",
                "reference": "6c1e4eef75f310ea1b3e30945e9f06e652128b8a"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/doctrine/collections/zipball/6c1e4eef75f310ea1b3e30945e9f06e652128b8a",
                "reference": "6c1e4eef75f310ea1b3e30945e9f06e652128b8a",
                "shasum": ""
            },
            "require": {
                "php": ">=5.3.2"
            },
            "require-dev": {
                "phpunit/phpunit": "~4.0"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "1.2.x-dev"
                }
            },
            "autoload": {
                "psr-0": {
                    "Doctrine\\Common\\Collections\\": "lib/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Roman Borschel",
                    "email": "roman@code-factory.org"
                },
                {
                    "name": "Benjamin Eberlei",
                    "email": "kontakt@beberlei.de"
                },
                {
                    "name": "Guilherme Blanco",
                    "email": "guilhermeblanco@gmail.com"
                },
                {
                    "name": "Jonathan Wage",
                    "email": "jonwage@gmail.com"
                },
                {
                    "name": "Johannes Schmitt",
                    "email": "schmittjoh@gmail.com"
                }
            ],
            "description": "Collections Abstraction library",
            "homepage": "http://www.doctrine-project.org",
            "keywords": [
                "array",
                "collections",
                "iterator"
            ],
            "time": "2015-04-14 22:21:58"
        },
        {
            "name": "doctrine/common",
            "version": "v2.6.1",
            "source": {
                "type": "git",
                "url": "https://github.com/doctrine/common.git",
                "reference": "a579557bc689580c19fee4e27487a67fe60defc0"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/doctrine/common/zipball/a579557bc689580c19fee4e27487a67fe60defc0",
                "reference": "a579557bc689580c19fee4e27487a67fe60defc0",
                "shasum": ""
            },
            "require": {
                "doctrine/annotations": "1.*",
                "doctrine/cache": "1.*",
                "doctrine/collections": "1.*",
                "doctrine/inflector": "1.*",
                "doctrine/lexer": "1.*",
                "php": "~5.5|~7.0"
            },
            "require-dev": {
                "phpunit/phpunit": "~4.8|~5.0"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "2.7.x-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Doctrine\\Common\\": "lib/Doctrine/Common"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Roman Borschel",
                    "email": "roman@code-factory.org"
                },
                {
                    "name": "Benjamin Eberlei",
                    "email": "kontakt@beberlei.de"
                },
                {
                    "name": "Guilherme Blanco",
                    "email": "guilhermeblanco@gmail.com"
                },
                {
                    "name": "Jonathan Wage",
                    "email": "jonwage@gmail.com"
                },
                {
                    "name": "Johannes Schmitt",
                    "email": "schmittjoh@gmail.com"
                }
            ],
            "description": "Common Library for Doctrine projects",
            "homepage": "http://www.doctrine-project.org",
            "keywords": [
                "annotations",
                "collections",
                "eventmanager",
                "persistence",
                "spl"
            ],
            "time": "2015-12-25 13:18:31"
        },
        {
            "name": "doctrine/dbal",
            "version": "v2.5.4",
            "source": {
                "type": "git",
                "url": "https://github.com/doctrine/dbal.git",
                "reference": "abbdfd1cff43a7b99d027af3be709bc8fc7d4769"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/doctrine/dbal/zipball/abbdfd1cff43a7b99d027af3be709bc8fc7d4769",
                "reference": "abbdfd1cff43a7b99d027af3be709bc8fc7d4769",
                "shasum": ""
            },
            "require": {
                "doctrine/common": ">=2.4,<2.7-dev",
                "php": ">=5.3.2"
            },
            "require-dev": {
                "phpunit/phpunit": "4.*",
                "symfony/console": "2.*"
            },
            "suggest": {
                "symfony/console": "For helpful console commands such as SQL execution and import of files."
            },
            "bin": [
                "bin/doctrine-dbal"
            ],
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "2.5.x-dev"
                }
            },
            "autoload": {
                "psr-0": {
                    "Doctrine\\DBAL\\": "lib/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Roman Borschel",
                    "email": "roman@code-factory.org"
                },
                {
                    "name": "Benjamin Eberlei",
                    "email": "kontakt@beberlei.de"
                },
                {
                    "name": "Guilherme Blanco",
                    "email": "guilhermeblanco@gmail.com"
                },
                {
                    "name": "Jonathan Wage",
                    "email": "jonwage@gmail.com"
                }
            ],
            "description": "Database Abstraction Layer",
            "homepage": "http://www.doctrine-project.org",
            "keywords": [
                "database",
                "dbal",
                "persistence",
                "queryobject"
            ],
            "time": "2016-01-05 22:11:12"
        },
        {
            "name": "doctrine/inflector",
            "version": "v1.1.0",
            "source": {
                "type": "git",
                "url": "https://github.com/doctrine/inflector.git",
                "reference": "90b2128806bfde671b6952ab8bea493942c1fdae"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/doctrine/inflector/zipball/90b2128806bfde671b6952ab8bea493942c1fdae",
                "reference": "90b2128806bfde671b6952ab8bea493942c1fdae",
                "shasum": ""
            },
            "require": {
                "php": ">=5.3.2"
            },
            "require-dev": {
                "phpunit/phpunit": "4.*"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "1.1.x-dev"
                }
            },
            "autoload": {
                "psr-0": {
                    "Doctrine\\Common\\Inflector\\": "lib/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Roman Borschel",
                    "email": "roman@code-factory.org"
                },
                {
                    "name": "Benjamin Eberlei",
                    "email": "kontakt@beberlei.de"
                },
                {
                    "name": "Guilherme Blanco",
                    "email": "guilhermeblanco@gmail.com"
                },
                {
                    "name": "Jonathan Wage",
                    "email": "jonwage@gmail.com"
                },
                {
                    "name": "Johannes Schmitt",
                    "email": "schmittjoh@gmail.com"
                }
            ],
            "description": "Common String Manipulations with regard to casing and singular/plural rules.",
            "homepage": "http://www.doctrine-project.org",
            "keywords": [
                "inflection",
                "pluralize",
                "singularize",
                "string"
            ],
            "time": "2015-11-06 14:35:42"
        },
        {
            "name": "doctrine/lexer",
            "version": "v1.0.1",
            "source": {
                "type": "git",
                "url": "https://github.com/doctrine/lexer.git",
                "reference": "83893c552fd2045dd78aef794c31e694c37c0b8c"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/doctrine/lexer/zipball/83893c552fd2045dd78aef794c31e694c37c0b8c",
                "reference": "83893c552fd2045dd78aef794c31e694c37c0b8c",
                "shasum": ""
            },
            "require": {
                "php": ">=5.3.2"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "1.0.x-dev"
                }
            },
            "autoload": {
                "psr-0": {
                    "Doctrine\\Common\\Lexer\\": "lib/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Roman Borschel",
                    "email": "roman@code-factory.org"
                },
                {
                    "name": "Guilherme Blanco",
                    "email": "guilhermeblanco@gmail.com"
                },
                {
                    "name": "Johannes Schmitt",
                    "email": "schmittjoh@gmail.com"
                }
            ],
            "description": "Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.",
            "homepage": "http://www.doctrine-project.org",
            "keywords": [
                "lexer",
                "parser"
            ],
            "time": "2014-09-09 13:34:57"
        },
        {
            "name": "graham-campbell/manager",
            "version": "v2.4.0",
            "source": {
                "type": "git",
                "url": "https://github.com/GrahamCampbell/Laravel-Manager.git",
                "reference": "fd9052082e2c69c9a67d3e8d7dfa94cb33f8ab0b"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/GrahamCampbell/Laravel-Manager/zipball/fd9052082e2c69c9a67d3e8d7dfa94cb33f8ab0b",
                "reference": "fd9052082e2c69c9a67d3e8d7dfa94cb33f8ab0b",
                "shasum": ""
            },
            "require": {
                "illuminate/contracts": "5.1.*|5.2.*|5.3.*",
                "illuminate/support": "5.1.*|5.2.*|5.3.*",
                "php": ">=5.5.9"
            },
            "require-dev": {
                "graham-campbell/testbench-core": "^1.1",
                "mockery/mockery": "^0.9.4",
                "phpunit/phpunit": "^4.8|^5.0"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "2.4-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "GrahamCampbell\\Manager\\": "src/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Graham Campbell",
                    "email": "graham@alt-three.com"
                }
            ],
            "description": "Manager Provides Some Manager Functionality For Laravel 5",
            "keywords": [
                "Graham Campbell",
                "GrahamCampbell",
                "Laravel Manager",
                "Laravel-Manager",
                "connector",
                "framework",
                "interface",
                "laravel",
                "manager"
            ],
            "time": "2016-04-26 14:27:59"
        },
        {
            "name": "jakub-onderka/php-console-color",
            "version": "0.1",
            "source": {
                "type": "git",
                "url": "https://github.com/JakubOnderka/PHP-Console-Color.git",
                "reference": "e0b393dacf7703fc36a4efc3df1435485197e6c1"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/JakubOnderka/PHP-Console-Color/zipball/e0b393dacf7703fc36a4efc3df1435485197e6c1",
                "reference": "e0b393dacf7703fc36a4efc3df1435485197e6c1",
                "shasum": ""
            },
            "require": {
                "php": ">=5.3.2"
            },
            "require-dev": {
                "jakub-onderka/php-code-style": "1.0",
                "jakub-onderka/php-parallel-lint": "0.*",
                "jakub-onderka/php-var-dump-check": "0.*",
                "phpunit/phpunit": "3.7.*",
                "squizlabs/php_codesniffer": "1.*"
            },
            "type": "library",
            "autoload": {
                "psr-0": {
                    "JakubOnderka\\PhpConsoleColor": "src/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "BSD-2-Clause"
            ],
            "authors": [
                {
                    "name": "Jakub Onderka",
                    "email": "jakub.onderka@gmail.com",
                    "homepage": "http://www.acci.cz"
                }
            ],
            "time": "2014-04-08 15:00:19"
        },
        {
            "name": "jakub-onderka/php-console-highlighter",
            "version": "v0.3.2",
            "source": {
                "type": "git",
                "url": "https://github.com/JakubOnderka/PHP-Console-Highlighter.git",
                "reference": "7daa75df45242c8d5b75a22c00a201e7954e4fb5"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/JakubOnderka/PHP-Console-Highlighter/zipball/7daa75df45242c8d5b75a22c00a201e7954e4fb5",
                "reference": "7daa75df45242c8d5b75a22c00a201e7954e4fb5",
                "shasum": ""
            },
            "require": {
                "jakub-onderka/php-console-color": "~0.1",
                "php": ">=5.3.0"
            },
            "require-dev": {
                "jakub-onderka/php-code-style": "~1.0",
                "jakub-onderka/php-parallel-lint": "~0.5",
                "jakub-onderka/php-var-dump-check": "~0.1",
                "phpunit/phpunit": "~4.0",
                "squizlabs/php_codesniffer": "~1.5"
            },
            "type": "library",
            "autoload": {
                "psr-0": {
                    "JakubOnderka\\PhpConsoleHighlighter": "src/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Jakub Onderka",
                    "email": "acci@acci.cz",
                    "homepage": "http://www.acci.cz/"
                }
            ],
            "time": "2015-04-20 18:58:01"
        },
        {
            "name": "jeremeamia/SuperClosure",
            "version": "2.2.0",
            "source": {
                "type": "git",
                "url": "https://github.com/jeremeamia/super_closure.git",
                "reference": "29a88be2a4846d27c1613aed0c9071dfad7b5938"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/jeremeamia/super_closure/zipball/29a88be2a4846d27c1613aed0c9071dfad7b5938",
                "reference": "29a88be2a4846d27c1613aed0c9071dfad7b5938",
                "shasum": ""
            },
            "require": {
                "nikic/php-parser": "^1.2|^2.0",
                "php": ">=5.4",
                "symfony/polyfill-php56": "^1.0"
            },
            "require-dev": {
                "phpunit/phpunit": "^4.0|^5.0"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "2.2-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "SuperClosure\\": "src/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Jeremy Lindblom",
                    "email": "jeremeamia@gmail.com",
                    "homepage": "https://github.com/jeremeamia",
                    "role": "Developer"
                }
            ],
            "description": "Serialize Closure objects, including their context and binding",
            "homepage": "https://github.com/jeremeamia/super_closure",
            "keywords": [
                "closure",
                "function",
                "lambda",
                "parser",
                "serializable",
                "serialize",
                "tokenizer"
            ],
            "time": "2015-12-05 17:17:57"
        },
        {
            "name": "laravel/framework",
            "version": "v5.2.36",
            "source": {
                "type": "git",
                "url": "https://github.com/laravel/framework.git",
                "reference": "236d7c0c5b67a2348ac7831391031d93000de3ab"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/laravel/framework/zipball/236d7c0c5b67a2348ac7831391031d93000de3ab",
                "reference": "236d7c0c5b67a2348ac7831391031d93000de3ab",
                "shasum": ""
            },
            "require": {
                "classpreloader/classpreloader": "~3.0",
                "doctrine/inflector": "~1.0",
                "ext-mbstring": "*",
                "ext-openssl": "*",
                "jeremeamia/superclosure": "~2.2",
                "league/flysystem": "~1.0",
                "monolog/monolog": "~1.11",
                "mtdowling/cron-expression": "~1.0",
                "nesbot/carbon": "~1.20",
                "paragonie/random_compat": "~1.4",
                "php": ">=5.5.9",
                "psy/psysh": "0.7.*",
                "swiftmailer/swiftmailer": "~5.1",
                "symfony/console": "2.8.*|3.0.*",
                "symfony/debug": "2.8.*|3.0.*",
                "symfony/finder": "2.8.*|3.0.*",
                "symfony/http-foundation": "2.8.*|3.0.*",
                "symfony/http-kernel": "2.8.*|3.0.*",
                "symfony/polyfill-php56": "~1.0",
                "symfony/process": "2.8.*|3.0.*",
                "symfony/routing": "2.8.*|3.0.*",
                "symfony/translation": "2.8.*|3.0.*",
                "symfony/var-dumper": "2.8.*|3.0.*",
                "vlucas/phpdotenv": "~2.2"
            },
            "replace": {
                "illuminate/auth": "self.version",
                "illuminate/broadcasting": "self.version",
                "illuminate/bus": "self.version",
                "illuminate/cache": "self.version",
                "illuminate/config": "self.version",
                "illuminate/console": "self.version",
                "illuminate/container": "self.version",
                "illuminate/contracts": "self.version",
                "illuminate/cookie": "self.version",
                "illuminate/database": "self.version",
                "illuminate/encryption": "self.version",
                "illuminate/events": "self.version",
                "illuminate/exception": "self.version",
                "illuminate/filesystem": "self.version",
                "illuminate/hashing": "self.version",
                "illuminate/http": "self.version",
                "illuminate/log": "self.version",
                "illuminate/mail": "self.version",
                "illuminate/pagination": "self.version",
                "illuminate/pipeline": "self.version",
                "illuminate/queue": "self.version",
                "illuminate/redis": "self.version",
                "illuminate/routing": "self.version",
                "illuminate/session": "self.version",
                "illuminate/support": "self.version",
                "illuminate/translation": "self.version",
                "illuminate/validation": "self.version",
                "illuminate/view": "self.version"
            },
            "require-dev": {
                "aws/aws-sdk-php": "~3.0",
                "mockery/mockery": "~0.9.4",
                "pda/pheanstalk": "~3.0",
                "phpunit/phpunit": "~4.1",
                "predis/predis": "~1.0",
                "symfony/css-selector": "2.8.*|3.0.*",
                "symfony/dom-crawler": "2.8.*|3.0.*"
            },
            "suggest": {
                "aws/aws-sdk-php": "Required to use the SQS queue driver and SES mail driver (~3.0).",
                "doctrine/dbal": "Required to rename columns and drop SQLite columns (~2.4).",
                "fzaninotto/faker": "Required to use the eloquent factory builder (~1.4).",
                "guzzlehttp/guzzle": "Required to use the Mailgun and Mandrill mail drivers and the ping methods on schedules (~5.3|~6.0).",
                "league/flysystem-aws-s3-v3": "Required to use the Flysystem S3 driver (~1.0).",
                "league/flysystem-rackspace": "Required to use the Flysystem Rackspace driver (~1.0).",
                "pda/pheanstalk": "Required to use the beanstalk queue driver (~3.0).",
                "predis/predis": "Required to use the redis cache and queue drivers (~1.0).",
                "pusher/pusher-php-server": "Required to use the Pusher broadcast driver (~2.0).",
                "symfony/css-selector": "Required to use some of the crawler integration testing tools (2.8.*|3.0.*).",
                "symfony/dom-crawler": "Required to use most of the crawler integration testing tools (2.8.*|3.0.*).",
                "symfony/psr-http-message-bridge": "Required to psr7 bridging features (0.2.*)."
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "5.2-dev"
                }
            },
            "autoload": {
                "classmap": [
                    "src/Illuminate/Queue/IlluminateQueueClosure.php"
                ],
                "files": [
                    "src/Illuminate/Foundation/helpers.php",
                    "src/Illuminate/Support/helpers.php"
                ],
                "psr-4": {
                    "Illuminate\\": "src/Illuminate/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Taylor Otwell",
                    "email": "taylorotwell@gmail.com"
                }
            ],
            "description": "The Laravel Framework.",
            "homepage": "http://laravel.com",
            "keywords": [
                "framework",
                "laravel"
            ],
            "time": "2016-06-06 15:18:48"
        },
        {
            "name": "league/flysystem",
            "version": "1.0.24",
            "source": {
                "type": "git",
                "url": "https://github.com/thephpleague/flysystem.git",
                "reference": "9aca859a303fdca30370f42b8c611d9cf0dedf4b"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/9aca859a303fdca30370f42b8c611d9cf0dedf4b",
                "reference": "9aca859a303fdca30370f42b8c611d9cf0dedf4b",
                "shasum": ""
            },
            "require": {
                "php": ">=5.4.0"
            },
            "conflict": {
                "league/flysystem-sftp": "<1.0.6"
            },
            "require-dev": {
                "ext-fileinfo": "*",
                "mockery/mockery": "~0.9",
                "phpspec/phpspec": "^2.2",
                "phpunit/phpunit": "~4.8 || ~5.0"
            },
            "suggest": {
                "ext-fileinfo": "Required for MimeType",
                "league/flysystem-aws-s3-v2": "Allows you to use S3 storage with AWS SDK v2",
                "league/flysystem-aws-s3-v3": "Allows you to use S3 storage with AWS SDK v3",
                "league/flysystem-azure": "Allows you to use Windows Azure Blob storage",
                "league/flysystem-cached-adapter": "Flysystem adapter decorator for metadata caching",
                "league/flysystem-copy": "Allows you to use Copy.com storage",
                "league/flysystem-dropbox": "Allows you to use Dropbox storage",
                "league/flysystem-eventable-filesystem": "Allows you to use EventableFilesystem",
                "league/flysystem-rackspace": "Allows you to use Rackspace Cloud Files",
                "league/flysystem-sftp": "Allows you to use SFTP server storage via phpseclib",
                "league/flysystem-webdav": "Allows you to use WebDAV storage",
                "league/flysystem-ziparchive": "Allows you to use ZipArchive adapter"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "1.1-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "League\\Flysystem\\": "src/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Frank de Jonge",
                    "email": "info@frenky.net"
                }
            ],
            "description": "Filesystem abstraction: Many filesystems, one API.",
            "keywords": [
                "Cloud Files",
                "WebDAV",
                "abstraction",
                "aws",
                "cloud",
                "copy.com",
                "dropbox",
                "file systems",
                "files",
                "filesystem",
                "filesystems",
                "ftp",
                "rackspace",
                "remote",
                "s3",
                "sftp",
                "storage"
            ],
            "time": "2016-06-03 19:11:39"
        },
        {
            "name": "matto1990/lastfm-api",
            "version": "v1.2",
            "source": {
                "type": "git",
                "url": "https://github.com/matto1990/PHP-Last.fm-API.git",
                "reference": "1cf9a8947bf756beb876d5f8e2af398058805e08"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/matto1990/PHP-Last.fm-API/zipball/1cf9a8947bf756beb876d5f8e2af398058805e08",
                "reference": "1cf9a8947bf756beb876d5f8e2af398058805e08",
                "shasum": ""
            },
            "require": {
                "php": ">=5.3.3"
            },
            "require-dev": {
                "php": ">=5.3.3",
                "phpunit/phpunit": "~4.8"
            },
            "type": "library",
            "autoload": {
                "psr-4": {
                    "LastFmApi\\": "src/lastfmapi/",
                    "Tests\\": "tests"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Marcos",
                    "email": "devilcius@gmail.com"
                },
                {
                    "name": "Matt",
                    "email": "matt@oakes.ws"
                }
            ],
            "description": "Last.fm webservice client",
            "homepage": "https://github.com/matto1990/PHP-Last.fm-API",
            "keywords": [
                "api",
                "last.fm",
                "webservice client"
            ],
            "time": "2016-03-17 16:41:24"
        },
        {
            "name": "maximebf/debugbar",
            "version": "v1.11.1",
            "source": {
                "type": "git",
                "url": "https://github.com/maximebf/php-debugbar.git",
                "reference": "d9302891c1f0a0ac5a4f66725163a00537c6359f"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/maximebf/php-debugbar/zipball/d9302891c1f0a0ac5a4f66725163a00537c6359f",
                "reference": "d9302891c1f0a0ac5a4f66725163a00537c6359f",
                "shasum": ""
            },
            "require": {
                "php": ">=5.3.0",
                "psr/log": "^1.0",
                "symfony/var-dumper": "^2.6|^3.0"
            },
            "require-dev": {
                "phpunit/phpunit": "^4.0|^5.0"
            },
            "suggest": {
                "kriswallsmith/assetic": "The best way to manage assets",
                "monolog/monolog": "Log using Monolog",
                "predis/predis": "Redis storage"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "1.11-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "DebugBar\\": "src/DebugBar/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Maxime Bouroumeau-Fuseau",
                    "email": "maxime.bouroumeau@gmail.com",
                    "homepage": "http://maximebf.com"
                },
                {
                    "name": "Barry vd. Heuvel",
                    "email": "barryvdh@gmail.com"
                }
            ],
            "description": "Debug bar in the browser for php application",
            "homepage": "https://github.com/maximebf/php-debugbar",
            "keywords": [
                "debug",
                "debugbar"
            ],
            "time": "2016-01-22 12:22:23"
        },
        {
            "name": "monolog/monolog",
            "version": "1.19.0",
            "source": {
                "type": "git",
                "url": "https://github.com/Seldaek/monolog.git",
                "reference": "5f56ed5212dc509c8dc8caeba2715732abb32dbf"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/Seldaek/monolog/zipball/5f56ed5212dc509c8dc8caeba2715732abb32dbf",
                "reference": "5f56ed5212dc509c8dc8caeba2715732abb32dbf",
                "shasum": ""
            },
            "require": {
                "php": ">=5.3.0",
                "psr/log": "~1.0"
            },
            "provide": {
                "psr/log-implementation": "1.0.0"
            },
            "require-dev": {
                "aws/aws-sdk-php": "^2.4.9",
                "doctrine/couchdb": "~1.0@dev",
                "graylog2/gelf-php": "~1.0",
                "jakub-onderka/php-parallel-lint": "0.9",
                "php-amqplib/php-amqplib": "~2.4",
                "php-console/php-console": "^3.1.3",
                "phpunit/phpunit": "~4.5",
                "phpunit/phpunit-mock-objects": "2.3.0",
                "raven/raven": "^0.13",
                "ruflin/elastica": ">=0.90 <3.0",
                "swiftmailer/swiftmailer": "~5.3"
            },
            "suggest": {
                "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB",
                "doctrine/couchdb": "Allow sending log messages to a CouchDB server",
                "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)",
                "ext-mongo": "Allow sending log messages to a MongoDB server",
                "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server",
                "mongodb/mongodb": "Allow sending log messages to a MongoDB server via PHP Driver",
                "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib",
                "php-console/php-console": "Allow sending log messages to Google Chrome",
                "raven/raven": "Allow sending log messages to a Sentry server",
                "rollbar/rollbar": "Allow sending log messages to Rollbar",
                "ruflin/elastica": "Allow sending log messages to an Elastic Search server"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "2.0.x-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Monolog\\": "src/Monolog"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Jordi Boggiano",
                    "email": "j.boggiano@seld.be",
                    "homepage": "http://seld.be"
                }
            ],
            "description": "Sends your logs to files, sockets, inboxes, databases and various web services",
            "homepage": "http://github.com/Seldaek/monolog",
            "keywords": [
                "log",
                "logging",
                "psr-3"
            ],
            "time": "2016-04-12 18:29:35"
        },
        {
            "name": "mtdowling/cron-expression",
            "version": "v1.1.0",
            "source": {
                "type": "git",
                "url": "https://github.com/mtdowling/cron-expression.git",
                "reference": "c9ee7886f5a12902b225a1a12f36bb45f9ab89e5"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/mtdowling/cron-expression/zipball/c9ee7886f5a12902b225a1a12f36bb45f9ab89e5",
                "reference": "c9ee7886f5a12902b225a1a12f36bb45f9ab89e5",
                "shasum": ""
            },
            "require": {
                "php": ">=5.3.2"
            },
            "require-dev": {
                "phpunit/phpunit": "~4.0|~5.0"
            },
            "type": "library",
            "autoload": {
                "psr-0": {
                    "Cron": "src/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Michael Dowling",
                    "email": "mtdowling@gmail.com",
                    "homepage": "https://github.com/mtdowling"
                }
            ],
            "description": "CRON for PHP: Calculate the next or previous run date and determine if a CRON expression is due",
            "keywords": [
                "cron",
                "schedule"
            ],
            "time": "2016-01-26 21:23:30"
        },
        {
            "name": "nesbot/carbon",
            "version": "1.21.0",
            "source": {
                "type": "git",
                "url": "https://github.com/briannesbitt/Carbon.git",
                "reference": "7b08ec6f75791e130012f206e3f7b0e76e18e3d7"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/7b08ec6f75791e130012f206e3f7b0e76e18e3d7",
                "reference": "7b08ec6f75791e130012f206e3f7b0e76e18e3d7",
                "shasum": ""
            },
            "require": {
                "php": ">=5.3.0",
                "symfony/translation": "~2.6|~3.0"
            },
            "require-dev": {
                "phpunit/phpunit": "~4.0|~5.0"
            },
            "type": "library",
            "autoload": {
                "psr-4": {
                    "Carbon\\": "src/Carbon/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Brian Nesbitt",
                    "email": "brian@nesbot.com",
                    "homepage": "http://nesbot.com"
                }
            ],
            "description": "A simple API extension for DateTime.",
            "homepage": "http://carbon.nesbot.com",
            "keywords": [
                "date",
                "datetime",
                "time"
            ],
            "time": "2015-11-04 20:07:17"
        },
        {
            "name": "nikic/php-parser",
            "version": "v2.1.0",
            "source": {
                "type": "git",
                "url": "https://github.com/nikic/PHP-Parser.git",
                "reference": "47b254ea51f1d6d5dc04b9b299e88346bf2369e3"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/47b254ea51f1d6d5dc04b9b299e88346bf2369e3",
                "reference": "47b254ea51f1d6d5dc04b9b299e88346bf2369e3",
                "shasum": ""
            },
            "require": {
                "ext-tokenizer": "*",
                "php": ">=5.4"
            },
            "require-dev": {
                "phpunit/phpunit": "~4.0"
            },
            "bin": [
                "bin/php-parse"
            ],
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "2.1-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "PhpParser\\": "lib/PhpParser"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "BSD-3-Clause"
            ],
            "authors": [
                {
                    "name": "Nikita Popov"
                }
            ],
            "description": "A PHP parser written in PHP",
            "keywords": [
                "parser",
                "php"
            ],
            "time": "2016-04-19 13:41:41"
        },
        {
            "name": "paragonie/random_compat",
            "version": "v1.4.1",
            "source": {
                "type": "git",
                "url": "https://github.com/paragonie/random_compat.git",
                "reference": "c7e26a21ba357863de030f0b9e701c7d04593774"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/paragonie/random_compat/zipball/c7e26a21ba357863de030f0b9e701c7d04593774",
                "reference": "c7e26a21ba357863de030f0b9e701c7d04593774",
                "shasum": ""
            },
            "require": {
                "php": ">=5.2.0"
            },
            "require-dev": {
                "phpunit/phpunit": "4.*|5.*"
            },
            "suggest": {
                "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes."
            },
            "type": "library",
            "autoload": {
                "files": [
                    "lib/random.php"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Paragon Initiative Enterprises",
                    "email": "security@paragonie.com",
                    "homepage": "https://paragonie.com"
                }
            ],
            "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7",
            "keywords": [
                "csprng",
                "pseudorandom",
                "random"
            ],
            "time": "2016-03-18 20:34:03"
        },
        {
            "name": "phpdocumentor/reflection-docblock",
            "version": "2.0.4",
            "source": {
                "type": "git",
                "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
                "reference": "d68dbdc53dc358a816f00b300704702b2eaff7b8"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/d68dbdc53dc358a816f00b300704702b2eaff7b8",
                "reference": "d68dbdc53dc358a816f00b300704702b2eaff7b8",
                "shasum": ""
            },
            "require": {
                "php": ">=5.3.3"
            },
            "require-dev": {
                "phpunit/phpunit": "~4.0"
            },
            "suggest": {
                "dflydev/markdown": "~1.0",
                "erusev/parsedown": "~1.0"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "2.0.x-dev"
                }
            },
            "autoload": {
                "psr-0": {
                    "phpDocumentor": [
                        "src/"
                    ]
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Mike van Riel",
                    "email": "mike.vanriel@naenius.com"
                }
            ],
            "time": "2015-02-03 12:10:50"
        },
        {
            "name": "psr/log",
            "version": "1.0.0",
            "source": {
                "type": "git",
                "url": "https://github.com/php-fig/log.git",
                "reference": "fe0936ee26643249e916849d48e3a51d5f5e278b"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/php-fig/log/zipball/fe0936ee26643249e916849d48e3a51d5f5e278b",
                "reference": "fe0936ee26643249e916849d48e3a51d5f5e278b",
                "shasum": ""
            },
            "type": "library",
            "autoload": {
                "psr-0": {
                    "Psr\\Log\\": ""
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "PHP-FIG",
                    "homepage": "http://www.php-fig.org/"
                }
            ],
            "description": "Common interface for logging libraries",
            "keywords": [
                "log",
                "psr",
                "psr-3"
            ],
            "time": "2012-12-21 11:40:51"
        },
        {
            "name": "psy/psysh",
            "version": "v0.7.2",
            "source": {
                "type": "git",
                "url": "https://github.com/bobthecow/psysh.git",
                "reference": "e64e10b20f8d229cac76399e1f3edddb57a0f280"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/bobthecow/psysh/zipball/e64e10b20f8d229cac76399e1f3edddb57a0f280",
                "reference": "e64e10b20f8d229cac76399e1f3edddb57a0f280",
                "shasum": ""
            },
            "require": {
                "dnoegel/php-xdg-base-dir": "0.1",
                "jakub-onderka/php-console-highlighter": "0.3.*",
                "nikic/php-parser": "^1.2.1|~2.0",
                "php": ">=5.3.9",
                "symfony/console": "~2.3.10|^2.4.2|~3.0",
                "symfony/var-dumper": "~2.7|~3.0"
            },
            "require-dev": {
                "fabpot/php-cs-fixer": "~1.5",
                "phpunit/phpunit": "~3.7|~4.0|~5.0",
                "squizlabs/php_codesniffer": "~2.0",
                "symfony/finder": "~2.1|~3.0"
            },
            "suggest": {
                "ext-pcntl": "Enabling the PCNTL extension makes PsySH a lot happier :)",
                "ext-pdo-sqlite": "The doc command requires SQLite to work.",
                "ext-posix": "If you have PCNTL, you'll want the POSIX extension as well.",
                "ext-readline": "Enables support for arrow-key history navigation, and showing and manipulating command history."
            },
            "bin": [
                "bin/psysh"
            ],
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-develop": "0.8.x-dev"
                }
            },
            "autoload": {
                "files": [
                    "src/Psy/functions.php"
                ],
                "psr-4": {
                    "Psy\\": "src/Psy/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Justin Hileman",
                    "email": "justin@justinhileman.info",
                    "homepage": "http://justinhileman.com"
                }
            ],
            "description": "An interactive shell for modern PHP.",
            "homepage": "http://psysh.org",
            "keywords": [
                "REPL",
                "console",
                "interactive",
                "shell"
            ],
            "time": "2016-03-09 05:03:14"
        },
        {
            "name": "pusher/pusher-php-server",
            "version": "v2.4.1",
            "source": {
                "type": "git",
                "url": "https://github.com/pusher/pusher-http-php.git",
                "reference": "b3984a9f6fd65e39b7d6de9bb7d67656ff286f0f"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/pusher/pusher-http-php/zipball/b3984a9f6fd65e39b7d6de9bb7d67656ff286f0f",
                "reference": "b3984a9f6fd65e39b7d6de9bb7d67656ff286f0f",
                "shasum": ""
            },
            "require": {
                "ext-curl": "*",
                "php": ">=5.2"
            },
            "require-dev": {
                "phpunit/phpunit": "~4"
            },
            "type": "library",
            "autoload": {
                "classmap": [
                    "lib/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "description": "Library for interacting with the Pusher REST API",
            "homepage": "https://github.com/pusher/pusher-php-server",
            "keywords": [
                "events",
                "php-pusher-server",
                "publish",
                "pusher",
                "realtime",
                "rest",
                "trigger"
            ],
            "time": "2016-05-27 08:42:18"
        },
        {
            "name": "swiftmailer/swiftmailer",
            "version": "v5.4.2",
            "source": {
                "type": "git",
                "url": "https://github.com/swiftmailer/swiftmailer.git",
                "reference": "d8db871a54619458a805229a057ea2af33c753e8"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/d8db871a54619458a805229a057ea2af33c753e8",
                "reference": "d8db871a54619458a805229a057ea2af33c753e8",
                "shasum": ""
            },
            "require": {
                "php": ">=5.3.3"
            },
            "require-dev": {
                "mockery/mockery": "~0.9.1,<0.9.4"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "5.4-dev"
                }
            },
            "autoload": {
                "files": [
                    "lib/swift_required.php"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Chris Corbyn"
                },
                {
                    "name": "Fabien Potencier",
                    "email": "fabien@symfony.com"
                }
            ],
            "description": "Swiftmailer, free feature-rich PHP mailer",
            "homepage": "http://swiftmailer.org",
            "keywords": [
                "email",
                "mail",
                "mailer"
            ],
            "time": "2016-05-01 08:45:47"
        },
        {
            "name": "symfony/class-loader",
            "version": "v3.1.0",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/class-loader.git",
                "reference": "6ebc60f69a6df4b3cf5ad6f260ba4edf5957ea05"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/class-loader/zipball/6ebc60f69a6df4b3cf5ad6f260ba4edf5957ea05",
                "reference": "6ebc60f69a6df4b3cf5ad6f260ba4edf5957ea05",
                "shasum": ""
            },
            "require": {
                "php": ">=5.5.9"
            },
            "require-dev": {
                "symfony/finder": "~2.8|~3.0",
                "symfony/polyfill-apcu": "~1.1"
            },
            "suggest": {
                "symfony/polyfill-apcu": "For using ApcClassLoader on HHVM"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "3.1-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Symfony\\Component\\ClassLoader\\": ""
                },
                "exclude-from-classmap": [
                    "/Tests/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Fabien Potencier",
                    "email": "fabien@symfony.com"
                },
                {
                    "name": "Symfony Community",
                    "homepage": "https://symfony.com/contributors"
                }
            ],
            "description": "Symfony ClassLoader Component",
            "homepage": "https://symfony.com",
            "time": "2016-03-30 10:41:47"
        },
        {
            "name": "symfony/console",
            "version": "v3.0.7",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/console.git",
                "reference": "382fc9ed852edabd6133e34f8549d7a7d99db115"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/console/zipball/382fc9ed852edabd6133e34f8549d7a7d99db115",
                "reference": "382fc9ed852edabd6133e34f8549d7a7d99db115",
                "shasum": ""
            },
            "require": {
                "php": ">=5.5.9",
                "symfony/polyfill-mbstring": "~1.0"
            },
            "require-dev": {
                "psr/log": "~1.0",
                "symfony/event-dispatcher": "~2.8|~3.0",
                "symfony/process": "~2.8|~3.0"
            },
            "suggest": {
                "psr/log": "For using the console logger",
                "symfony/event-dispatcher": "",
                "symfony/process": ""
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "3.0-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Symfony\\Component\\Console\\": ""
                },
                "exclude-from-classmap": [
                    "/Tests/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Fabien Potencier",
                    "email": "fabien@symfony.com"
                },
                {
                    "name": "Symfony Community",
                    "homepage": "https://symfony.com/contributors"
                }
            ],
            "description": "Symfony Console Component",
            "homepage": "https://symfony.com",
            "time": "2016-06-06 15:08:35"
        },
        {
            "name": "symfony/debug",
            "version": "v3.0.7",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/debug.git",
                "reference": "e67e1552dd7313df1cf6535cb606751899e0e727"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/debug/zipball/e67e1552dd7313df1cf6535cb606751899e0e727",
                "reference": "e67e1552dd7313df1cf6535cb606751899e0e727",
                "shasum": ""
            },
            "require": {
                "php": ">=5.5.9",
                "psr/log": "~1.0"
            },
            "conflict": {
                "symfony/http-kernel": ">=2.3,<2.3.24|~2.4.0|>=2.5,<2.5.9|>=2.6,<2.6.2"
            },
            "require-dev": {
                "symfony/class-loader": "~2.8|~3.0",
                "symfony/http-kernel": "~2.8|~3.0"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "3.0-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Symfony\\Component\\Debug\\": ""
                },
                "exclude-from-classmap": [
                    "/Tests/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Fabien Potencier",
                    "email": "fabien@symfony.com"
                },
                {
                    "name": "Symfony Community",
                    "homepage": "https://symfony.com/contributors"
                }
            ],
            "description": "Symfony Debug Component",
            "homepage": "https://symfony.com",
            "time": "2016-06-06 15:08:35"
        },
        {
            "name": "symfony/event-dispatcher",
            "version": "v3.1.0",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/event-dispatcher.git",
                "reference": "0343b2cedd0edb26cdc791212a8eb645c406018b"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/0343b2cedd0edb26cdc791212a8eb645c406018b",
                "reference": "0343b2cedd0edb26cdc791212a8eb645c406018b",
                "shasum": ""
            },
            "require": {
                "php": ">=5.5.9"
            },
            "require-dev": {
                "psr/log": "~1.0",
                "symfony/config": "~2.8|~3.0",
                "symfony/dependency-injection": "~2.8|~3.0",
                "symfony/expression-language": "~2.8|~3.0",
                "symfony/stopwatch": "~2.8|~3.0"
            },
            "suggest": {
                "symfony/dependency-injection": "",
                "symfony/http-kernel": ""
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "3.1-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Symfony\\Component\\EventDispatcher\\": ""
                },
                "exclude-from-classmap": [
                    "/Tests/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Fabien Potencier",
                    "email": "fabien@symfony.com"
                },
                {
                    "name": "Symfony Community",
                    "homepage": "https://symfony.com/contributors"
                }
            ],
            "description": "Symfony EventDispatcher Component",
            "homepage": "https://symfony.com",
            "time": "2016-04-12 18:27:47"
        },
        {
            "name": "symfony/finder",
            "version": "v3.0.7",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/finder.git",
                "reference": "39e5f3d533d07b5416b9d7aad53a27f939d4f811"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/finder/zipball/39e5f3d533d07b5416b9d7aad53a27f939d4f811",
                "reference": "39e5f3d533d07b5416b9d7aad53a27f939d4f811",
                "shasum": ""
            },
            "require": {
                "php": ">=5.5.9"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "3.0-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Symfony\\Component\\Finder\\": ""
                },
                "exclude-from-classmap": [
                    "/Tests/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Fabien Potencier",
                    "email": "fabien@symfony.com"
                },
                {
                    "name": "Symfony Community",
                    "homepage": "https://symfony.com/contributors"
                }
            ],
            "description": "Symfony Finder Component",
            "homepage": "https://symfony.com",
            "time": "2016-05-13 18:03:36"
        },
        {
            "name": "symfony/http-foundation",
            "version": "v3.0.7",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/http-foundation.git",
                "reference": "d268a643884f85e91d6ba11ca68de96833f3f6e5"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/http-foundation/zipball/d268a643884f85e91d6ba11ca68de96833f3f6e5",
                "reference": "d268a643884f85e91d6ba11ca68de96833f3f6e5",
                "shasum": ""
            },
            "require": {
                "php": ">=5.5.9",
                "symfony/polyfill-mbstring": "~1.1"
            },
            "require-dev": {
                "symfony/expression-language": "~2.8|~3.0"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "3.0-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Symfony\\Component\\HttpFoundation\\": ""
                },
                "exclude-from-classmap": [
                    "/Tests/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Fabien Potencier",
                    "email": "fabien@symfony.com"
                },
                {
                    "name": "Symfony Community",
                    "homepage": "https://symfony.com/contributors"
                }
            ],
            "description": "Symfony HttpFoundation Component",
            "homepage": "https://symfony.com",
            "time": "2016-06-06 11:33:26"
        },
        {
            "name": "symfony/http-kernel",
            "version": "v3.0.7",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/http-kernel.git",
                "reference": "97cc1c15e3406e7a2adf14ad6b0e41a04d4a6fc4"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/http-kernel/zipball/97cc1c15e3406e7a2adf14ad6b0e41a04d4a6fc4",
                "reference": "97cc1c15e3406e7a2adf14ad6b0e41a04d4a6fc4",
                "shasum": ""
            },
            "require": {
                "php": ">=5.5.9",
                "psr/log": "~1.0",
                "symfony/debug": "~2.8|~3.0",
                "symfony/event-dispatcher": "~2.8|~3.0",
                "symfony/http-foundation": "~2.8|~3.0"
            },
            "conflict": {
                "symfony/config": "<2.8"
            },
            "require-dev": {
                "symfony/browser-kit": "~2.8|~3.0",
                "symfony/class-loader": "~2.8|~3.0",
                "symfony/config": "~2.8|~3.0",
                "symfony/console": "~2.8|~3.0",
                "symfony/css-selector": "~2.8|~3.0",
                "symfony/dependency-injection": "~2.8|~3.0",
                "symfony/dom-crawler": "~2.8|~3.0",
                "symfony/expression-language": "~2.8|~3.0",
                "symfony/finder": "~2.8|~3.0",
                "symfony/process": "~2.8|~3.0",
                "symfony/routing": "~2.8|~3.0",
                "symfony/stopwatch": "~2.8|~3.0",
                "symfony/templating": "~2.8|~3.0",
                "symfony/translation": "~2.8|~3.0",
                "symfony/var-dumper": "~2.8|~3.0"
            },
            "suggest": {
                "symfony/browser-kit": "",
                "symfony/class-loader": "",
                "symfony/config": "",
                "symfony/console": "",
                "symfony/dependency-injection": "",
                "symfony/finder": "",
                "symfony/var-dumper": ""
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "3.0-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Symfony\\Component\\HttpKernel\\": ""
                },
                "exclude-from-classmap": [
                    "/Tests/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Fabien Potencier",
                    "email": "fabien@symfony.com"
                },
                {
                    "name": "Symfony Community",
                    "homepage": "https://symfony.com/contributors"
                }
            ],
            "description": "Symfony HttpKernel Component",
            "homepage": "https://symfony.com",
            "time": "2016-06-06 16:52:35"
        },
        {
            "name": "symfony/polyfill-mbstring",
            "version": "v1.2.0",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/polyfill-mbstring.git",
                "reference": "dff51f72b0706335131b00a7f49606168c582594"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/dff51f72b0706335131b00a7f49606168c582594",
                "reference": "dff51f72b0706335131b00a7f49606168c582594",
                "shasum": ""
            },
            "require": {
                "php": ">=5.3.3"
            },
            "suggest": {
                "ext-mbstring": "For best performance"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "1.2-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Symfony\\Polyfill\\Mbstring\\": ""
                },
                "files": [
                    "bootstrap.php"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Nicolas Grekas",
                    "email": "p@tchwork.com"
                },
                {
                    "name": "Symfony Community",
                    "homepage": "https://symfony.com/contributors"
                }
            ],
            "description": "Symfony polyfill for the Mbstring extension",
            "homepage": "https://symfony.com",
            "keywords": [
                "compatibility",
                "mbstring",
                "polyfill",
                "portable",
                "shim"
            ],
            "time": "2016-05-18 14:26:46"
        },
        {
            "name": "symfony/polyfill-php56",
            "version": "v1.2.0",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/polyfill-php56.git",
                "reference": "3edf57a8fbf9a927533344cef65ad7e1cf31030a"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/polyfill-php56/zipball/3edf57a8fbf9a927533344cef65ad7e1cf31030a",
                "reference": "3edf57a8fbf9a927533344cef65ad7e1cf31030a",
                "shasum": ""
            },
            "require": {
                "php": ">=5.3.3",
                "symfony/polyfill-util": "~1.0"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "1.2-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Symfony\\Polyfill\\Php56\\": ""
                },
                "files": [
                    "bootstrap.php"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Nicolas Grekas",
                    "email": "p@tchwork.com"
                },
                {
                    "name": "Symfony Community",
                    "homepage": "https://symfony.com/contributors"
                }
            ],
            "description": "Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions",
            "homepage": "https://symfony.com",
            "keywords": [
                "compatibility",
                "polyfill",
                "portable",
                "shim"
            ],
            "time": "2016-05-18 14:26:46"
        },
        {
            "name": "symfony/polyfill-util",
            "version": "v1.2.0",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/polyfill-util.git",
                "reference": "ef830ce3d218e622b221d6bfad42c751d974bf99"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/polyfill-util/zipball/ef830ce3d218e622b221d6bfad42c751d974bf99",
                "reference": "ef830ce3d218e622b221d6bfad42c751d974bf99",
                "shasum": ""
            },
            "require": {
                "php": ">=5.3.3"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "1.2-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Symfony\\Polyfill\\Util\\": ""
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Nicolas Grekas",
                    "email": "p@tchwork.com"
                },
                {
                    "name": "Symfony Community",
                    "homepage": "https://symfony.com/contributors"
                }
            ],
            "description": "Symfony utilities for portability of PHP codes",
            "homepage": "https://symfony.com",
            "keywords": [
                "compat",
                "compatibility",
                "polyfill",
                "shim"
            ],
            "time": "2016-05-18 14:26:46"
        },
        {
            "name": "symfony/process",
            "version": "v3.0.7",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/process.git",
                "reference": "bf6e2d1fa8b93fdd7cca6b684c0ea213cf0255dd"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/process/zipball/bf6e2d1fa8b93fdd7cca6b684c0ea213cf0255dd",
                "reference": "bf6e2d1fa8b93fdd7cca6b684c0ea213cf0255dd",
                "shasum": ""
            },
            "require": {
                "php": ">=5.5.9"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "3.0-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Symfony\\Component\\Process\\": ""
                },
                "exclude-from-classmap": [
                    "/Tests/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Fabien Potencier",
                    "email": "fabien@symfony.com"
                },
                {
                    "name": "Symfony Community",
                    "homepage": "https://symfony.com/contributors"
                }
            ],
            "description": "Symfony Process Component",
            "homepage": "https://symfony.com",
            "time": "2016-06-06 11:33:26"
        },
        {
            "name": "symfony/routing",
            "version": "v3.0.7",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/routing.git",
                "reference": "c780454838a1131adc756d737a4b4cc1d18f8c64"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/routing/zipball/c780454838a1131adc756d737a4b4cc1d18f8c64",
                "reference": "c780454838a1131adc756d737a4b4cc1d18f8c64",
                "shasum": ""
            },
            "require": {
                "php": ">=5.5.9"
            },
            "conflict": {
                "symfony/config": "<2.8"
            },
            "require-dev": {
                "doctrine/annotations": "~1.0",
                "doctrine/common": "~2.2",
                "psr/log": "~1.0",
                "symfony/config": "~2.8|~3.0",
                "symfony/expression-language": "~2.8|~3.0",
                "symfony/http-foundation": "~2.8|~3.0",
                "symfony/yaml": "~2.8|~3.0"
            },
            "suggest": {
                "doctrine/annotations": "For using the annotation loader",
                "symfony/config": "For using the all-in-one router or any loader",
                "symfony/dependency-injection": "For loading routes from a service",
                "symfony/expression-language": "For using expression matching",
                "symfony/http-foundation": "For using a Symfony Request object",
                "symfony/yaml": "For using the YAML loader"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "3.0-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Symfony\\Component\\Routing\\": ""
                },
                "exclude-from-classmap": [
                    "/Tests/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Fabien Potencier",
                    "email": "fabien@symfony.com"
                },
                {
                    "name": "Symfony Community",
                    "homepage": "https://symfony.com/contributors"
                }
            ],
            "description": "Symfony Routing Component",
            "homepage": "https://symfony.com",
            "keywords": [
                "router",
                "routing",
                "uri",
                "url"
            ],
            "time": "2016-05-30 06:58:27"
        },
        {
            "name": "symfony/translation",
            "version": "v3.0.7",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/translation.git",
                "reference": "2b0aacaa613c0ec1ad8046f972d8abdcb19c1db7"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/translation/zipball/2b0aacaa613c0ec1ad8046f972d8abdcb19c1db7",
                "reference": "2b0aacaa613c0ec1ad8046f972d8abdcb19c1db7",
                "shasum": ""
            },
            "require": {
                "php": ">=5.5.9",
                "symfony/polyfill-mbstring": "~1.0"
            },
            "conflict": {
                "symfony/config": "<2.8"
            },
            "require-dev": {
                "psr/log": "~1.0",
                "symfony/config": "~2.8|~3.0",
                "symfony/intl": "~2.8|~3.0",
                "symfony/yaml": "~2.8|~3.0"
            },
            "suggest": {
                "psr/log": "To use logging capability in translator",
                "symfony/config": "",
                "symfony/yaml": ""
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "3.0-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Symfony\\Component\\Translation\\": ""
                },
                "exclude-from-classmap": [
                    "/Tests/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Fabien Potencier",
                    "email": "fabien@symfony.com"
                },
                {
                    "name": "Symfony Community",
                    "homepage": "https://symfony.com/contributors"
                }
            ],
            "description": "Symfony Translation Component",
            "homepage": "https://symfony.com",
            "time": "2016-06-06 11:33:26"
        },
        {
            "name": "symfony/var-dumper",
            "version": "v3.0.7",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/var-dumper.git",
                "reference": "d8bb851da153d97abe7c2b71a65dee19f324bcf7"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/var-dumper/zipball/d8bb851da153d97abe7c2b71a65dee19f324bcf7",
                "reference": "d8bb851da153d97abe7c2b71a65dee19f324bcf7",
                "shasum": ""
            },
            "require": {
                "php": ">=5.5.9",
                "symfony/polyfill-mbstring": "~1.0"
            },
            "require-dev": {
                "twig/twig": "~1.20|~2.0"
            },
            "suggest": {
                "ext-symfony_debug": ""
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "3.0-dev"
                }
            },
            "autoload": {
                "files": [
                    "Resources/functions/dump.php"
                ],
                "psr-4": {
                    "Symfony\\Component\\VarDumper\\": ""
                },
                "exclude-from-classmap": [
                    "/Tests/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Nicolas Grekas",
                    "email": "p@tchwork.com"
                },
                {
                    "name": "Symfony Community",
                    "homepage": "https://symfony.com/contributors"
                }
            ],
            "description": "Symfony mechanism for exploring and dumping PHP variables",
            "homepage": "https://symfony.com",
            "keywords": [
                "debug",
                "dump"
            ],
            "time": "2016-05-24 10:03:10"
        },
        {
            "name": "vinkla/pusher",
            "version": "2.3.0",
            "source": {
                "type": "git",
                "url": "https://github.com/vinkla/pusher.git",
                "reference": "80ad214d049fe41e2524933721308baafeeaa98d"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/vinkla/pusher/zipball/80ad214d049fe41e2524933721308baafeeaa98d",
                "reference": "80ad214d049fe41e2524933721308baafeeaa98d",
                "shasum": ""
            },
            "require": {
                "graham-campbell/manager": "^2.3",
                "illuminate/contracts": "5.1.* || 5.2.* || 5.3.*",
                "illuminate/support": "5.1.* || 5.2.* || 5.3.*",
                "php": "^5.5.9 || ^7.0",
                "pusher/pusher-php-server": "^2.2.1"
            },
            "require-dev": {
                "graham-campbell/testbench": "^3.1",
                "mockery/mockery": "^0.9.4",
                "phpunit/phpunit": "^4.8 || ^5.0"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "2.3-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Vinkla\\Pusher\\": "src/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Vincent Klaiber",
                    "email": "hello@vinkla.com"
                }
            ],
            "description": "A Pusher bridge for Laravel",
            "keywords": [
                "api",
                "events",
                "http",
                "laravel",
                "php-pusher-server",
                "publish",
                "pusher",
                "realtime",
                "rest",
                "trigger"
            ],
            "time": "2016-05-05 11:04:11"
        },
        {
            "name": "vlucas/phpdotenv",
            "version": "v2.2.1",
            "source": {
                "type": "git",
                "url": "https://github.com/vlucas/phpdotenv.git",
                "reference": "63f37b9395e8041cd4313129c08ece896d06ca8e"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/63f37b9395e8041cd4313129c08ece896d06ca8e",
                "reference": "63f37b9395e8041cd4313129c08ece896d06ca8e",
                "shasum": ""
            },
            "require": {
                "php": ">=5.3.9"
            },
            "require-dev": {
                "phpunit/phpunit": "^4.8 || ^5.0"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "2.2-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Dotenv\\": "src/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "BSD-3-Clause-Attribution"
            ],
            "authors": [
                {
                    "name": "Vance Lucas",
                    "email": "vance@vancelucas.com",
                    "homepage": "http://www.vancelucas.com"
                }
            ],
            "description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.",
            "keywords": [
                "dotenv",
                "env",
                "environment"
            ],
            "time": "2016-04-15 10:48:49"
        },
        {
            "name": "watson/rememberable",
            "version": "1.0.4",
            "source": {
                "type": "git",
                "url": "https://github.com/dwightwatson/rememberable.git",
                "reference": "9e74458559d90433e622d5701f3a10704d9a2441"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/dwightwatson/rememberable/zipball/9e74458559d90433e622d5701f3a10704d9a2441",
                "reference": "9e74458559d90433e622d5701f3a10704d9a2441",
                "shasum": ""
            },
            "require": {
                "illuminate/database": "~5.0",
                "illuminate/support": "~5.0",
                "php": ">=5.4.0"
            },
            "require-dev": {
                "mockery/mockery": "0.9.*",
                "phpunit/phpunit": "4.2.*"
            },
            "type": "library",
            "autoload": {
                "psr-4": {
                    "Watson\\Rememberable\\": "src/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Dwight Watson",
                    "email": "dwight@studiousapp.com"
                }
            ],
            "description": "Query caching for Laravel 5",
            "keywords": [
                "caching",
                "eloquent",
                "laravel",
                "remember"
            ],
            "time": "2016-05-26 06:45:47"
        },
        {
            "name": "xinax/laravel-gettext",
            "version": "3.1.1",
            "source": {
                "type": "git",
                "url": "https://github.com/xinax/laravel-gettext.git",
                "reference": "442a828c5d0a0d92bef5720e8e37664d11554bf1"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/xinax/laravel-gettext/zipball/442a828c5d0a0d92bef5720e8e37664d11554bf1",
                "reference": "442a828c5d0a0d92bef5720e8e37664d11554bf1",
                "shasum": ""
            },
            "require": {
                "laravel/framework": "5.*",
                "php": ">=5.4.0"
            },
            "require-dev": {
                "mockery/mockery": "dev-master",
                "phpunit/phpunit": "~4.0",
                "squizlabs/php_codesniffer": "1.5.*"
            },
            "type": "library",
            "autoload": {
                "psr-0": {
                    "Xinax\\LaravelGettext\\": "src/"
                },
                "files": [
                    "src/Xinax/LaravelGettext/Support/helpers.php"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Nicolás Daniel Palumbo",
                    "email": "n@xinax.net"
                }
            ],
            "description": "Adds localization support to laravel applications in an easy way using PoEdit and GNU-Gettext.",
            "homepage": "https://github.com/xinax/laravel-gettext",
            "keywords": [
                "gettext",
                "laravel",
                "laravel-gettext",
                "localization",
                "poEdit",
                "translation"
            ],
            "time": "2016-03-10 13:02:54"
        }
    ],
    "packages-dev": [
        {
            "name": "doctrine/instantiator",
            "version": "1.0.5",
            "source": {
                "type": "git",
                "url": "https://github.com/doctrine/instantiator.git",
                "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d",
                "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d",
                "shasum": ""
            },
            "require": {
                "php": ">=5.3,<8.0-DEV"
            },
            "require-dev": {
                "athletic/athletic": "~0.1.8",
                "ext-pdo": "*",
                "ext-phar": "*",
                "phpunit/phpunit": "~4.0",
                "squizlabs/php_codesniffer": "~2.0"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "1.0.x-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Marco Pivetta",
                    "email": "ocramius@gmail.com",
                    "homepage": "http://ocramius.github.com/"
                }
            ],
            "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
            "homepage": "https://github.com/doctrine/instantiator",
            "keywords": [
                "constructor",
                "instantiate"
            ],
            "time": "2015-06-14 21:17:01"
        },
        {
            "name": "fzaninotto/faker",
            "version": "v1.6.0",
            "source": {
                "type": "git",
                "url": "https://github.com/fzaninotto/Faker.git",
                "reference": "44f9a286a04b80c76a4e5fb7aad8bb539b920123"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/fzaninotto/Faker/zipball/44f9a286a04b80c76a4e5fb7aad8bb539b920123",
                "reference": "44f9a286a04b80c76a4e5fb7aad8bb539b920123",
                "shasum": ""
            },
            "require": {
                "php": "^5.3.3|^7.0"
            },
            "require-dev": {
                "ext-intl": "*",
                "phpunit/phpunit": "~4.0",
                "squizlabs/php_codesniffer": "~1.5"
            },
            "type": "library",
            "extra": {
                "branch-alias": []
            },
            "autoload": {
                "psr-4": {
                    "Faker\\": "src/Faker/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "François Zaninotto"
                }
            ],
            "description": "Faker is a PHP library that generates fake data for you.",
            "keywords": [
                "data",
                "faker",
                "fixtures"
            ],
            "time": "2016-04-29 12:21:54"
        },
        {
            "name": "hamcrest/hamcrest-php",
            "version": "v1.2.2",
            "source": {
                "type": "git",
                "url": "https://github.com/hamcrest/hamcrest-php.git",
                "reference": "b37020aa976fa52d3de9aa904aa2522dc518f79c"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/hamcrest/hamcrest-php/zipball/b37020aa976fa52d3de9aa904aa2522dc518f79c",
                "reference": "b37020aa976fa52d3de9aa904aa2522dc518f79c",
                "shasum": ""
            },
            "require": {
                "php": ">=5.3.2"
            },
            "replace": {
                "cordoval/hamcrest-php": "*",
                "davedevelopment/hamcrest-php": "*",
                "kodova/hamcrest-php": "*"
            },
            "require-dev": {
                "phpunit/php-file-iterator": "1.3.3",
                "satooshi/php-coveralls": "dev-master"
            },
            "type": "library",
            "autoload": {
                "classmap": [
                    "hamcrest"
                ],
                "files": [
                    "hamcrest/Hamcrest.php"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "BSD"
            ],
            "description": "This is the PHP port of Hamcrest Matchers",
            "keywords": [
                "test"
            ],
            "time": "2015-05-11 14:41:42"
        },
        {
            "name": "mockery/mockery",
            "version": "0.9.5",
            "source": {
                "type": "git",
                "url": "https://github.com/padraic/mockery.git",
                "reference": "4db079511a283e5aba1b3c2fb19037c645e70fc2"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/padraic/mockery/zipball/4db079511a283e5aba1b3c2fb19037c645e70fc2",
                "reference": "4db079511a283e5aba1b3c2fb19037c645e70fc2",
                "shasum": ""
            },
            "require": {
                "hamcrest/hamcrest-php": "~1.1",
                "lib-pcre": ">=7.0",
                "php": ">=5.3.2"
            },
            "require-dev": {
                "phpunit/phpunit": "~4.0"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "0.9.x-dev"
                }
            },
            "autoload": {
                "psr-0": {
                    "Mockery": "library/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "BSD-3-Clause"
            ],
            "authors": [
                {
                    "name": "Pádraic Brady",
                    "email": "padraic.brady@gmail.com",
                    "homepage": "http://blog.astrumfutura.com"
                },
                {
                    "name": "Dave Marshall",
                    "email": "dave.marshall@atstsolutions.co.uk",
                    "homepage": "http://davedevelopment.co.uk"
                }
            ],
            "description": "Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending.",
            "homepage": "http://github.com/padraic/mockery",
            "keywords": [
                "BDD",
                "TDD",
                "library",
                "mock",
                "mock objects",
                "mockery",
                "stub",
                "test",
                "test double",
                "testing"
            ],
            "time": "2016-05-22 21:52:33"
        },
        {
            "name": "phpspec/prophecy",
            "version": "v1.6.0",
            "source": {
                "type": "git",
                "url": "https://github.com/phpspec/prophecy.git",
                "reference": "3c91bdf81797d725b14cb62906f9a4ce44235972"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/phpspec/prophecy/zipball/3c91bdf81797d725b14cb62906f9a4ce44235972",
                "reference": "3c91bdf81797d725b14cb62906f9a4ce44235972",
                "shasum": ""
            },
            "require": {
                "doctrine/instantiator": "^1.0.2",
                "php": "^5.3|^7.0",
                "phpdocumentor/reflection-docblock": "~2.0",
                "sebastian/comparator": "~1.1",
                "sebastian/recursion-context": "~1.0"
            },
            "require-dev": {
                "phpspec/phpspec": "~2.0"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "1.5.x-dev"
                }
            },
            "autoload": {
                "psr-0": {
                    "Prophecy\\": "src/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Konstantin Kudryashov",
                    "email": "ever.zet@gmail.com",
                    "homepage": "http://everzet.com"
                },
                {
                    "name": "Marcello Duarte",
                    "email": "marcello.duarte@gmail.com"
                }
            ],
            "description": "Highly opinionated mocking framework for PHP 5.3+",
            "homepage": "https://github.com/phpspec/prophecy",
            "keywords": [
                "Double",
                "Dummy",
                "fake",
                "mock",
                "spy",
                "stub"
            ],
            "time": "2016-02-15 07:46:21"
        },
        {
            "name": "phpunit/php-code-coverage",
            "version": "2.2.4",
            "source": {
                "type": "git",
                "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
                "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/eabf68b476ac7d0f73793aada060f1c1a9bf8979",
                "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979",
                "shasum": ""
            },
            "require": {
                "php": ">=5.3.3",
                "phpunit/php-file-iterator": "~1.3",
                "phpunit/php-text-template": "~1.2",
                "phpunit/php-token-stream": "~1.3",
                "sebastian/environment": "^1.3.2",
                "sebastian/version": "~1.0"
            },
            "require-dev": {
                "ext-xdebug": ">=2.1.4",
                "phpunit/phpunit": "~4"
            },
            "suggest": {
                "ext-dom": "*",
                "ext-xdebug": ">=2.2.1",
                "ext-xmlwriter": "*"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "2.2.x-dev"
                }
            },
            "autoload": {
                "classmap": [
                    "src/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "BSD-3-Clause"
            ],
            "authors": [
                {
                    "name": "Sebastian Bergmann",
                    "email": "sb@sebastian-bergmann.de",
                    "role": "lead"
                }
            ],
            "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
            "homepage": "https://github.com/sebastianbergmann/php-code-coverage",
            "keywords": [
                "coverage",
                "testing",
                "xunit"
            ],
            "time": "2015-10-06 15:47:00"
        },
        {
            "name": "phpunit/php-file-iterator",
            "version": "1.4.1",
            "source": {
                "type": "git",
                "url": "https://github.com/sebastianbergmann/php-file-iterator.git",
                "reference": "6150bf2c35d3fc379e50c7602b75caceaa39dbf0"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/6150bf2c35d3fc379e50c7602b75caceaa39dbf0",
                "reference": "6150bf2c35d3fc379e50c7602b75caceaa39dbf0",
                "shasum": ""
            },
            "require": {
                "php": ">=5.3.3"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "1.4.x-dev"
                }
            },
            "autoload": {
                "classmap": [
                    "src/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "BSD-3-Clause"
            ],
            "authors": [
                {
                    "name": "Sebastian Bergmann",
                    "email": "sb@sebastian-bergmann.de",
                    "role": "lead"
                }
            ],
            "description": "FilterIterator implementation that filters files based on a list of suffixes.",
            "homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
            "keywords": [
                "filesystem",
                "iterator"
            ],
            "time": "2015-06-21 13:08:43"
        },
        {
            "name": "phpunit/php-text-template",
            "version": "1.2.1",
            "source": {
                "type": "git",
                "url": "https://github.com/sebastianbergmann/php-text-template.git",
                "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
                "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
                "shasum": ""
            },
            "require": {
                "php": ">=5.3.3"
            },
            "type": "library",
            "autoload": {
                "classmap": [
                    "src/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "BSD-3-Clause"
            ],
            "authors": [
                {
                    "name": "Sebastian Bergmann",
                    "email": "sebastian@phpunit.de",
                    "role": "lead"
                }
            ],
            "description": "Simple template engine.",
            "homepage": "https://github.com/sebastianbergmann/php-text-template/",
            "keywords": [
                "template"
            ],
            "time": "2015-06-21 13:50:34"
        },
        {
            "name": "phpunit/php-timer",
            "version": "1.0.8",
            "source": {
                "type": "git",
                "url": "https://github.com/sebastianbergmann/php-timer.git",
                "reference": "38e9124049cf1a164f1e4537caf19c99bf1eb260"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/38e9124049cf1a164f1e4537caf19c99bf1eb260",
                "reference": "38e9124049cf1a164f1e4537caf19c99bf1eb260",
                "shasum": ""
            },
            "require": {
                "php": ">=5.3.3"
            },
            "require-dev": {
                "phpunit/phpunit": "~4|~5"
            },
            "type": "library",
            "autoload": {
                "classmap": [
                    "src/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "BSD-3-Clause"
            ],
            "authors": [
                {
                    "name": "Sebastian Bergmann",
                    "email": "sb@sebastian-bergmann.de",
                    "role": "lead"
                }
            ],
            "description": "Utility class for timing",
            "homepage": "https://github.com/sebastianbergmann/php-timer/",
            "keywords": [
                "timer"
            ],
            "time": "2016-05-12 18:03:57"
        },
        {
            "name": "phpunit/php-token-stream",
            "version": "1.4.8",
            "source": {
                "type": "git",
                "url": "https://github.com/sebastianbergmann/php-token-stream.git",
                "reference": "3144ae21711fb6cac0b1ab4cbe63b75ce3d4e8da"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/3144ae21711fb6cac0b1ab4cbe63b75ce3d4e8da",
                "reference": "3144ae21711fb6cac0b1ab4cbe63b75ce3d4e8da",
                "shasum": ""
            },
            "require": {
                "ext-tokenizer": "*",
                "php": ">=5.3.3"
            },
            "require-dev": {
                "phpunit/phpunit": "~4.2"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "1.4-dev"
                }
            },
            "autoload": {
                "classmap": [
                    "src/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "BSD-3-Clause"
            ],
            "authors": [
                {
                    "name": "Sebastian Bergmann",
                    "email": "sebastian@phpunit.de"
                }
            ],
            "description": "Wrapper around PHP's tokenizer extension.",
            "homepage": "https://github.com/sebastianbergmann/php-token-stream/",
            "keywords": [
                "tokenizer"
            ],
            "time": "2015-09-15 10:49:45"
        },
        {
            "name": "phpunit/phpunit",
            "version": "4.8.26",
            "source": {
                "type": "git",
                "url": "https://github.com/sebastianbergmann/phpunit.git",
                "reference": "fc1d8cd5b5de11625979125c5639347896ac2c74"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/fc1d8cd5b5de11625979125c5639347896ac2c74",
                "reference": "fc1d8cd5b5de11625979125c5639347896ac2c74",
                "shasum": ""
            },
            "require": {
                "ext-dom": "*",
                "ext-json": "*",
                "ext-pcre": "*",
                "ext-reflection": "*",
                "ext-spl": "*",
                "php": ">=5.3.3",
                "phpspec/prophecy": "^1.3.1",
                "phpunit/php-code-coverage": "~2.1",
                "phpunit/php-file-iterator": "~1.4",
                "phpunit/php-text-template": "~1.2",
                "phpunit/php-timer": "^1.0.6",
                "phpunit/phpunit-mock-objects": "~2.3",
                "sebastian/comparator": "~1.1",
                "sebastian/diff": "~1.2",
                "sebastian/environment": "~1.3",
                "sebastian/exporter": "~1.2",
                "sebastian/global-state": "~1.0",
                "sebastian/version": "~1.0",
                "symfony/yaml": "~2.1|~3.0"
            },
            "suggest": {
                "phpunit/php-invoker": "~1.1"
            },
            "bin": [
                "phpunit"
            ],
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "4.8.x-dev"
                }
            },
            "autoload": {
                "classmap": [
                    "src/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "BSD-3-Clause"
            ],
            "authors": [
                {
                    "name": "Sebastian Bergmann",
                    "email": "sebastian@phpunit.de",
                    "role": "lead"
                }
            ],
            "description": "The PHP Unit Testing framework.",
            "homepage": "https://phpunit.de/",
            "keywords": [
                "phpunit",
                "testing",
                "xunit"
            ],
            "time": "2016-05-17 03:09:28"
        },
        {
            "name": "phpunit/phpunit-mock-objects",
            "version": "2.3.8",
            "source": {
                "type": "git",
                "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
                "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/ac8e7a3db35738d56ee9a76e78a4e03d97628983",
                "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983",
                "shasum": ""
            },
            "require": {
                "doctrine/instantiator": "^1.0.2",
                "php": ">=5.3.3",
                "phpunit/php-text-template": "~1.2",
                "sebastian/exporter": "~1.2"
            },
            "require-dev": {
                "phpunit/phpunit": "~4.4"
            },
            "suggest": {
                "ext-soap": "*"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "2.3.x-dev"
                }
            },
            "autoload": {
                "classmap": [
                    "src/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "BSD-3-Clause"
            ],
            "authors": [
                {
                    "name": "Sebastian Bergmann",
                    "email": "sb@sebastian-bergmann.de",
                    "role": "lead"
                }
            ],
            "description": "Mock Object library for PHPUnit",
            "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/",
            "keywords": [
                "mock",
                "xunit"
            ],
            "time": "2015-10-02 06:51:40"
        },
        {
            "name": "sebastian/comparator",
            "version": "1.2.0",
            "source": {
                "type": "git",
                "url": "https://github.com/sebastianbergmann/comparator.git",
                "reference": "937efb279bd37a375bcadf584dec0726f84dbf22"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/937efb279bd37a375bcadf584dec0726f84dbf22",
                "reference": "937efb279bd37a375bcadf584dec0726f84dbf22",
                "shasum": ""
            },
            "require": {
                "php": ">=5.3.3",
                "sebastian/diff": "~1.2",
                "sebastian/exporter": "~1.2"
            },
            "require-dev": {
                "phpunit/phpunit": "~4.4"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "1.2.x-dev"
                }
            },
            "autoload": {
                "classmap": [
                    "src/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "BSD-3-Clause"
            ],
            "authors": [
                {
                    "name": "Jeff Welch",
                    "email": "whatthejeff@gmail.com"
                },
                {
                    "name": "Volker Dusch",
                    "email": "github@wallbash.com"
                },
                {
                    "name": "Bernhard Schussek",
                    "email": "bschussek@2bepublished.at"
                },
                {
                    "name": "Sebastian Bergmann",
                    "email": "sebastian@phpunit.de"
                }
            ],
            "description": "Provides the functionality to compare PHP values for equality",
            "homepage": "http://www.github.com/sebastianbergmann/comparator",
            "keywords": [
                "comparator",
                "compare",
                "equality"
            ],
            "time": "2015-07-26 15:48:44"
        },
        {
            "name": "sebastian/diff",
            "version": "1.4.1",
            "source": {
                "type": "git",
                "url": "https://github.com/sebastianbergmann/diff.git",
                "reference": "13edfd8706462032c2f52b4b862974dd46b71c9e"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/13edfd8706462032c2f52b4b862974dd46b71c9e",
                "reference": "13edfd8706462032c2f52b4b862974dd46b71c9e",
                "shasum": ""
            },
            "require": {
                "php": ">=5.3.3"
            },
            "require-dev": {
                "phpunit/phpunit": "~4.8"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "1.4-dev"
                }
            },
            "autoload": {
                "classmap": [
                    "src/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "BSD-3-Clause"
            ],
            "authors": [
                {
                    "name": "Kore Nordmann",
                    "email": "mail@kore-nordmann.de"
                },
                {
                    "name": "Sebastian Bergmann",
                    "email": "sebastian@phpunit.de"
                }
            ],
            "description": "Diff implementation",
            "homepage": "https://github.com/sebastianbergmann/diff",
            "keywords": [
                "diff"
            ],
            "time": "2015-12-08 07:14:41"
        },
        {
            "name": "sebastian/environment",
            "version": "1.3.7",
            "source": {
                "type": "git",
                "url": "https://github.com/sebastianbergmann/environment.git",
                "reference": "4e8f0da10ac5802913afc151413bc8c53b6c2716"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/4e8f0da10ac5802913afc151413bc8c53b6c2716",
                "reference": "4e8f0da10ac5802913afc151413bc8c53b6c2716",
                "shasum": ""
            },
            "require": {
                "php": ">=5.3.3"
            },
            "require-dev": {
                "phpunit/phpunit": "~4.4"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "1.3.x-dev"
                }
            },
            "autoload": {
                "classmap": [
                    "src/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "BSD-3-Clause"
            ],
            "authors": [
                {
                    "name": "Sebastian Bergmann",
                    "email": "sebastian@phpunit.de"
                }
            ],
            "description": "Provides functionality to handle HHVM/PHP environments",
            "homepage": "http://www.github.com/sebastianbergmann/environment",
            "keywords": [
                "Xdebug",
                "environment",
                "hhvm"
            ],
            "time": "2016-05-17 03:18:57"
        },
        {
            "name": "sebastian/exporter",
            "version": "1.2.1",
            "source": {
                "type": "git",
                "url": "https://github.com/sebastianbergmann/exporter.git",
                "reference": "7ae5513327cb536431847bcc0c10edba2701064e"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/7ae5513327cb536431847bcc0c10edba2701064e",
                "reference": "7ae5513327cb536431847bcc0c10edba2701064e",
                "shasum": ""
            },
            "require": {
                "php": ">=5.3.3",
                "sebastian/recursion-context": "~1.0"
            },
            "require-dev": {
                "phpunit/phpunit": "~4.4"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "1.2.x-dev"
                }
            },
            "autoload": {
                "classmap": [
                    "src/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "BSD-3-Clause"
            ],
            "authors": [
                {
                    "name": "Jeff Welch",
                    "email": "whatthejeff@gmail.com"
                },
                {
                    "name": "Volker Dusch",
                    "email": "github@wallbash.com"
                },
                {
                    "name": "Bernhard Schussek",
                    "email": "bschussek@2bepublished.at"
                },
                {
                    "name": "Sebastian Bergmann",
                    "email": "sebastian@phpunit.de"
                },
                {
                    "name": "Adam Harvey",
                    "email": "aharvey@php.net"
                }
            ],
            "description": "Provides the functionality to export PHP variables for visualization",
            "homepage": "http://www.github.com/sebastianbergmann/exporter",
            "keywords": [
                "export",
                "exporter"
            ],
            "time": "2015-06-21 07:55:53"
        },
        {
            "name": "sebastian/global-state",
            "version": "1.1.1",
            "source": {
                "type": "git",
                "url": "https://github.com/sebastianbergmann/global-state.git",
                "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4",
                "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4",
                "shasum": ""
            },
            "require": {
                "php": ">=5.3.3"
            },
            "require-dev": {
                "phpunit/phpunit": "~4.2"
            },
            "suggest": {
                "ext-uopz": "*"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "1.0-dev"
                }
            },
            "autoload": {
                "classmap": [
                    "src/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "BSD-3-Clause"
            ],
            "authors": [
                {
                    "name": "Sebastian Bergmann",
                    "email": "sebastian@phpunit.de"
                }
            ],
            "description": "Snapshotting of global state",
            "homepage": "http://www.github.com/sebastianbergmann/global-state",
            "keywords": [
                "global state"
            ],
            "time": "2015-10-12 03:26:01"
        },
        {
            "name": "sebastian/recursion-context",
            "version": "1.0.2",
            "source": {
                "type": "git",
                "url": "https://github.com/sebastianbergmann/recursion-context.git",
                "reference": "913401df809e99e4f47b27cdd781f4a258d58791"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/913401df809e99e4f47b27cdd781f4a258d58791",
                "reference": "913401df809e99e4f47b27cdd781f4a258d58791",
                "shasum": ""
            },
            "require": {
                "php": ">=5.3.3"
            },
            "require-dev": {
                "phpunit/phpunit": "~4.4"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "1.0.x-dev"
                }
            },
            "autoload": {
                "classmap": [
                    "src/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "BSD-3-Clause"
            ],
            "authors": [
                {
                    "name": "Jeff Welch",
                    "email": "whatthejeff@gmail.com"
                },
                {
                    "name": "Sebastian Bergmann",
                    "email": "sebastian@phpunit.de"
                },
                {
                    "name": "Adam Harvey",
                    "email": "aharvey@php.net"
                }
            ],
            "description": "Provides functionality to recursively process PHP variables",
            "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
            "time": "2015-11-11 19:50:13"
        },
        {
            "name": "sebastian/version",
            "version": "1.0.6",
            "source": {
                "type": "git",
                "url": "https://github.com/sebastianbergmann/version.git",
                "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/58b3a85e7999757d6ad81c787a1fbf5ff6c628c6",
                "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6",
                "shasum": ""
            },
            "type": "library",
            "autoload": {
                "classmap": [
                    "src/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "BSD-3-Clause"
            ],
            "authors": [
                {
                    "name": "Sebastian Bergmann",
                    "email": "sebastian@phpunit.de",
                    "role": "lead"
                }
            ],
            "description": "Library that helps with managing the version number of Git-hosted PHP projects",
            "homepage": "https://github.com/sebastianbergmann/version",
            "time": "2015-06-21 13:59:46"
        },
        {
            "name": "symfony/css-selector",
            "version": "v3.0.7",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/css-selector.git",
                "reference": "e8a66c51bf65f188c02f8120c0748b2291d3a2d0"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/css-selector/zipball/e8a66c51bf65f188c02f8120c0748b2291d3a2d0",
                "reference": "e8a66c51bf65f188c02f8120c0748b2291d3a2d0",
                "shasum": ""
            },
            "require": {
                "php": ">=5.5.9"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "3.0-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Symfony\\Component\\CssSelector\\": ""
                },
                "exclude-from-classmap": [
                    "/Tests/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Jean-François Simon",
                    "email": "jeanfrancois.simon@sensiolabs.com"
                },
                {
                    "name": "Fabien Potencier",
                    "email": "fabien@symfony.com"
                },
                {
                    "name": "Symfony Community",
                    "homepage": "https://symfony.com/contributors"
                }
            ],
            "description": "Symfony CssSelector Component",
            "homepage": "https://symfony.com",
            "time": "2016-06-06 11:33:26"
        },
        {
            "name": "symfony/dom-crawler",
            "version": "v3.0.7",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/dom-crawler.git",
                "reference": "49b588841225b205700e5122fa01911cabada857"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/dom-crawler/zipball/49b588841225b205700e5122fa01911cabada857",
                "reference": "49b588841225b205700e5122fa01911cabada857",
                "shasum": ""
            },
            "require": {
                "php": ">=5.5.9",
                "symfony/polyfill-mbstring": "~1.0"
            },
            "require-dev": {
                "symfony/css-selector": "~2.8|~3.0"
            },
            "suggest": {
                "symfony/css-selector": ""
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "3.0-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Symfony\\Component\\DomCrawler\\": ""
                },
                "exclude-from-classmap": [
                    "/Tests/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Fabien Potencier",
                    "email": "fabien@symfony.com"
                },
                {
                    "name": "Symfony Community",
                    "homepage": "https://symfony.com/contributors"
                }
            ],
            "description": "Symfony DomCrawler Component",
            "homepage": "https://symfony.com",
            "time": "2016-04-12 18:09:53"
        },
        {
            "name": "symfony/yaml",
            "version": "v3.1.0",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/yaml.git",
                "reference": "eca51b7b65eb9be6af88ad7cc91685f1556f5c9a"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/yaml/zipball/eca51b7b65eb9be6af88ad7cc91685f1556f5c9a",
                "reference": "eca51b7b65eb9be6af88ad7cc91685f1556f5c9a",
                "shasum": ""
            },
            "require": {
                "php": ">=5.5.9"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "3.1-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Symfony\\Component\\Yaml\\": ""
                },
                "exclude-from-classmap": [
                    "/Tests/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Fabien Potencier",
                    "email": "fabien@symfony.com"
                },
                {
                    "name": "Symfony Community",
                    "homepage": "https://symfony.com/contributors"
                }
            ],
            "description": "Symfony Yaml Component",
            "homepage": "https://symfony.com",
            "time": "2016-05-26 21:46:24"
        }
    ],
    "aliases": [],
    "minimum-stability": "stable",
    "stability-flags": [],
    "prefer-stable": false,
    "prefer-lowest": false,
    "platform": {
        "php": ">=5.5.9"
    },
    "platform-dev": []
}
diff --git a/config/app.php b/config/app.php
new file mode 100644
index 0000000..a6b26c7
--- /dev/null
+++ b/config/app.php
@@ -0,0 +1,216 @@
<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Application Environment
    |--------------------------------------------------------------------------
    |
    | This value determines the "environment" your application is currently
    | running in. This may determine how you prefer to configure various
    | services your application utilizes. Set this in your ".env" file.
    |
    */

    'env' => env('APP_ENV', 'production'),

    /*
    |--------------------------------------------------------------------------
    | 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' => env('APP_DEBUG', false),

    /*
    |--------------------------------------------------------------------------
    | 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' => env('APP_URL', 'http://localhost'),

    /*
    |--------------------------------------------------------------------------
    | 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',

    /*
    |--------------------------------------------------------------------------
    | Application Fallback Locale
    |--------------------------------------------------------------------------
    |
    | The fallback locale determines the locale to use when the current one
    | is not available. You may change the value to correspond to any of
    | the language folders that are provided through your application.
    |
    */

    'fallback_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' => env('APP_KEY'),

    'cipher' => 'AES-256-CBC',

    /*
    |--------------------------------------------------------------------------
    | Logging Configuration
    |--------------------------------------------------------------------------
    |
    | Here you may configure the log settings for your application. Out of
    | the box, Laravel uses the Monolog PHP logging library. This gives
    | you a variety of powerful log handlers / formatters to utilize.
    |
    | Available Settings: "single", "daily", "syslog", "errorlog"
    |
    */

    'log' => env('APP_LOG', 'single'),

    'log_level' => env('APP_LOG_LEVEL', 'debug'),

    /*
    |--------------------------------------------------------------------------
    | 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' => [

        /*
         * Laravel Framework Service Providers...
         */
        Illuminate\Auth\AuthServiceProvider::class,
        Illuminate\Broadcasting\BroadcastServiceProvider::class,
        Illuminate\Bus\BusServiceProvider::class,
        Illuminate\Cache\CacheServiceProvider::class,
        Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
        Illuminate\Cookie\CookieServiceProvider::class,
        Illuminate\Database\DatabaseServiceProvider::class,
        Illuminate\Encryption\EncryptionServiceProvider::class,
        Illuminate\Filesystem\FilesystemServiceProvider::class,
        Illuminate\Foundation\Providers\FoundationServiceProvider::class,
        Illuminate\Hashing\HashServiceProvider::class,
        Illuminate\Mail\MailServiceProvider::class,
        Illuminate\Pagination\PaginationServiceProvider::class,
        Illuminate\Pipeline\PipelineServiceProvider::class,
        Illuminate\Queue\QueueServiceProvider::class,
        Illuminate\Redis\RedisServiceProvider::class,
        Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
        Illuminate\Session\SessionServiceProvider::class,
        Illuminate\Translation\TranslationServiceProvider::class,
        Illuminate\Validation\ValidationServiceProvider::class,
        Illuminate\View\ViewServiceProvider::class,

        /*
         * Application Service Providers...
         */
        App\Providers\AppServiceProvider::class,
        App\Providers\AuthServiceProvider::class,
        App\Providers\EventServiceProvider::class,
        App\Providers\RouteServiceProvider::class,

        Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,
        Barryvdh\Cors\ServiceProvider::class,
        Xinax\LaravelGettext\LaravelGettextServiceProvider::class,
        Vinkla\Pusher\PusherServiceProvider::class,
        Barryvdh\Debugbar\ServiceProvider::class,

    ],

    /*
    |--------------------------------------------------------------------------
    | 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' => [

        'App' => Illuminate\Support\Facades\App::class,
        'Artisan' => Illuminate\Support\Facades\Artisan::class,
        'Auth' => Illuminate\Support\Facades\Auth::class,
        'Blade' => Illuminate\Support\Facades\Blade::class,
        'Cache' => Illuminate\Support\Facades\Cache::class,
        'Config' => Illuminate\Support\Facades\Config::class,
        'Cookie' => Illuminate\Support\Facades\Cookie::class,
        'Crypt' => Illuminate\Support\Facades\Crypt::class,
        'DB' => Illuminate\Support\Facades\DB::class,
        'Eloquent' => Illuminate\Database\Eloquent\Model::class,
        'Event' => Illuminate\Support\Facades\Event::class,
        'File' => Illuminate\Support\Facades\File::class,
        'Gate' => Illuminate\Support\Facades\Gate::class,
        'Hash' => Illuminate\Support\Facades\Hash::class,
        'Lang' => Illuminate\Support\Facades\Lang::class,
        'Log' => Illuminate\Support\Facades\Log::class,
        'Mail' => Illuminate\Support\Facades\Mail::class,
        'Password' => Illuminate\Support\Facades\Password::class,
        'Queue' => Illuminate\Support\Facades\Queue::class,
        'Redirect' => Illuminate\Support\Facades\Redirect::class,
        'Redis' => Illuminate\Support\Facades\Redis::class,
        'Request' => Illuminate\Support\Facades\Request::class,
        'Response' => Illuminate\Support\Facades\Response::class,
        'Route' => Illuminate\Support\Facades\Route::class,
        'Schema' => Illuminate\Support\Facades\Schema::class,
        'Session' => Illuminate\Support\Facades\Session::class,
        'Storage' => Illuminate\Support\Facades\Storage::class,
        'URL' => Illuminate\Support\Facades\URL::class,
        'Validator' => Illuminate\Support\Facades\Validator::class,
        'View' => Illuminate\Support\Facades\View::class,
        'Debugbar' => Barryvdh\Debugbar\Facade::class,

    ],

];
diff --git a/config/auth.php b/config/auth.php
new file mode 100644
index 0000000..5493e0f
--- /dev/null
+++ b/config/auth.php
@@ -0,0 +1,107 @@
<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Authentication Defaults
    |--------------------------------------------------------------------------
    |
    | This option controls the default authentication "guard" and password
    | reset options for your application. You may change these defaults
    | as required, but they're a perfect start for most applications.
    |
    */

    'defaults' => [
        'guard' => 'web',
        'passwords' => 'users',
    ],

    /*
    |--------------------------------------------------------------------------
    | Authentication Guards
    |--------------------------------------------------------------------------
    |
    | Next, you may define every authentication guard for your application.
    | Of course, a great default configuration has been defined for you
    | here which uses session storage and the Eloquent user provider.
    |
    | All authentication drivers have a user provider. This defines how the
    | users are actually retrieved out of your database or other storage
    | mechanisms used by this application to persist your user's data.
    |
    | Supported: "session", "token"
    |
    */

    'guards' => [
        'web' => [
            'driver' => 'session',
            'provider' => 'users',
        ],

        'api' => [
            'driver' => 'token',
            'provider' => 'users',
        ],
    ],

    /*
    |--------------------------------------------------------------------------
    | User Providers
    |--------------------------------------------------------------------------
    |
    | All authentication drivers have a user provider. This defines how the
    | users are actually retrieved out of your database or other storage
    | mechanisms used by this application to persist your user's data.
    |
    | If you have multiple user tables or models you may configure multiple
    | sources which represent each model / table. These sources may then
    | be assigned to any extra authentication guards you have defined.
    |
    | Supported: "database", "eloquent"
    |
    */

    'providers' => [
        'users' => [
            'driver' => 'vbulletin',
            'model' => App\Models\User::class,
        ],

        // 'users' => [
        //     'driver' => 'database',
        //     'table' => 'users',
        // ],
    ],

    /*
    |--------------------------------------------------------------------------
    | Resetting Passwords
    |--------------------------------------------------------------------------
    |
    | Here you may set the options for resetting passwords including the view
    | that is your password reset e-mail. You may also set the name of the
    | table that maintains all of the reset tokens for your application.
    |
    | You may specify multiple password reset configurations if you have more
    | than one user table or model in the application and you want to have
    | separate password reset settings based on the specific user types.
    |
    | The expire time is the number of minutes that the reset token 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.
    |
    */

    'passwords' => [
        'users' => [
            'provider' => 'users',
            'email' => 'auth.emails.password',
            'table' => 'password_resets',
            'expire' => 60,
        ],
    ],

];
diff --git a/config/broadcasting.php b/config/broadcasting.php
new file mode 100644
index 0000000..abaaac3
--- /dev/null
+++ b/config/broadcasting.php
@@ -0,0 +1,52 @@
<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Default Broadcaster
    |--------------------------------------------------------------------------
    |
    | This option controls the default broadcaster that will be used by the
    | framework when an event needs to be broadcast. You may set this to
    | any of the connections defined in the "connections" array below.
    |
    */

    'default' => env('BROADCAST_DRIVER', 'pusher'),

    /*
    |--------------------------------------------------------------------------
    | Broadcast Connections
    |--------------------------------------------------------------------------
    |
    | Here you may define all of the broadcast connections that will be used
    | to broadcast events to other systems or over websockets. Samples of
    | each available type of connection are provided inside this array.
    |
    */

    'connections' => [

        'pusher' => [
            'driver' => 'pusher',
            'key' => env('PUSHER_KEY'),
            'secret' => env('PUSHER_SECRET'),
            'app_id' => env('PUSHER_APP_ID'),
            'options' => [
                //
            ],
        ],

        'redis' => [
            'driver' => 'redis',
            'connection' => 'default',
        ],

        'log' => [
            'driver' => 'log',
        ],

    ],

];
diff --git a/config/cache.php b/config/cache.php
new file mode 100644
index 0000000..512de01
--- /dev/null
+++ b/config/cache.php
@@ -0,0 +1,81 @@
<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Default Cache Store
    |--------------------------------------------------------------------------
    |
    | This option controls the default cache connection that gets used while
    | using this caching library. This connection is used when another is
    | not explicitly specified when executing a given caching function.
    |
    */

    'default' => env('CACHE_DRIVER', 'file'),

    /*
    |--------------------------------------------------------------------------
    | Cache Stores
    |--------------------------------------------------------------------------
    |
    | Here you may define all of the cache "stores" for your application as
    | well as their drivers. You may even define multiple stores for the
    | same cache driver to group types of items stored in your caches.
    |
    */

    'stores' => [

        'apc' => [
            'driver' => 'apc',
        ],

        'array' => [
            'driver' => 'array',
        ],

        'database' => [
            'driver' => 'database',
            'table' => 'cache',
            'connection' => null,
        ],

        'file' => [
            'driver' => 'file',
            'path' => storage_path('framework/cache'),
        ],

        'memcached' => [
            'driver' => 'memcached',
            'servers' => [
                [
                    'host' => env('MEMCACHED_HOST', '127.0.0.1'),
                    'port' => env('MEMCACHED_PORT', 11211),
                    'weight' => 100,
                ],
            ],
        ],

        'redis' => [
            'driver' => 'redis',
            'connection' => 'default',
        ],

    ],

    /*
    |--------------------------------------------------------------------------
    | Cache Key Prefix
    |--------------------------------------------------------------------------
    |
    | When utilizing a RAM based store such as APC or Memcached, there might
    | be other applications utilizing the same cache. So, we'll specify a
    | value to get prefixed to all our keys so we can avoid collisions.
    |
    */

    'prefix' => 'zpan',

];
diff --git a/config/compile.php b/config/compile.php
new file mode 100644
index 0000000..04807ea
--- /dev/null
+++ b/config/compile.php
@@ -0,0 +1,35 @@
<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Additional Compiled Classes
    |--------------------------------------------------------------------------
    |
    | Here you may specify additional classes to include in the compiled file
    | generated by the `artisan optimize` command. These should be classes
    | that are included on basically every request into the application.
    |
    */

    'files' => [
        //
    ],

    /*
    |--------------------------------------------------------------------------
    | Compiled File Providers
    |--------------------------------------------------------------------------
    |
    | Here you may list service providers which define a "compiles" function
    | that returns additional files that should be compiled, providing an
    | easy way to get common files from any packages you are utilizing.
    |
    */

    'providers' => [
        //
    ],

];
diff --git a/config/database.php b/config/database.php
new file mode 100644
index 0000000..0f3b600
--- /dev/null
+++ b/config/database.php
@@ -0,0 +1,134 @@
<?php

return [

    /*
    |--------------------------------------------------------------------------
    | PDO Fetch Style
    |--------------------------------------------------------------------------
    |
    | By default, database results will be returned as instances of the PHP
    | stdClass object; however, you may desire to retrieve records in an
    | array format for simplicity. Here you can tweak the fetch style.
    |
    */

    'fetch' => PDO::FETCH_CLASS,

    /*
    |--------------------------------------------------------------------------
    | Default Database Connection Name
    |--------------------------------------------------------------------------
    |
    | Here you may specify which of the database connections below you wish
    | to use as your default connection for all database work. Of course
    | you may use many connections at once using the Database library.
    |
    */

    'default' => env('DB_CONNECTION', 'mysql'),

    /*
    |--------------------------------------------------------------------------
    | Database Connections
    |--------------------------------------------------------------------------
    |
    | Here are each of the database connections setup for your application.
    | Of course, examples of configuring each database platform that is
    | supported by Laravel is shown below to make development simple.
    |
    |
    | All database work in Laravel is done through the PHP PDO facilities
    | so make sure you have the driver for your particular database of
    | choice installed on your machine before you begin development.
    |
    */

    'connections' => [

        'sqlite' => [
            'driver' => 'sqlite',
            'database' => env('DB_DATABASE', database_path('database.sqlite')),
            'prefix' => '',
        ],

        'mysql' => [
            'driver' => 'mysql',
            'host' => env('DB_HOST', 'localhost'),
            'port' => env('DB_PORT', '3306'),
            'database' => env('DB_DATABASE', 'forge'),
            'username' => env('DB_USERNAME', 'forge'),
            'password' => env('DB_PASSWORD', ''),
            'charset' => 'utf8',
            'collation' => 'utf8_unicode_ci',
            'prefix' => '',
            'strict' => false,
            'engine' => null,
        ],

        'pgsql' => [
            'driver' => 'pgsql',
            'host' => env('DB_HOST', 'localhost'),
            'port' => env('DB_PORT', '5432'),
            'database' => env('DB_DATABASE', 'forge'),
            'username' => env('DB_USERNAME', 'forge'),
            'password' => env('DB_PASSWORD', ''),
            'charset' => 'utf8',
            'prefix' => '',
            'schema' => 'public',
        ],

        'forum' => [
            'driver' => env('FORUM_CONNECTION', 'mysql'),
            'host' => env('FORUM_HOST', 'localhost'),
            'port' => env('FORUM_PORT', '3306'),
            'database' => env('FORUM_DATABASE', 'vbulletin'),
            'username' => env('FORUM_USERNAME', ''),
            'password' => env('FORUM_PASSWORD', ''),
            'charset' => 'utf8',
            'collation' => 'utf8_unicode_ci',
            'prefix' => '',
            'strict' => false,
            'engine' => null,
        ]

    ],

    /*
    |--------------------------------------------------------------------------
    | Migration Repository Table
    |--------------------------------------------------------------------------
    |
    | This table keeps track of all the migrations that have already run for
    | your application. Using this information, we can determine which of
    | the migrations on disk haven't actually been run in the database.
    |
    */

    'migrations' => 'migrations',

    /*
    |--------------------------------------------------------------------------
    | Redis Databases
    |--------------------------------------------------------------------------
    |
    | Redis is an open source, fast, and advanced key-value store that also
    | provides a richer set of commands than a typical key-value systems
    | such as APC or Memcached. Laravel makes it easy to dig right in.
    |
    */

    'redis' => [

        'cluster' => false,

        'default' => [
            'host' => env('REDIS_HOST', 'localhost'),
            'password' => env('REDIS_PASSWORD', null),
            'port' => env('REDIS_PORT', 6379),
            'database' => 0,
        ],

    ],

];
diff --git a/config/debugbar.php b/config/debugbar.php
new file mode 100644
index 0000000..f684145
--- /dev/null
+++ b/config/debugbar.php
@@ -0,0 +1,170 @@
<?php

return array(

    /*
     |--------------------------------------------------------------------------
     | Debugbar Settings
     |--------------------------------------------------------------------------
     |
     | Debugbar is enabled by default, when debug is set to true in app.php.
     | You can override the value by setting enable to true or false instead of null.
     |
     */

    'enabled' => null,

    /*
     |--------------------------------------------------------------------------
     | Storage settings
     |--------------------------------------------------------------------------
     |
     | DebugBar stores data for session/ajax requests.
     | You can disable this, so the debugbar stores data in headers/session,
     | but this can cause problems with large data collectors.
     | By default, file storage (in the storage folder) is used. Redis and PDO
     | can also be used. For PDO, run the package migrations first.
     |
     */
    'storage' => array(
        'enabled'    => true,
        'driver'     => 'file', // redis, file, pdo, custom
        'path'       => storage_path('debugbar'), // For file driver
        'connection' => null,   // Leave null for default connection (Redis/PDO)
        'provider'   => '' // Instance of StorageInterface for custom driver
    ),

    /*
     |--------------------------------------------------------------------------
     | Vendors
     |--------------------------------------------------------------------------
     |
     | Vendor files are included by default, but can be set to false.
     | This can also be set to 'js' or 'css', to only include javascript or css vendor files.
     | Vendor files are for css: font-awesome (including fonts) and highlight.js (css files)
     | and for js: jquery and and highlight.js
     | So if you want syntax highlighting, set it to true.
     | jQuery is set to not conflict with existing jQuery scripts.
     |
     */

    'include_vendors' => true,

    /*
     |--------------------------------------------------------------------------
     | Capture Ajax Requests
     |--------------------------------------------------------------------------
     |
     | The Debugbar can capture Ajax requests and display them. If you don't want this (ie. because of errors),
     | you can use this option to disable sending the data through the headers.
     |
     */

    'capture_ajax' => true,

    /*
     |--------------------------------------------------------------------------
     | Clockwork integration
     |--------------------------------------------------------------------------
     |
     | The Debugbar can emulate the Clockwork headers, so you can use the Chrome
     | Extension, without the server-side code. It uses Debugbar collectors instead.
     |
     */
    'clockwork' => true,

    /*
     |--------------------------------------------------------------------------
     | DataCollectors
     |--------------------------------------------------------------------------
     |
     | Enable/disable DataCollectors
     |
     */

    'collectors' => array(
        'phpinfo'         => true,  // Php version
        'messages'        => true,  // Messages
        'time'            => true,  // Time Datalogger
        'memory'          => true,  // Memory usage
        'exceptions'      => true,  // Exception displayer
        'log'             => true,  // Logs from Monolog (merged in messages if enabled)
        'db'              => true,  // Show database (PDO) queries and bindings
        'views'           => true,  // Views with their data
        'route'           => true,  // Current route information
        'laravel'         => true, // Laravel version and environment
        'events'          => true, // All events fired
        'default_request' => false, // Regular or special Symfony request logger
        'symfony_request' => true,  // Only one can be enabled..
        'mail'            => true,  // Catch mail messages
        'logs'            => true, // Add the latest log messages
        'files'           => false, // Show the included files
        'config'          => false, // Display config settings
        'auth'            => true, // Display Laravel authentication status
        'gate'            => false, // Display Laravel Gate checks
        'session'         => true,  // Display session data
    ),

    /*
     |--------------------------------------------------------------------------
     | Extra options
     |--------------------------------------------------------------------------
     |
     | Configure some DataCollectors
     |
     */

    'options' => array(
        'auth' => array(
            'show_name' => true,   // Also show the users name/email in the debugbar
        ),
        'db' => array(
            'with_params'       => true,   // Render SQL with the parameters substituted
            'timeline'          => true,  // Add the queries to the timeline
            'backtrace'         => false,  // EXPERIMENTAL: Use a backtrace to find the origin of the query in your files.
            'explain' => array(            // EXPERIMENTAL: Show EXPLAIN output on queries
                'enabled' => false,
                'types' => array('SELECT'), // array('SELECT', 'INSERT', 'UPDATE', 'DELETE'); for MySQL 5.6.3+
            ),
            'hints'             => true,    // Show hints for common mistakes
        ),
        'mail' => array(
            'full_log' => false
        ),
        'views' => array(
            'data' => false,    //Note: Can slow down the application, because the data can be quite large..
        ),
        'route' => array(
            'label' => true  // show complete route on bar
        ),
        'logs' => array(
            'file' => null
        ),
    ),

    /*
     |--------------------------------------------------------------------------
     | Inject Debugbar in Response
     |--------------------------------------------------------------------------
     |
     | Usually, the debugbar is added just before <body>, by listening to the
     | Response after the App is done. If you disable this, you have to add them
     | in your template yourself. See http://phpdebugbar.com/docs/rendering.html
     |
     */

    'inject' => true,

    /*
     |--------------------------------------------------------------------------
     | DebugBar route prefix
     |--------------------------------------------------------------------------
     |
     | Sometimes you want to set route prefix to be used by DebugBar to load
     | its resources from. Usually the need comes from misconfigured web server or
     | from trying to overcome bugs like this: http://trac.nginx.org/nginx/ticket/97
     |
     */
    'route_prefix' => '_debugbar',

);
diff --git a/config/filesystems.php b/config/filesystems.php
new file mode 100644
index 0000000..75b5002
--- /dev/null
+++ b/config/filesystems.php
@@ -0,0 +1,67 @@
<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Default Filesystem Disk
    |--------------------------------------------------------------------------
    |
    | Here you may specify the default filesystem disk that should be used
    | by the framework. A "local" driver, as well as a variety of cloud
    | based drivers are available for your choosing. Just store away!
    |
    | Supported: "local", "ftp", "s3", "rackspace"
    |
    */

    'default' => 'local',

    /*
    |--------------------------------------------------------------------------
    | Default Cloud Filesystem Disk
    |--------------------------------------------------------------------------
    |
    | Many applications store files both locally and in the cloud. For this
    | reason, you may specify a default "cloud" driver here. This driver
    | will be bound as the Cloud disk implementation in the container.
    |
    */

    'cloud' => 's3',

    /*
    |--------------------------------------------------------------------------
    | Filesystem Disks
    |--------------------------------------------------------------------------
    |
    | Here you may configure as many filesystem "disks" as you wish, and you
    | may even configure multiple disks of the same driver. Defaults have
    | been setup for each driver as an example of the required options.
    |
    */

    'disks' => [

        'local' => [
            'driver' => 'local',
            'root' => storage_path('app'),
        ],

        'public' => [
            'driver' => 'local',
            'root' => storage_path('app/public'),
            'visibility' => 'public',
        ],

        's3' => [
            'driver' => 's3',
            'key' => 'your-key',
            'secret' => 'your-secret',
            'region' => 'your-region',
            'bucket' => 'your-bucket',
        ],

    ],

];
diff --git a/config/ide-helper.php b/config/ide-helper.php
new file mode 100644
index 0000000..59e5da4
--- /dev/null
+++ b/config/ide-helper.php
@@ -0,0 +1,119 @@
<?php 

return array(

    /*
    |--------------------------------------------------------------------------
    | Filename & Format
    |--------------------------------------------------------------------------
    |
    | The default filename (without extension) and the format (php or json)
    |
    */

    'filename'  => '_ide_helper',
    'format'    => 'php',

    /*
    |--------------------------------------------------------------------------
    | Helper files to include
    |--------------------------------------------------------------------------
    |
    | Include helper files. By default not included, but can be toggled with the
    | -- helpers (-H) option. Extra helper files can be included.
    |
    */

    'include_helpers' => false,

    'helper_files' => array(
        base_path().'/vendor/laravel/framework/src/Illuminate/Support/helpers.php',
    ),

    /*
    |--------------------------------------------------------------------------
    | Model locations to include
    |--------------------------------------------------------------------------
    |
    | Define in which directories the ide-helper:models command should look
    | for models.
    |
    */

    'model_locations' => array(
        'app',
    ),


    /*
    |--------------------------------------------------------------------------
    | Extra classes
    |--------------------------------------------------------------------------
    |
    | These implementations are not really extended, but called with magic functions
    |
    */

    'extra' => array(
        'Eloquent' => array('Illuminate\Database\Eloquent\Builder', 'Illuminate\Database\Query\Builder'),
        'Session' => array('Illuminate\Session\Store'),
    ),

    'magic' => array(
        'Log' => array(
            'debug'     => 'Monolog\Logger::addDebug',
            'info'      => 'Monolog\Logger::addInfo',
            'notice'    => 'Monolog\Logger::addNotice',
            'warning'   => 'Monolog\Logger::addWarning',
            'error'     => 'Monolog\Logger::addError',
            'critical'  => 'Monolog\Logger::addCritical',
            'alert'     => 'Monolog\Logger::addAlert',
            'emergency' => 'Monolog\Logger::addEmergency',
        )
    ),
    
    /*
    |--------------------------------------------------------------------------
    | Interface implementations
    |--------------------------------------------------------------------------
    |
    | These interfaces will be replaced with the implementing class. Some interfaces
    | are detected by the helpers, others can be listed below.
    |
    */
    
    'interfaces' => array(

    ),

    /*
    |--------------------------------------------------------------------------
    | Support for custom DB types
    |--------------------------------------------------------------------------
    |
    | This setting allow you to map any custom database type (that you may have
    | created using CREATE TYPE statement or imported using database plugin
    | / extension to a Doctrine type.
    |
    | Each key in this array is a name of the Doctrine2 DBAL Platform. Currently valid names are:
    | 'postgresql', 'db2', 'drizzle', 'mysql', 'oracle', 'sqlanywhere', 'sqlite', 'mssql'
    |
    | This name is returned by getName() method of the specific Doctrine/DBAL/Platforms/AbstractPlatform descendant
    |
    | The value of the array is an array of type mappings. Key is the name of the custom type,
    | (for example, "jsonb" from Postgres 9.4) and the value is the name of the corresponding Doctrine2 type (in
    | our case it is 'json_array'. Doctrine types are listed here:
    | http://doctrine-dbal.readthedocs.org/en/latest/reference/types.html
    |
    | So to support jsonb in your models when working with Postgres, just add the following entry to the array below:
    |
    | "postgresql" => array(
    |       "jsonb" => "json_array",
    |  ),
    |
    */
    'custom_db_types' => array(

    ),

);
diff --git a/config/laravel-gettext.php b/config/laravel-gettext.php
new file mode 100644
index 0000000..9a9fa3c
--- /dev/null
+++ b/config/laravel-gettext.php
@@ -0,0 +1,115 @@
<?php

return [
    /**
     * Session identifier: Key under which the current locale will be stored.
     */
    'session-identifier' => 'language',

    /**
     * Default locale: this will be the default for your application.
     * Is to be supposed that all strings are written in this language.
     */
    'locale' => 'en_GB',

    /**
     * Supported locales: An array containing all allowed languages
     */
    'supported-locales' => [
        'en_GB',
    ],

    /**
     * Default charset encoding.
     */
    'encoding' => 'UTF-8',

    /**
     * -----------------------------------------------------------------------
     * All standard configuration ends here. The following values
     * are only for special cases.
     * -----------------------------------------------------------------------
     **/

    /**
     * Base translation directory path (don't use trailing slash)
     */
    'translations-path' => '../resources/lang',

    /**
     * Relative path to the app folder: is used on .po header files
     */
    'relative-path' => '../../../../../app',

    /**
     * Fallback locale: When default locale is not available
     */
    'fallback-locale' => 'en_GB',

    /**
     * Default domain used for translations: It is the file name for .po and .mo files
     */
    'domain' => 'messages',

    /**
     * Project name: is used on .po header files
     */
    'project' => 'ZPAN',

    /**
     * Translator contact data (used on .po headers too)
     */
    'translator' => 'Jordan Doyle <jordan@doyle.wf>',

    /**
     * Paths where PoEdit will search recursively for strings to translate.
     * All paths are relative to app/ (don't use trailing slash).
     *
     * Remember to call artisan gettext:update after change this.
     */
    'source-paths' => [
        'Http/Controllers',
        '../resources/views',
        'Console/Commands',
    ],

    /**
     * Multi-domain directory paths. If you want the translations in
     * different files, just wrap your paths into a domain name.
     * Paths on top-level will be associated to the default domain file,
     * for example:
     */
    /*
    'source-paths' => [
		'frontend' => [
			'controllers',
			'views/frontend',
		],
		'backend' => [
			'views/backend',
		],
		'storage/views',
	],
    */

    /**
     * Sync laravel: A flag that determines if the laravel built-in locale must
     * be changed when you call LaravelGettext::setLocale.
     */
    'sync-laravel' => true,

    /**
     * Use custom locale that is not supported by the system
     */
    'custom-locale' => false,

    /**
     * The keywords list used by poedit to search the strings to be translated
     *
     * The "_", "__" and "gettext" are singular translation functions
     * The "_n" and "ngettext" are plural translation functions
     *
     * "__" and "_n" are helpers functions @see \Xinax\LaravelGettext\Support\helpers.php
     */
    'keywords-list' => ['_', '__', 'gettext', '_n:1,2', 'ngettext:1,2'],
];
diff --git a/config/mail.php b/config/mail.php
new file mode 100644
index 0000000..a076588
--- /dev/null
+++ b/config/mail.php
@@ -0,0 +1,112 @@
<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Mail Driver
    |--------------------------------------------------------------------------
    |
    | Laravel supports both SMTP and PHP's "mail" function as drivers for the
    | sending of e-mail. You may specify which one you're using throughout
    | your application here. By default, Laravel is setup for SMTP mail.
    |
    | Supported: "smtp", "mail", "sendmail", "mailgun", "mandrill",
    |            "ses", "sparkpost", "log"
    |
    */

    'driver' => env('MAIL_DRIVER', 'smtp'),

    /*
    |--------------------------------------------------------------------------
    | SMTP Host Address
    |--------------------------------------------------------------------------
    |
    | Here you may provide the host address of the SMTP server used by your
    | applications. A default option is provided that is compatible with
    | the Mailgun mail service which will provide reliable deliveries.
    |
    */

    'host' => env('MAIL_HOST', 'smtp.mailgun.org'),

    /*
    |--------------------------------------------------------------------------
    | SMTP Host Port
    |--------------------------------------------------------------------------
    |
    | This is the SMTP port used by your application to deliver e-mails to
    | users of the application. Like the host we have set this value to
    | stay compatible with the Mailgun e-mail application by default.
    |
    */

    'port' => env('MAIL_PORT', 587),

    /*
    |--------------------------------------------------------------------------
    | Global "From" Address
    |--------------------------------------------------------------------------
    |
    | You may wish for all e-mails sent by your application to be sent from
    | the same address. Here, you may specify a name and address that is
    | used globally for all e-mails that are sent by your application.
    |
    */

    'from' => ['address' => null, 'name' => null],

    /*
    |--------------------------------------------------------------------------
    | E-Mail Encryption Protocol
    |--------------------------------------------------------------------------
    |
    | Here you may specify the encryption protocol that should be used when
    | the application send e-mail messages. A sensible default using the
    | transport layer security protocol should provide great security.
    |
    */

    'encryption' => env('MAIL_ENCRYPTION', 'tls'),

    /*
    |--------------------------------------------------------------------------
    | SMTP Server Username
    |--------------------------------------------------------------------------
    |
    | If your SMTP server requires a username for authentication, you should
    | set it here. This will get used to authenticate with your server on
    | connection. You may also set the "password" value below this one.
    |
    */

    'username' => env('MAIL_USERNAME'),

    /*
    |--------------------------------------------------------------------------
    | SMTP Server Password
    |--------------------------------------------------------------------------
    |
    | Here you may set the password required by your SMTP server to send out
    | messages from your application. This will be given to the server on
    | connection so that the application will be able to send messages.
    |
    */

    'password' => env('MAIL_PASSWORD'),

    /*
    |--------------------------------------------------------------------------
    | Sendmail System Path
    |--------------------------------------------------------------------------
    |
    | When using the "sendmail" driver to send e-mails, we will need to know
    | the path to where Sendmail lives on this server. A default path has
    | been provided here, which will work well on most of your systems.
    |
    */

    'sendmail' => '/usr/sbin/sendmail -bs',

];
diff --git a/config/pusher.php b/config/pusher.php
new file mode 100644
index 0000000..f2edd93
--- /dev/null
+++ b/config/pusher.php
@@ -0,0 +1,55 @@
<?php

/*
 * This file is part of Laravel Pusher.
 *
 * (c) Vincent Klaiber <hello@vinkla.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

return [

    /*
    |--------------------------------------------------------------------------
    | Default Connection Name
    |--------------------------------------------------------------------------
    |
    | Here you may specify which of the connections below you wish to use as
    | your default connection for all work. Of course, you may use many
    | connections at once using the manager class.
    |
    */

    'default' => 'main',

    /*
    |--------------------------------------------------------------------------
    | Pusher Connections
    |--------------------------------------------------------------------------
    |
    | Here are each of the connections setup for your application. Example
    | configuration has been included, but you may add as many connections as
    | you would like.
    |
    */

    'connections' => [

        'main' => [
            'auth_key' => env('PUSHER_KEY'),
            'secret' => env('PUSHER_SECRET'),
            'app_id' => env('PUSHER_APP_ID'),
            'options' => [
                'cluster' => env('PUSHER_CLUSTER'),
                'encrypted' => true
            ],
            'host' => null,
            'port' => null,
            'timeout' => null,
        ],

    ],

];
diff --git a/config/queue.php b/config/queue.php
new file mode 100644
index 0000000..d0f732a
--- /dev/null
+++ b/config/queue.php
@@ -0,0 +1,85 @@
<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Default Queue Driver
    |--------------------------------------------------------------------------
    |
    | The Laravel queue API supports a variety of back-ends via an unified
    | API, giving you convenient access to each back-end using the same
    | syntax for each one. Here you may set the default queue driver.
    |
    | Supported: "null", "sync", "database", "beanstalkd", "sqs", "redis"
    |
    */

    'default' => env('QUEUE_DRIVER', 'sync'),

    /*
    |--------------------------------------------------------------------------
    | Queue Connections
    |--------------------------------------------------------------------------
    |
    | Here you may configure the connection information for each server that
    | is used by your application. A default configuration has been added
    | for each back-end shipped with Laravel. You are free to add more.
    |
    */

    'connections' => [

        'sync' => [
            'driver' => 'sync',
        ],

        'database' => [
            'driver' => 'database',
            'table' => 'jobs',
            'queue' => 'default',
            'expire' => 60,
        ],

        'beanstalkd' => [
            'driver' => 'beanstalkd',
            'host' => 'localhost',
            'queue' => 'default',
            'ttr' => 60,
        ],

        'sqs' => [
            'driver' => 'sqs',
            'key' => 'your-public-key',
            'secret' => 'your-secret-key',
            'prefix' => 'https://sqs.us-east-1.amazonaws.com/your-account-id',
            'queue' => 'your-queue-name',
            'region' => 'us-east-1',
        ],

        'redis' => [
            'driver' => 'redis',
            'connection' => 'default',
            'queue' => 'default',
            'expire' => 60,
        ],

    ],

    /*
    |--------------------------------------------------------------------------
    | Failed Queue Jobs
    |--------------------------------------------------------------------------
    |
    | These options configure the behavior of failed queue job logging so you
    | can control which database and table are used to store the jobs that
    | have failed. You may change them to any database / table you wish.
    |
    */

    'failed' => [
        'database' => env('DB_CONNECTION', 'mysql'),
        'table' => 'failed_jobs',
    ],

];
diff --git a/config/services.php b/config/services.php
new file mode 100644
index 0000000..9b33fdb
--- /dev/null
+++ b/config/services.php
@@ -0,0 +1,42 @@
<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Third Party Services
    |--------------------------------------------------------------------------
    |
    | This file is for storing the credentials for third party services such
    | as Stripe, Mailgun, Mandrill, and others. This file provides a sane
    | default location for this type of information, allowing packages
    | to have a conventional place to find your various credentials.
    |
    */

    'mailgun' => [
        'domain' => env('MAILGUN_DOMAIN'),
        'secret' => env('MAILGUN_SECRET'),
    ],

    'mandrill' => [
        'secret' => env('MANDRILL_SECRET'),
    ],

    'ses' => [
        'key' => env('SES_KEY'),
        'secret' => env('SES_SECRET'),
        'region' => 'us-east-1',
    ],

    'sparkpost' => [
        'secret' => env('SPARKPOST_SECRET'),
    ],

    'stripe' => [
        'model' => App\Models\User::class,
        'key' => env('STRIPE_KEY'),
        'secret' => env('STRIPE_SECRET'),
    ],

];
diff --git a/config/session.php b/config/session.php
new file mode 100644
index 0000000..2a6f993
--- /dev/null
+++ b/config/session.php
@@ -0,0 +1,166 @@
<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Default Session Driver
    |--------------------------------------------------------------------------
    |
    | This option controls the default session "driver" that will be used on
    | requests. By default, we will use the lightweight native driver but
    | you may specify any of the other wonderful drivers provided here.
    |
    | Supported: "file", "cookie", "database", "apc",
    |            "memcached", "redis", "array"
    |
    */

    'driver' => env('SESSION_DRIVER', 'database'),

    /*
    |--------------------------------------------------------------------------
    | Session Lifetime
    |--------------------------------------------------------------------------
    |
    | Here you may specify the number of minutes that you wish the session
    | to be allowed to remain idle before it expires. If you want them
    | to immediately expire on the browser closing, set that option.
    |
    */

    'lifetime' => 120,

    'expire_on_close' => false,

    /*
    |--------------------------------------------------------------------------
    | Session Encryption
    |--------------------------------------------------------------------------
    |
    | This option allows you to easily specify that all of your session data
    | should be encrypted before it is stored. All encryption will be run
    | automatically by Laravel and you can use the Session like normal.
    |
    */

    'encrypt' => true,

    /*
    |--------------------------------------------------------------------------
    | Session File Location
    |--------------------------------------------------------------------------
    |
    | When using the native session driver, we need a location where session
    | files may be stored. A default has been set for you but a different
    | location may be specified. This is only needed for file sessions.
    |
    */

    'files' => storage_path('framework/sessions'),

    /*
    |--------------------------------------------------------------------------
    | Session Database Connection
    |--------------------------------------------------------------------------
    |
    | When using the "database" or "redis" session drivers, you may specify a
    | connection that should be used to manage these sessions. This should
    | correspond to a connection in your database configuration options.
    |
    */

    'connection' => null,

    /*
    |--------------------------------------------------------------------------
    | Session Database Table
    |--------------------------------------------------------------------------
    |
    | When using the "database" session driver, you may specify the table we
    | should use to manage the sessions. Of course, a sensible default is
    | provided for you; however, you are free to change this as needed.
    |
    */

    'table' => 'sessions',

    /*
    |--------------------------------------------------------------------------
    | Session Sweeping Lottery
    |--------------------------------------------------------------------------
    |
    | Some session drivers must manually sweep their storage location to get
    | rid of old sessions from storage. Here are the chances that it will
    | happen on a given request. By default, the odds are 2 out of 100.
    |
    */

    'lottery' => [2, 100],

    /*
    |--------------------------------------------------------------------------
    | Session Cookie Name
    |--------------------------------------------------------------------------
    |
    | Here you may change the name of the cookie used to identify a session
    | instance by ID. The name specified here will get used every time a
    | new session cookie is created by the framework for every driver.
    |
    */

    'cookie' => 'laravel_session',

    /*
    |--------------------------------------------------------------------------
    | Session Cookie Path
    |--------------------------------------------------------------------------
    |
    | The session cookie path determines the path for which the cookie will
    | be regarded as available. Typically, this will be the root path of
    | your application but you are free to change this when necessary.
    |
    */

    'path' => '/',

    /*
    |--------------------------------------------------------------------------
    | Session Cookie Domain
    |--------------------------------------------------------------------------
    |
    | Here you may change the domain of the cookie used to identify a session
    | in your application. This will determine which domains the cookie is
    | available to in your application. A sensible default has been set.
    |
    */

    'domain' => null,

    /*
    |--------------------------------------------------------------------------
    | HTTPS Only Cookies
    |--------------------------------------------------------------------------
    |
    | By setting this option to true, session cookies will only be sent back
    | to the server if the browser has a HTTPS connection. This will keep
    | the cookie from being sent to you if it can not be done securely.
    |
    */

    'secure' => false,

    /*
    |--------------------------------------------------------------------------
    | HTTP Access Only
    |--------------------------------------------------------------------------
    |
    | Setting this value to true will prevent JavaScript from accessing the
    | value of the cookie and the cookie will only be accessible through
    | the HTTP protocol. You are free to modify this option if needed.
    |
    */

    'http_only' => true,

];
diff --git a/config/view.php b/config/view.php
new file mode 100644
index 0000000..e193ab6
--- /dev/null
+++ b/config/view.php
@@ -0,0 +1,33 @@
<?php

return [

    /*
    |--------------------------------------------------------------------------
    | View Storage Paths
    |--------------------------------------------------------------------------
    |
    | Most templating systems load templates from disk. Here you may specify
    | an array of paths that should be checked for your views. Of course
    | the usual Laravel view path has already been registered for you.
    |
    */

    'paths' => [
        realpath(base_path('resources/views')),
    ],

    /*
    |--------------------------------------------------------------------------
    | Compiled View Path
    |--------------------------------------------------------------------------
    |
    | This option determines where all the compiled Blade templates will be
    | stored for your application. Typically, this is within the storage
    | directory. However, as usual, you are free to change this value.
    |
    */

    'compiled' => realpath(storage_path('framework/views')),

];
diff --git a/database/.gitignore b/database/.gitignore
new file mode 100644
index 0000000..9b1dffd
--- /dev/null
+++ b/database/.gitignore
@@ -0,0 +1 @@
*.sqlite
diff --git a/database/factories/ModelFactory.php b/database/factories/ModelFactory.php
new file mode 100644
index 0000000..b3d9bbc
--- /dev/null
+++ b/database/factories/ModelFactory.php
@@ -0,0 +1 @@
<?php
diff --git a/database/migrations/.gitkeep b/database/migrations/.gitkeep
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/database/migrations/.gitkeep
@@ -0,0 +1 @@

diff --git a/database/migrations/2014_10_12_000000_create_users_tokens_table.php b/database/migrations/2014_10_12_000000_create_users_tokens_table.php
new file mode 100644
index 0000000..1b244c0
--- /dev/null
+++ b/database/migrations/2014_10_12_000000_create_users_tokens_table.php
@@ -0,0 +1,31 @@
<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUsersTokensTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('users_tokens', function (Blueprint $table) {
            $table->integer('user_id')->unsigned();
            $table->rememberToken();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('users_tokens');
    }
}
diff --git a/database/migrations/2016_06_09_131012_create_dj_says_table.php b/database/migrations/2016_06_09_131012_create_dj_says_table.php
new file mode 100644
index 0000000..0771a65
--- /dev/null
+++ b/database/migrations/2016_06_09_131012_create_dj_says_table.php
@@ -0,0 +1,32 @@
<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateDjSaysTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('dj_says', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('dj')->unsigned();
            $table->text('msg');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('dj_says');
    }
}
diff --git a/database/migrations/2016_06_09_153843_create_connection_info_table.php b/database/migrations/2016_06_09_153843_create_connection_info_table.php
new file mode 100644
index 0000000..f7a62ea
--- /dev/null
+++ b/database/migrations/2016_06_09_153843_create_connection_info_table.php
@@ -0,0 +1,34 @@
<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateConnectionInfoTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('connection_info', function (Blueprint $table) {
            $table->increments('id');
            $table->string('ip');
            $table->integer('port')->unsigned();
            $table->string('password');
            $table->integer('added_by')->unsigned();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('connection_info');
    }
}
diff --git a/database/migrations/2016_06_10_233839_create_timetables_table.php b/database/migrations/2016_06_10_233839_create_timetables_table.php
new file mode 100644
index 0000000..7620cca
--- /dev/null
+++ b/database/migrations/2016_06_10_233839_create_timetables_table.php
@@ -0,0 +1,36 @@
<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTimetablesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('timetables', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('dj')->unsigned();
            $table->integer('week')->unsigned();
            $table->integer('year')->unsigned();
            $table->integer('day')->unsigned();
            $table->integer('hour')->unsigned();
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('timetables');
    }
}
diff --git a/database/migrations/2016_06_10_234426_create_sessions_table.php b/database/migrations/2016_06_10_234426_create_sessions_table.php
new file mode 100644
index 0000000..f1c84aa
--- /dev/null
+++ b/database/migrations/2016_06_10_234426_create_sessions_table.php
@@ -0,0 +1,34 @@
<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSessionsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('sessions', function (Blueprint $table) {
            $table->string('id')->unique();
            $table->integer('user_id')->nullable();
            $table->string('ip_address', 45)->nullable();
            $table->text('user_agent')->nullable();
            $table->text('payload');
            $table->integer('last_activity');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('sessions');
    }
}
diff --git a/database/migrations/2016_06_11_102100_create_requests_table.php b/database/migrations/2016_06_11_102100_create_requests_table.php
new file mode 100644
index 0000000..d86f970
--- /dev/null
+++ b/database/migrations/2016_06_11_102100_create_requests_table.php
@@ -0,0 +1,34 @@
<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateRequestsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('requests', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name');
            $table->text('request');
            $table->ipAddress('ip_address');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('requests');
    }
}
diff --git a/database/migrations/2016_06_11_112217_create_request_bans_table.php b/database/migrations/2016_06_11_112217_create_request_bans_table.php
new file mode 100644
index 0000000..6e7970a
--- /dev/null
+++ b/database/migrations/2016_06_11_112217_create_request_bans_table.php
@@ -0,0 +1,32 @@
<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateRequestBansTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('request_bans', function (Blueprint $table) {
            $table->increments('id');
            $table->ipAddress('ip_address');
            $table->integer('added_by');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('request_bans');
    }
}
diff --git a/database/migrations/2016_06_12_161652_create_event_types_table.php b/database/migrations/2016_06_12_161652_create_event_types_table.php
new file mode 100644
index 0000000..829feee
--- /dev/null
+++ b/database/migrations/2016_06_12_161652_create_event_types_table.php
@@ -0,0 +1,32 @@
<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateEventTypesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('event_types', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->unique();
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('event_types');
    }
}
diff --git a/database/migrations/2016_06_16_192959_create_events_table.php b/database/migrations/2016_06_16_192959_create_events_table.php
new file mode 100644
index 0000000..36eab7b
--- /dev/null
+++ b/database/migrations/2016_06_16_192959_create_events_table.php
@@ -0,0 +1,41 @@
<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateEventsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('events', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('user')->unsigned();
            $table->integer('week')->unsigned();
            $table->integer('year')->unsigned();
            $table->integer('day')->unsigned();
            $table->integer('hour')->unsigned();
            $table->integer('event_type_id')->unsigned();
            $table->integer('room_id')->unsigned();
            $table->boolean('approved')->default(false);
            $table->timestamps();
            $table->softDeletes();

            $table->foreign('event_type_id')->references('id')->on('event_types');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('events');
    }
}
diff --git a/database/seeds/.gitkeep b/database/seeds/.gitkeep
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/database/seeds/.gitkeep
@@ -0,0 +1 @@

diff --git a/database/seeds/DatabaseSeeder.php b/database/seeds/DatabaseSeeder.php
new file mode 100644
index 0000000..e119db6
--- /dev/null
+++ b/database/seeds/DatabaseSeeder.php
@@ -0,0 +1,16 @@
<?php

use Illuminate\Database\Seeder;

class DatabaseSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        // $this->call(UsersTableSeeder::class);
    }
}
diff --git a/gulpfile.babel.js b/gulpfile.babel.js
new file mode 100644
index 0000000..3348685
--- /dev/null
+++ b/gulpfile.babel.js
@@ -0,0 +1,21 @@
'use strict';

import elixir from 'laravel-elixir';

/*
 |--------------------------------------------------------------------------
 | Elixir Asset Management
 |--------------------------------------------------------------------------
 |
 | Elixir provides a clean, fluent API for defining some basic Gulp tasks
 | for your Laravel application. By default, we are compiling the Sass
 | file for our application, as well as publishing vendor resources.
 |
 */

elixir((mix) => {
    mix.sass('app.sass');
    mix.browserify('main.js');
    mix.version(['js/main.js', 'css/app.css']);
    mix.copy('bower_components/components-font-awesome/fonts', 'public/build/fonts');
});
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..5fbe308
--- /dev/null
+++ b/package.json
@@ -0,0 +1,55 @@
{
  "private": true,
  "scripts": {
    "prod": "gulp --production",
    "dev": "gulp watch"
  },
  "devDependencies": {
    "babel-core": "^6.9.1",
    "babel-preset-es2015": "^6.9.0",
    "browserify-shim": "^3.8.12",
    "deamdify": "^0.2.0",
    "debowerify": "^1.4.1",
    "gulp": "^3.9.1",
    "laravel-elixir": "^5.0.0"
  },
  "dependencies": {
    "aliasify": "^2.0.0",
    "backbone": "^1.3.3",
    "bootstrap": "^4.0.0-alpha.2",
    "deamdify": "^0.2.0",
    "jquery": "^2.2.4",
    "jquery-scrollto": "github:balupton/jquery-scrollto",
    "lodash": "^4.13.1",
    "tether": "^1.3.2"
  },
  "browserify": {
    "transform": [
      "debowerify",
      "deamdify",
      "browserify-shim",
      "aliasify"
    ]
  },
  "browser": {
    "ajaxify-html5": "./bower_components/ajaxify/ajaxify-html5.js",
    "jquery.history": "./bower_components/history.js/scripts/bundled/html5/jquery.history.js"
  },
  "browserify-shim": {
    "ajaxify-html5": {
      "depends": [
        "jquery:jQuery"
      ]
    },
    "jquery.history": {
      "depends": [
        "jquery:jQuery"
      ]
    }
  },
  "aliasify": {
    "aliases": {
      "underscore": "lodash"
    }
  }
}
diff --git a/phpunit.xml b/phpunit.xml
new file mode 100644
index 0000000..3e884d1
--- /dev/null
+++ b/phpunit.xml
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         bootstrap="bootstrap/autoload.php"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false">
    <testsuites>
        <testsuite name="Application Test Suite">
            <directory suffix="Test.php">./tests</directory>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">./app</directory>
            <exclude>
                <file>./app/Http/routes.php</file>
            </exclude>
        </whitelist>
    </filter>
    <php>
        <env name="APP_ENV" value="testing"/>
        <env name="CACHE_DRIVER" value="array"/>
        <env name="SESSION_DRIVER" value="array"/>
        <env name="QUEUE_DRIVER" value="sync"/>
    </php>
</phpunit>
diff --git a/readme.md b/readme.md
new file mode 100644
index 0000000..7f8816d
--- /dev/null
+++ b/readme.md
@@ -0,0 +1,27 @@
# Laravel PHP Framework

[![Build Status]https://travis-ci.org/laravel/framework.svg]https://travis-ci.org/laravel/framework
[![Total Downloads]https://poser.pugx.org/laravel/framework/d/total.svg]https://packagist.org/packages/laravel/framework
[![Latest Stable Version]https://poser.pugx.org/laravel/framework/v/stable.svg]https://packagist.org/packages/laravel/framework
[![Latest Unstable Version]https://poser.pugx.org/laravel/framework/v/unstable.svg]https://packagist.org/packages/laravel/framework
[![License]https://poser.pugx.org/laravel/framework/license.svg]https://packagist.org/packages/laravel/framework

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as authentication, routing, sessions, queueing, and caching.

Laravel is accessible, yet powerful, providing tools needed for large, robust applications. A superb inversion of control container, expressive migration system, and tightly integrated unit testing support give you the tools you need to build any application with which you are tasked.

## Official Documentation

Documentation for the framework can be found on the [Laravel website]http://laravel.com/docs.

## Contributing

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation]http://laravel.com/docs/contributions.

## Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell at taylor@laravel.com. All security vulnerabilities will be promptly addressed.

## License

The Laravel framework is open-sourced software licensed under the [MIT license]http://opensource.org/licenses/MIT.
diff --git a/resources/assets/js/ajax.js b/resources/assets/js/ajax.js
new file mode 100644
index 0000000..d1afe9a
--- /dev/null
+++ b/resources/assets/js/ajax.js
@@ -0,0 +1,43 @@
import $ from 'jquery';

const toast = document.querySelector('#toast');
const root = $('body').data('root');

$('#timetable').find('form').on('submit', (event) => {
    const data = $(event.currentTarget).serializeArray();
    const action = $(event.currentTarget).attr('action');
    const method = $(event.currentTarget).attr('method').toUpperCase() || 'GET';

    let error = false;

    $.ajax({
        url: action,
        type: method,
        data: data,
        dataType: 'json',
        success: (data) => {
            toast.MaterialSnackbar.showSnackbar({
                message: data.msg
            });

            if (!data.error) {
                const method = $(event.currentTarget).find('input[name="_method"]');

                if (method.val() === 'delete') {
                    $(event.currentTarget).find('a').html('Unbooked');
                    method.val('put');
                } else {
                    $(event.currentTarget).find('a').html($('#username').html());
                    method.val('delete');
                }
            }

            //$('#error-container').html(msg);
        },
        error: () => error = true
    });

    if (!error) {
        return false;
    }
});
diff --git a/resources/assets/js/main.js b/resources/assets/js/main.js
new file mode 100644
index 0000000..48f3b74
--- /dev/null
+++ b/resources/assets/js/main.js
@@ -0,0 +1,11 @@
import $ from 'jquery';

import 'material-design-lite';
import 'getmdl-select';
import './push-notifications';
import './ajax';

$('.a-submit a').click((event) => {
    $(event.currentTarget).parent('form').submit();
    return false;
});
diff --git a/resources/assets/js/push-notifications.js b/resources/assets/js/push-notifications.js
new file mode 100644
index 0000000..24252d7
--- /dev/null
+++ b/resources/assets/js/push-notifications.js
@@ -0,0 +1,37 @@
import Pusher from 'pusher-websocket-iso';

const bindPusher = () => {
    if (IS_DJ) {
        const pusher = new Pusher(PUSHER_APP_KEY, {
            authEndpoint: PUSHER_ENDPOINT,
            encrypted: true,
            cluster: PUSHER_CLUSTER,
            auth: {
                headers: {
                    'X-CSRF-Token': CSRF_TOKEN
                }
            }
        });

        const channel = pusher.subscribe('private-dj');
        channel.bind('request', (data) => {
            new Notification('New Request', {
                body: `${data.msg} - ${data.sender}`
            });
        });
    }
};

if ("Notification" in window) {
    if (Notification.permission !== 'granted') {
        Notification.requestPermission().then((result) => {
            if (result === 'granted') {
                bindPusher();
            }
        });
    } else {
        bindPusher();
    }
} else {
    alert('This browser doesn\'t support notifications. Please upgrade!');
}
diff --git a/resources/assets/sass/_card.sass b/resources/assets/sass/_card.sass
new file mode 100644
index 0000000..5412faa
--- /dev/null
+++ b/resources/assets/sass/_card.sass
@@ -0,0 +1,21 @@
.mdl-card
  min-height: 0

  .mdl-card__supporting-text
    margin: 40px
    padding: 0
    width: calc(100% - 80px)

    h4
      margin-top: 0
      margin-bottom: 20px

  .mdl-card__actions
    display: flex
    align-items: center

    font-size: 14px
    font-weight: 400
    line-height: 24px
    letter-spacing: 0
    color: rgba(0, 0, 0, 0.54)
diff --git a/resources/assets/sass/_drawer.sass b/resources/assets/sass/_drawer.sass
new file mode 100644
index 0000000..0fac9fc
--- /dev/null
+++ b/resources/assets/sass/_drawer.sass
@@ -0,0 +1,13 @@
.mdl-layout__drawer .mdl-navigation
  .zpan-drawer-separator
    height: 1px
    background-color: rgb(220, 220, 220)
    margin: 8px 0

  span.mdl-navigation__link
    color: unquote("rgb(#{$color-primary})")

  .mdl-navigation__link
    &.is-active
      border-left: 2px solid unquote("rgb(#{$color-accent})")
      color: unquote("rgb(#{$color-accent})")
diff --git a/resources/assets/sass/_login.sass b/resources/assets/sass/_login.sass
new file mode 100644
index 0000000..5ac208c
--- /dev/null
+++ b/resources/assets/sass/_login.sass
@@ -0,0 +1,5 @@
.app-login
  .mdl-layout__content
    display: flex
    align-items: center
    justify-content: center
diff --git a/resources/assets/sass/_misc.sass b/resources/assets/sass/_misc.sass
new file mode 100644
index 0000000..1fe741e
--- /dev/null
+++ b/resources/assets/sass/_misc.sass
@@ -0,0 +1,72 @@
.zpan-container
  max-width: 1000px
  padding: 8px
  margin: auto

fieldset.mdl-textfield
  display: block

.no-decoration
  text-decoration: none

.mdl-data-table td
  border-top: 1px solid rgba(black, 0.02)
  border-bottom: 1px solid rgba(black, 0.02)

.table-responsive
  overflow-x: auto
  min-height: 0.01%

  @media screen and (max-width: 767px)
    width: 100%
    overflow-y: hidden
    -ms-overflow-style: -ms-autohiding-scrollbar
    border: 1px solid rgba(black, 0.02)

    > table
      margin: 0
      border: none
      box-shadow: none

      > thead, > tbody, > tfoot
        > tr, > th, > td
          white-space: nowrap

        > tr
          > th:first-child, td:first-child
            border-left: none
          > th:last-child, td:last-child
            border-right: none

      > tbody, > tfoot
        > tr:last-child
          > th, > td
            border-bottom: none

$alerts: ("success": (#dff0d8, darken(adjust-hue(#dff0d8, -10), 5%), #3c763d))
$alerts: map_merge($alerts, ("info": (#31708f, darken(adjust-hue(#d9edf7, -10), 7%), #31708f)))
$alerts: map_merge($alerts, ("warning": (#fcf8e3, darken(adjust-hue(#fcf8e3, -10), 5%), #8a6d3b)))
$alerts: map_merge($alerts, ("danger": (#f2dede, darken(adjust-hue(#fcf8e3, -10), 5%), #a94442)))

.alert
  padding: 15px
  margin: 1.2rem 0 1rem 0
  border: 1px solid transparent
  border-radius: .25rem

  > p, > ul
    margin-bottom: 0

  > p + p
    margin-top: 5px

  @each $name, $values in $alerts
    &-#{$name}
      background: nth($values, 1)
      border-color: nth($values, 2)
      color: nth($values, 3)

.timetable
  ul
    columns: 4
    list-style: none
diff --git a/resources/assets/sass/_navigation.sass b/resources/assets/sass/_navigation.sass
new file mode 100644
index 0000000..2e5a4ab
--- /dev/null
+++ b/resources/assets/sass/_navigation.sass
@@ -0,0 +1,26 @@
.pagination
  float: right

  li
    display: inline-block
    font-size: 1.2rem
    padding: 0 10px
    line-height: 30px
    border-radius: 2px
    text-align: center

    &.active
      background-color: #ee6e73
      color: #fff

    a
      color: rgb(68, 68, 68)

    i
      font-size: 2.2rem
      vertical-align: middle

    &.disabled
      span
        cursor: default
        color: rgb(153, 153, 153)
diff --git a/resources/assets/sass/app.sass b/resources/assets/sass/app.sass
new file mode 100644
index 0000000..f67d6de
--- /dev/null
+++ b/resources/assets/sass/app.sass
@@ -0,0 +1,12 @@
$preferred_font: "Roboto", "Helvetica Neue", "Helvetica", "Arial", sans-serif
$performance_font: "Helvetica Neue", "Helvetica", "Arial", sans-serif

@import "bower_components/material-design-lite/src/material-design-lite"
@import "bower_components/components-font-awesome/scss/font-awesome"
@import "bower_components/getmdl-select/src/scss/getmdl-select"

@import "login"
@import "drawer"
@import "card"
@import "misc"
@import "navigation"
diff --git a/resources/lang/en/auth.php b/resources/lang/en/auth.php
new file mode 100644
index 0000000..e5506df
--- /dev/null
+++ b/resources/lang/en/auth.php
@@ -0,0 +1,19 @@
<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Authentication Language Lines
    |--------------------------------------------------------------------------
    |
    | The following language lines are used during authentication for various
    | messages that we need to display to the user. You are free to modify
    | these language lines according to your application's requirements.
    |
    */

    'failed' => 'These credentials do not match our records.',
    'throttle' => 'Too many login attempts. Please try again in :seconds seconds.',

];
diff --git a/resources/lang/en/pagination.php b/resources/lang/en/pagination.php
new file mode 100644
index 0000000..fcab34b
--- /dev/null
+++ b/resources/lang/en/pagination.php
@@ -0,0 +1,19 @@
<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Pagination Language Lines
    |--------------------------------------------------------------------------
    |
    | The following language lines are used by the paginator library to build
    | the simple pagination links. You are free to change them to anything
    | you want to customize your views to better match your application.
    |
    */

    'previous' => '&laquo; Previous',
    'next'     => 'Next &raquo;',

];
diff --git a/resources/lang/en/passwords.php b/resources/lang/en/passwords.php
new file mode 100644
index 0000000..e5544d2
--- /dev/null
+++ b/resources/lang/en/passwords.php
@@ -0,0 +1,22 @@
<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Password Reset Language Lines
    |--------------------------------------------------------------------------
    |
    | The following language lines are the default lines which match reasons
    | that are given by the password broker for a password update attempt
    | has failed, such as for an invalid token or invalid new password.
    |
    */

    'password' => 'Passwords must be at least six characters and match the confirmation.',
    'reset' => 'Your password has been reset!',
    'sent' => 'We have e-mailed your password reset link!',
    'token' => 'This password reset token is invalid.',
    'user' => "We can't find a user with that e-mail address.",

];
diff --git a/resources/lang/en/validation.php b/resources/lang/en/validation.php
new file mode 100644
index 0000000..b720584
--- /dev/null
+++ b/resources/lang/en/validation.php
@@ -0,0 +1,114 @@
<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Validation Language Lines
    |--------------------------------------------------------------------------
    |
    | The following language lines contain the default error messages used by
    | the validator class. Some of these rules have multiple versions such
    | as the size rules. Feel free to tweak each of these messages here.
    |
    */

    'accepted'             => 'The :attribute must be accepted.',
    'active_url'           => 'The :attribute is not a valid URL.',
    'after'                => 'The :attribute must be a date after :date.',
    'alpha'                => 'The :attribute may only contain letters.',
    'alpha_dash'           => 'The :attribute may only contain letters, numbers, and dashes.',
    'alpha_num'            => 'The :attribute may only contain letters and numbers.',
    'array'                => 'The :attribute must be an array.',
    'before'               => 'The :attribute must be a date before :date.',
    'between'              => [
        'numeric' => 'The :attribute must be between :min and :max.',
        'file'    => 'The :attribute must be between :min and :max kilobytes.',
        'string'  => 'The :attribute must be between :min and :max characters.',
        'array'   => 'The :attribute must have between :min and :max items.',
    ],
    'boolean'              => 'The :attribute field must be true or false.',
    'confirmed'            => 'The :attribute confirmation does not match.',
    'date'                 => 'The :attribute is not a valid date.',
    'date_format'          => 'The :attribute does not match the format :format.',
    'different'            => 'The :attribute and :other must be different.',
    'digits'               => 'The :attribute must be :digits digits.',
    'digits_between'       => 'The :attribute must be between :min and :max digits.',
    'dimensions'           => 'The :attribute has invalid image dimensions.',
    'distinct'             => 'The :attribute field has a duplicate value.',
    'email'                => 'The :attribute must be a valid email address.',
    'exists'               => 'The selected :attribute is invalid.',
    'filled'               => 'The :attribute field is required.',
    'image'                => 'The :attribute must be an image.',
    'in'                   => 'The selected :attribute is invalid.',
    'in_array'             => 'The :attribute field does not exist in :other.',
    'integer'              => 'The :attribute must be an integer.',
    'ip'                   => 'The :attribute must be a valid IP address.',
    'json'                 => 'The :attribute must be a valid JSON string.',
    'max'                  => [
        'numeric' => 'The :attribute may not be greater than :max.',
        'file'    => 'The :attribute may not be greater than :max kilobytes.',
        'string'  => 'The :attribute may not be greater than :max characters.',
        'array'   => 'The :attribute may not have more than :max items.',
    ],
    'mimes'                => 'The :attribute must be a file of type: :values.',
    'min'                  => [
        'numeric' => 'The :attribute must be at least :min.',
        'file'    => 'The :attribute must be at least :min kilobytes.',
        'string'  => 'The :attribute must be at least :min characters.',
        'array'   => 'The :attribute must have at least :min items.',
    ],
    'not_in'               => 'The selected :attribute is invalid.',
    'numeric'              => 'The :attribute must be a number.',
    'present'              => 'The :attribute field must be present.',
    'regex'                => 'The :attribute format is invalid.',
    'required'             => 'The :attribute field is required.',
    'required_if'          => 'The :attribute field is required when :other is :value.',
    'required_unless'      => 'The :attribute field is required unless :other is in :values.',
    'required_with'        => 'The :attribute field is required when :values is present.',
    'required_with_all'    => 'The :attribute field is required when :values is present.',
    'required_without'     => 'The :attribute field is required when :values is not present.',
    'required_without_all' => 'The :attribute field is required when none of :values are present.',
    'same'                 => 'The :attribute and :other must match.',
    'size'                 => [
        'numeric' => 'The :attribute must be :size.',
        'file'    => 'The :attribute must be :size kilobytes.',
        'string'  => 'The :attribute must be :size characters.',
        'array'   => 'The :attribute must contain :size items.',
    ],
    'string'               => 'The :attribute must be a string.',
    'timezone'             => 'The :attribute must be a valid zone.',
    'unique'               => 'The :attribute has already been taken.',
    'url'                  => 'The :attribute format is invalid.',

    /*
    |--------------------------------------------------------------------------
    | Custom Validation Language Lines
    |--------------------------------------------------------------------------
    |
    | Here you may specify custom validation messages for attributes using the
    | convention "attribute.rule" to name the lines. This makes it quick to
    | specify a specific custom language line for a given attribute rule.
    |
    */

    'custom' => [
        'attribute-name' => [
            'rule-name' => 'custom-message',
        ],
    ],

    /*
    |--------------------------------------------------------------------------
    | Custom Validation Attributes
    |--------------------------------------------------------------------------
    |
    | The following language lines are used to swap attribute place-holders
    | with something more reader friendly such as E-Mail Address instead
    | of "email". This simply helps us make messages a little cleaner.
    |
    */

    'attributes' => [],

];
diff --git a/resources/lang/i18n/en_GB/LC_MESSAGES/messages.mo b/resources/lang/i18n/en_GB/LC_MESSAGES/messages.mo
new file mode 100644
index 0000000..4c34ae9
Binary files /dev/null and b/resources/lang/i18n/en_GB/LC_MESSAGES/messages.mo differ
diff --git a/resources/lang/i18n/en_GB/LC_MESSAGES/messages.po b/resources/lang/i18n/en_GB/LC_MESSAGES/messages.po
new file mode 100644
index 0000000..1d8b159
--- /dev/null
+++ b/resources/lang/i18n/en_GB/LC_MESSAGES/messages.po
@@ -0,0 +1,23 @@
msgid ""
msgstr ""
"Project-Id-Version: ZPAN\n"
"POT-Creation-Date: 2016-06-09 01:23+0100\n"
"PO-Revision-Date: 2016-06-09 01:23+0100\n"
"Last-Translator: Jordan Doyle <jordan@doyle.wf>\n"
"Language-Team: Jordan Doyle <jordan@doyle.wf>\n"
"Language: en_GB\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.8\n"
"X-Poedit-KeywordsList: _;__;gettext;_n:1,2;ngettext:1,2\n"
"X-Poedit-Basepath: ../../../../..\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-SearchPath-0: app/Http/Controllers\n"
"X-Poedit-SearchPath-1: resources/views\n"
"X-Poedit-SearchPath-2: storage/framework/messages\n"
"X-Poedit-SearchPath-3: app\n"

#: app/Http/Middleware/Authenticate.php:27
msgid "You have been logged out as you are no longer a staff member."
msgstr "You have been logged out as you are no longer a staff member."
diff --git a/resources/views/admin/connection-info.blade.php b/resources/views/admin/connection-info.blade.php
new file mode 100644
index 0000000..038dba9
--- /dev/null
+++ b/resources/views/admin/connection-info.blade.php
@@ -0,0 +1,50 @@
@extends(Request::ajax() ? 'layouts.ajax-main' : 'layouts.main')

@section('title'){{ _('Update Connection Info') }} @endsection

@section('content')
    <div class="mdl-card mdl-cell mdl-cell--12-col mdl-shadow--2dp">
        <div class="mdl-card__supporting-text">
            <h4>{{ _('Update Connection Info') }}</h4>

            <p>{{ _('Here you can update the connection information for our radio. Please ensure your information is up-to-date before updating this page.') }}</p>

            <form role="form" method="POST" action="{{ route('dashboard::admin::connection-info.post') }}">
                {{ csrf_field() }}

                <fieldset class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label {{ $errors->has('ip') ? 'is-invalid' : '' }}">
                    <input type="text" class="mdl-textfield__input" id="ip" name="ip"
                           value="{{ old('ip', $connection ? $connection->ip : '') }}">
                    <label class="mdl-textfield__label" for="ip">IP Address</label>
                    @if ($errors->has('ip'))
                        <span class="mdl-textfield__error">{{ $errors->first('ip') }}</span>
                    @endif
                </fieldset>

                <fieldset class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label {{ $errors->has('port') ? 'is-invalid' : '' }}">
                    <input type="number" class="mdl-textfield__input" id="port" name="port"
                           step="1" max="65535" value="{{ old('port', $connection ? $connection->port : '') }}">
                    <label class="mdl-textfield__label" for="port">{{ _('Port') }}</label>
                    @if ($errors->has('port'))
                        <span class="mdl-textfield__error">{{ $errors->first('port') }}</span>
                    @endif
                </fieldset>

                <fieldset class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label {{ $errors->has('password') ? 'is-invalid' : '' }}">
                    <input type="password" class="mdl-textfield__input" id="password" name="password"
                           value="{{ old('password') }}">
                    <label class="mdl-textfield__label" for="password">{{ _('Password') }}</label>
                    @if ($errors->has('password'))
                        <span class="mdl-textfield__error">{{ $errors->first('password') }}</span>
                    @endif
                </fieldset>

                <fieldset class="form-group">
                    <button type="submit" class="mdl-button mdl-button--raised mdl-button--colored mdl-js-button mdl-js-ripple-effect">
                        <i class="fa fa-btn fa-pencil-square-o"></i> {{ _('Update') }}
                    </button>
                </fieldset>
            </form>
        </div>
    </div>
@endsection
diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php
new file mode 100644
index 0000000..0b8b92f
--- /dev/null
+++ b/resources/views/auth/login.blade.php
@@ -0,0 +1,52 @@
<!DOCTYPE html>
<html lang="en">
<head>
    @section('title'){{ _('Login') }} @endsection
    @include('layouts.head')
</head>

<body id="app-layout" class="app-login">
    <div class="mdl-layout mdl-js-layout">
        <main class="mdl-layout__content mdl-color--grey-100">
            <div class="mdl-card mdl-shadow--6dp">
                <div class="mdl-card__title mdl-color--teal mdl-color-text--white">
                    <h2 class="mdl-card__title-text">zpan</h2>
                </div>

                <form action="{{ route('auth::login.post') }}" method="post">
                    {{ csrf_field() }}

                    <div class="mdl-card__supporting-text">
                        <div
                            class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label {{ $errors->has('email') ? 'is-invalid' : '' }}">
                            <input class="mdl-textfield__input" type="email" id="email" name="email"
                                   value="{{ old('email') }}">
                            <label class="mdl-textfield__label" for="email">Email Address</label>
                            @if ($errors->has('email'))
                                <span class="mdl-textfield__error">{{ $errors->first('email') }}</span>
                            @endif
                        </div>

                        <div
                            class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label {{ $errors->has('password') ? 'is-invalid' : '' }}">
                            <input class="mdl-textfield__input" type="password" id="password" name="password">
                            <label class="mdl-textfield__label" for="password">Password</label>
                            @if ($errors->has('password'))
                                <span class="mdl-textfield__error">{{ $errors->first('password') }}</span>
                            @endif
                        </div>
                    </div>

                    <div class="mdl-card__actions mdl-card--border">
                        <button class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect" type="submit">
                            {{ _('Login') }}
                        </button>
                    </div>
                </form>
            </div>
        </main>
    </div>

    <script src="{{ elixir('js/main.js') }}"></script>
</body>
</html>
diff --git a/resources/views/dj/connection-info.blade.php b/resources/views/dj/connection-info.blade.php
new file mode 100644
index 0000000..d086c5a
--- /dev/null
+++ b/resources/views/dj/connection-info.blade.php
@@ -0,0 +1,33 @@
@extends(Request::ajax() ? 'layouts.ajax-main' : 'layouts.main')

@section('title'){{ _('View Connection Info') }} @endsection

@section('content')
    <div class="mdl-card mdl-cell mdl-cell--12-col mdl-shadow--2dp">
        <div class="mdl-card__supporting-text">
            <h4>{{ _('View Connection Info') }}</h4>

            <p>{{ _('Here you can view the connection info for our radio. Please ensure your information is up-to-date before attempting to connect to the server.') }}</p>

            <p>{{ _('Unlike many fansites, we use up-to-date software. This also means we are using SHOUTcast 2. Don\'t worry, you can still use SAM Broadcaster 2 to connect to the server. Please ensure you paste the password exactly how it is displayed below. If your broadcast software supports it, please select SHOUTcast 2, otherwise you can click SHOUTcast 1.') }}</p>

            <p><strong>{{ _('IMPORTANT:') }}</strong> {{ _('Anybody without their panel username in their broadcast password will be kicked from the radio and will be given a warning. Broadcasting at the wrong bitrate will also result in a warning.') }}</p>
        </div>
    </div>

    <div class="mdl-card mdl-cell mdl-cell--12-col mdl-shadow--2dp">
        <div class="mdl-card__supporting-text">
            <h4>{{ _('Connection Information') }}</h4>
            @if($connection)
                <p>
                    {!! __('IP: %s', "<strong>{$connection->ip}</strong>") !!}<br>
                    {!! __('Port: %s', "<strong>{$connection->port}</strong>") !!}<br>
                    {!! __('Password: %s', '<strong>' . auth()->user()->username . ":{$connection->password}</strong>") !!}<br>
                    {!! __('Bitrate: %s', '<strong>256kbps</strong>') !!}
                </p>
            @else
                <p><strong>{{ _('The connection info is currently unset.') }}</strong></p>
            @endif
        </div>
    </div>
@endsection
diff --git a/resources/views/dj/dj-says.blade.php b/resources/views/dj/dj-says.blade.php
new file mode 100644
index 0000000..fcb7c4b
--- /dev/null
+++ b/resources/views/dj/dj-says.blade.php
@@ -0,0 +1,35 @@
@extends(Request::ajax() ? 'layouts.ajax-main' : 'layouts.main')

@section('title'){{ _('Update DJ Says') }} @endsection

@section('content')
    <div class="mdl-card mdl-cell mdl-cell--12-col mdl-shadow--2dp">
        <div class="mdl-card__supporting-text">
            <h4>{{ _('Update DJ Says') }}</h4>

            <p>{{ _('Here you can update the "DJ Says" displayed on our main site. It can take up to 5 minutes to reflect on the main site. Please ensure that you are the current DJ before updating.') }}</p>

            <p>{!! __('The current DJ says is %s', "<strong>{$current}</strong>") !!}</p>

            <form role="form" method="POST" action="{{ route('dashboard::dj::says.post') }}">
                {{ csrf_field() }}

                <fieldset class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label {{ $errors->has('msg') ? 'is-invalid' : '' }}">
                    <input id="msg" type="text" class="mdl-textfield__input" name="msg" value="{{ old('msg') }}"
                           maxlength="200">
                    <label class="mdl-textfield__label" for="msg">{{ _('DJ Says') }}</label>
                    @if ($errors->has('msg'))
                        <span class="mdl-textfield__error">{{ $errors->first('msg') }}</span>
                    @endif
                </fieldset>

                <fieldset class="form-group">
                    <button type="submit"
                            class="mdl-button mdl-button--raised mdl-button--colored mdl-js-button mdl-js-ripple-effect">
                        <i class="fa fa-btn fa-pencil-square-o"></i> {{ _('Update') }}
                    </button>
                </fieldset>
            </form>
        </div>
    </div>
@endsection
diff --git a/resources/views/dj/requests.blade.php b/resources/views/dj/requests.blade.php
new file mode 100644
index 0000000..bd44586
--- /dev/null
+++ b/resources/views/dj/requests.blade.php
@@ -0,0 +1,41 @@
@extends(Request::ajax() ? 'layouts.ajax-main' : 'layouts.main')

@section('title'){{ _('Requests') }} @endsection

@section('content')
    {!! $requests->links() !!}

    @if($requests->count())
        @foreach($requests as $request)
            <div class="mdl-card mdl-cell mdl-cell--12-col mdl-shadow--2dp">
                <div class="mdl-card__supporting-text">
                    <h4>{{ $request->name }}</h4>
                    <p>{{ $request->request }}</p>
                </div>

                <div class="mdl-card__actions mdl-card--border">
                    <form action="{{ route('dashboard::dj::requests.delete', $request->id) }}" method="post">
                        {{ csrf_field() }}
                        {{ method_field('delete') }}
                        <button class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect" type="submit">
                            <i class="material-icons">check</i> {{ _('Done') }}
                        </button>
                    </form>

                    <div class="mdl-layout-spacer"></div>

                    <strong>{{ $request->created_at->diffForHumans() }} &mdash; {{ $request->ip_address }}</strong>
                </div>
            </div>
        @endforeach
    @else
        <div class="mdl-card mdl-cell mdl-cell--12-col mdl-shadow--2dp">
            <div class="mdl-card__supporting-text">
                <h4>{{ _('All Done!') }}</h4>
                <p>{{ _('There are no requests awaiting your viewing. Maybe try mentioning out the request line on air!') }}</p>
            </div>
        </div>
    @endif

    {!! $requests->links() !!}
@endsection
diff --git a/resources/views/dj/timetable.blade.php b/resources/views/dj/timetable.blade.php
new file mode 100644
index 0000000..73c3138
--- /dev/null
+++ b/resources/views/dj/timetable.blade.php
@@ -0,0 +1,45 @@
@extends(Request::ajax() ? 'layouts.ajax-main' : 'layouts.main')

@section('title'){{ _('Timetable') }} @endsection

@section('content')
    <div class="mdl-card mdl-cell mdl-cell--12-col mdl-shadow--2dp">
        <div class="mdl-card__supporting-text">
            <div class="mdl-tabs mdl-js-tabs mdl-js-ripple-effect" id="timetable">
                <div class="mdl-tabs__tab-bar">
                    @foreach($timetable as $i => $day)
                        <a href="#{{ $day['name'] }}"
                           class="mdl-tabs__tab {{ $i === (int) session('tab', 0) ? 'is-active' : '' }}">{{ $day['name'] }}</a>
                    @endforeach
                </div>

                @foreach($timetable as $id => $day)
                    <div class="mdl-tabs__panel {{ $id === (int) session('tab', 0) ? 'is-active' : '' }} timetable"
                         id="{{ $day['name'] }}">
                        <ul>
                            @for ($i = 0; $i < 24; $i++)
                                <li>
                                    {{ sprintf('%02d', $i) }}:00 -
                                    @if(!isset($day[$i]) || ($day[$i] === auth()->user()->username || auth()->user()->isAdmin()))
                                        <form action="{{ route('dashboard::dj::timetable.book') }}" method="post"
                                              class="a-submit" style="display: inline">
                                            {{ method_field(isset($day[$i]) ? 'delete' : 'put') }}
                                            {{ csrf_field() }}
                                            <input type="hidden" name="day" value="{{ $id }}">
                                            <input type="hidden" name="hour" value="{{ $i }}">
                                            <a href="javascript:void(0)" class="mdl-color-text--primary no-decoration">
                                                {!! isset($day[$i]) ? $day[$i] : _('Unbooked') !!}
                                            </a>
                                        </form>
                                    @else
                                        {!! $day[$i] !!}
                                    @endif
                                </li>
                            @endfor
                        </ul>
                    </div>
                @endforeach
            </div>
        </div>
    </div>
@endsection
diff --git a/resources/views/errors/503.blade.php b/resources/views/errors/503.blade.php
new file mode 100644
index 0000000..16306b9
--- /dev/null
+++ b/resources/views/errors/503.blade.php
@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html>
    <head>
        <title>{{ _('Be right back.') }}</title>

        <link href="https://fonts.googleapis.com/css?family=Lato:100" rel="stylesheet" type="text/css">

        <style>
            html, body {
                height: 100%;
            }

            body {
                margin: 0;
                padding: 0;
                width: 100%;
                color: #B0BEC5;
                display: table;
                font-weight: 100;
                font-family: 'Lato';
            }

            .container {
                text-align: center;
                display: table-cell;
                vertical-align: middle;
            }

            .content {
                text-align: center;
                display: inline-block;
            }

            .title {
                font-size: 72px;
                margin-bottom: 40px;
            }
        </style>
    </head>
    <body>
        <div class="container">
            <div class="content">
                <div class="title">{{ _('Be right back.') }}</div>
            </div>
        </div>
    </body>
</html>
diff --git a/resources/views/events/book-slot.blade.php b/resources/views/events/book-slot.blade.php
new file mode 100644
index 0000000..bfd2413
--- /dev/null
+++ b/resources/views/events/book-slot.blade.php
@@ -0,0 +1,56 @@
@extends(Request::ajax() ? 'layouts.ajax-main' : 'layouts.main')

@section('title'){{ _('Book an Event') }} @endsection

@section('content')
    <div class="mdl-card mdl-cell mdl-cell--12-col mdl-shadow--2dp" style="overflow: visible">
        <div class="mdl-card__supporting-text" style="overflow: visible">
            <h4>{{ _('Book an Event') }}</h4>

            <form role="form" method="POST" action="{{ route('dashboard::event::timetable.save') }}">
                {{ method_field('put') }}
                {{ csrf_field() }}

                <input type="hidden" name="day" value="{{ Request::get('day') }}">
                <input type="hidden" name="hour" value="{{ Request::get('hour') }}">

                <fieldset class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label getmdl-select getmdl-select__fullwidth {{ $errors->has('event_type') ? 'is-invalid' : '' }}">
                    <input class="mdl-textfield__input" name="event_type" type="text" id="event-type" value="{{ old('event_type') }}" required readonly>

                    <label for="event-type">
                        <i class="mdl-icon-toggle__label material-icons">keyboard_arrow_down</i>
                    </label>

                    <label for="event-type" class="mdl-textfield__label">Type</label>

                    <ul for="event-type" class="mdl-menu mdl-menu--bottom-left mdl-js-menu">
                        @foreach(App\Models\EventType::all() as $type)
                            <li class="mdl-menu__item">{{ $type->name }}</li>
                        @endforeach
                    </ul>

                    @if ($errors->has('event_type'))
                        <span class="mdl-textfield__error">{{ $errors->first('event_type') }}</span>
                    @endif
                </fieldset>

                <fieldset class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label {{ $errors->has('room_id') ? 'is-invalid' : '' }}">
                    <input id="room_id" type="number" class="mdl-textfield__input" name="room_id" value="{{ old('room_id') }}"
                           pattern="^[\d]{8,8}$">
                    <label class="mdl-textfield__label" for="room_id">{{ _('Room ID (eg. 29384756)') }}</label>

                    @if ($errors->has('room_id'))
                        <span class="mdl-textfield__error">{{ $errors->first('room_id') }}</span>
                    @endif
                </fieldset>

                <fieldset class="form-group">
                    <button type="submit"
                            class="mdl-button mdl-button--raised mdl-button--colored mdl-js-button mdl-js-ripple-effect">
                        <i class="fa fa-btn fa-floppy-o"></i> {{ _('Save') }}
                    </button>
                </fieldset>
            </form>
        </div>
    </div>
@endsection
diff --git a/resources/views/events/timetable.blade.php b/resources/views/events/timetable.blade.php
new file mode 100644
index 0000000..e61a89e
--- /dev/null
+++ b/resources/views/events/timetable.blade.php
@@ -0,0 +1,49 @@
@extends(Request::ajax() ? 'layouts.ajax-main' : 'layouts.main')

@section('title'){{ _('Events Timetable') }} @endsection

@section('content')
    <div class="mdl-card mdl-cell mdl-cell--12-col mdl-shadow--2dp">
        <div class="mdl-card__supporting-text">
            <div class="mdl-tabs mdl-js-tabs mdl-js-ripple-effect" id="timetable">
                <div class="mdl-tabs__tab-bar">
                    @foreach($timetable as $i => $day)
                        <a href="#{{ $day['name'] }}"
                           class="mdl-tabs__tab {{ $i === (int) session('tab', 0) ? 'is-active' : '' }}">{{ $day['name'] }}</a>
                    @endforeach
                </div>

                @foreach($timetable as $id => $day)
                    <div class="mdl-tabs__panel {{ $id === (int) session('tab', 0) ? 'is-active' : '' }} timetable"
                         id="{{ $day['name'] }}">
                        <ul>
                            @for ($i = 0; $i < 24; $i++)
                                <li>
                                    {{ sprintf('%02d', $i) }}:00 -
                                    @if(!isset($day[$i]))
                                        <a href="{{ route('dashboard::event::timetable.book', ['day' => $id, 'hour' => $i]) }}" class="mdl-color-text--primary no-decoration">
                                            {{ _('Unbooked') }}
                                        </a>
                                    @elseif($day[$i] === auth()->user()->username || auth()->user()->isAdmin())
                                        <form action="{{ route('dashboard::event::timetable.unbook') }}" method="post"
                                              class="a-submit" style="display: inline">
                                            {{ method_field('delete') }}
                                            {{ csrf_field() }}
                                            <input type="hidden" name="day" value="{{ $id }}">
                                            <input type="hidden" name="hour" value="{{ $i }}">
                                            <a href="javascript:void(0)" class="mdl-color-text--primary no-decoration">
                                                {!! $day[$i] !!}
                                            </a>
                                        </form>
                                    @else
                                        {!! $day[$i] !!}
                                    @endif
                                </li>
                            @endfor
                        </ul>
                    </div>
                @endforeach
            </div>
        </div>
    </div>
@endsection
diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php
new file mode 100644
index 0000000..1d19360
--- /dev/null
+++ b/resources/views/home.blade.php
@@ -0,0 +1,13 @@
@extends(Request::ajax() ? 'layouts.ajax-main' : 'layouts.main')

@section('title')Home @endsection

@section('content')
    <div class="mdl-card mdl-cell mdl-cell--12-col mdl-shadow--2dp">
        <div class="mdl-card__supporting-text">
            <h4>{{ _('Dashboard') }}</h4>

            <p>You are logged in.</p>
        </div>
    </div>
@endsection
diff --git a/resources/views/layouts/ajax-main.blade.php b/resources/views/layouts/ajax-main.blade.php
new file mode 100644
index 0000000..5d3e05c
--- /dev/null
+++ b/resources/views/layouts/ajax-main.blade.php
@@ -0,0 +1,2 @@
<title>@yield('title')- zpan</title>
@yield('content')
diff --git a/resources/views/layouts/head.blade.php b/resources/views/layouts/head.blade.php
new file mode 100644
index 0000000..db0a481
--- /dev/null
+++ b/resources/views/layouts/head.blade.php
@@ -0,0 +1,10 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="author" content="Jordan Doyle">

<title>@yield('title')- zpan</title>

<link href="{{ elixir('css/app.css') }}" rel="stylesheet">

<link href="//fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons" rel="stylesheet">
diff --git a/resources/views/layouts/main.blade.php b/resources/views/layouts/main.blade.php
new file mode 100644
index 0000000..b34c3e4
--- /dev/null
+++ b/resources/views/layouts/main.blade.php
@@ -0,0 +1,38 @@
<!DOCTYPE html>
<html lang="en">
<head>
    @include('layouts.head')
</head>

<body id="app-layout" data-root="{{ route('index', [], false) }}">
    <div class="mdl-layout mdl-js-layout mdl-layout--fixed-drawer mdl-layout--fixed-header">
        @include('layouts.nav')

        <main class="mdl-layout__content mdl-color--grey-100">
            <div class="zpan-container">
                <div id="error-container">
                    @include('layouts.message')
                </div>

                <div id="content">
                    @yield('content')
                </div>
            </div>
        </main>
    </div>

    <div id="toast" class="mdl-js-snackbar mdl-snackbar">
        <div class="mdl-snackbar__text"></div>
        <button class="mdl-snackbar__action" type="button"></button>
    </div>

    <script>
        var PUSHER_APP_KEY = "{{ env('PUSHER_KEY') }}";
        var PUSHER_CLUSTER = "{{ env('PUSHER_CLUSTER') }}";
        var PUSHER_ENDPOINT = "{{ route('auth::pusher') }}";
        var CSRF_TOKEN = "{{ csrf_token() }}";
        var IS_DJ = {{ auth()->user()->is(App\Models\Group::RADIO_DJ, App\Models\Group::GUEST_DJ) ? 'true' : 'false' }};
    </script>
    <script src="{{ elixir('js/main.js') }}"></script>
</body>
</html>
diff --git a/resources/views/layouts/message.blade.php b/resources/views/layouts/message.blade.php
new file mode 100644
index 0000000..d44887a
--- /dev/null
+++ b/resources/views/layouts/message.blade.php
@@ -0,0 +1,5 @@
@if(session('msg'))
    <div class="alert alert-{{ session('msg')['type'] }}" role="alert">
        {!! session('msg')['msg'] !!}
    </div>
@endif
diff --git a/resources/views/layouts/nav.blade.php b/resources/views/layouts/nav.blade.php
new file mode 100644
index 0000000..5fa30c1
--- /dev/null
+++ b/resources/views/layouts/nav.blade.php
@@ -0,0 +1,89 @@
<header class="mdl-layout__header">
    <div class="mdl-layout__header-row">
        <span class="mdl-layout__title">ZPAN</span>

        <div class="mdl-layout-spacer"></div>

        <nav class="mdl-navigation">
            <span id="username">{{ auth()->user()->getDisplayName() }}</span>
            <button id="user-menu-lower-right"
                    class="mdl-button mdl-js-button mdl-button--icon">
                <i class="material-icons">more_vert</i>
            </button>

            <div class="mdl-menu mdl-menu--bottom-right mdl-js-menu mdl-js-ripple-effect"
                for="user-menu-lower-right">
                <a class="mdl-menu__item" href="{{ route('auth::logout') }}">Logout</a>
            </div>
        </nav>
    </div>
</header>

<div class="mdl-layout__drawer">
    <nav class="mdl-navigation">
        <a class="mdl-navigation__link {{ is_route('dashboard::home') ? 'is-active' : '' }}"
           href="/">
            <i class="material-icons">home</i> {{ _('Home') }}
        </a>

        @if(auth()->user()->is(App\Models\Group::RADIO_DJ, App\Models\Group::GUEST_DJ))
            <div class="zpan-drawer-separator"></div>

            <span class="mdl-navigation__link" href>DJ</span>

            <a class="mdl-navigation__link {{ is_route('dashboard::dj::says') ? 'is-active' : '' }}"
               href="{{ route('dashboard::dj::says') }}">
                <i class="material-icons">mic</i> DJ Says
            </a>

            <a class="mdl-navigation__link {{ is_route('dashboard::dj::connection-info') ? 'is-active' : '' }}"
               href="{{ route('dashboard::dj::connection-info') }}">
                <i class="material-icons">power</i> Connection Info
            </a>

            <a class="mdl-navigation__link {{ is_route('dashboard::dj::timetable') ? 'is-active' : '' }}"
               href="{{ route('dashboard::dj::timetable') }}">
                <i class="material-icons">event</i> Timetable
            </a>

            <a class="mdl-navigation__link {{ is_route('dashboard::dj::requests') ? 'is-active' : '' }}"
               href="{{ route('dashboard::dj::requests') }}">
                <i class="material-icons">announcement</i> Request Line
            </a>
        @endif

        @if(auth()->user()->is(App\Models\Group::EVENT))
            <div class="zpan-drawer-separator"></div>

            <span class="mdl-navigation__link" href>Events
            </span>

            <a class="mdl-navigation__link {{ is_route('dashboard::event::timetable') ? 'is-active' : '' }}"
               href="{{ route('dashboard::event::timetable') }}">
                <i class="material-icons">event</i> Timetable
            </a>
        @endif

        @if(auth()->user()->isManagement())
            <div class="zpan-drawer-separator"></div>

            <span class="mdl-navigation__link" href>Management</span>

            <a class="mdl-navigation__link {{ is_route('dashboard::management::events::timetable') ? 'is-active' : '' }}"
               href="{{ route('dashboard::management::events::timetable') }}">
                <i class="material-icons">event_available</i> Events Timetable
            </a>
        @endif

        @if(auth()->user()->isAdmin())
            <div class="zpan-drawer-separator"></div>

            <span class="mdl-navigation__link" href>Administrator</span>

            <a class="mdl-navigation__link {{ is_route('dashboard::admin::connection-info') ? 'is-active' : '' }}"
               href="{{ route('dashboard::admin::connection-info') }}">
                <i class="material-icons">power</i> Update Connection
            </a>
        @endif
    </nav>
</div>
diff --git a/resources/views/management/events-timetable.blade.php b/resources/views/management/events-timetable.blade.php
new file mode 100644
index 0000000..2fc5086
--- /dev/null
+++ b/resources/views/management/events-timetable.blade.php
@@ -0,0 +1,50 @@
@extends(Request::ajax() ? 'layouts.ajax-main' : 'layouts.main')

@section('title'){{ _('Approve Events') }} @endsection

@section('content')
    @if($unapproved->count())
        @foreach($unapproved as $event)
            <div class="mdl-card mdl-cell mdl-cell--12-col mdl-shadow--2dp">
                <div class="mdl-card__supporting-text">
                    <h4>{{ $event->user()->first()->getDisplayName() }}</h4>
                    <p>
                         {{ $event->user()->first()->getDisplayName() }} would like to book event <strong>{{ $event->type->name }}</strong> on <strong>{{ ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'][$event->day] }}</strong> at <strong>{{ sprintf('%02d:00', $event->hour) }}</strong> in room <a href="https://www.habbo.com/room/{{ $event->room_id }}" class="no-decoration">{{ $event->room_id }}</a>.
                    </p>
                    <p>
                        There are {{ App\Models\Event::where('week', $event->week)->where('year', $event->year)->where('day', $event->day)->where('hour', $event->hour)->where('id', '<>', $event->id)->count() }} other people who would like this slot.
                    </p>
                </div>

                <div class="mdl-card__actions mdl-card--border">
                    <form action="{{ route('dashboard::management::events::approve', $event->id) }}" method="post">
                        {{ csrf_field() }}
                        {{ method_field('put') }}
                        <button class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect" type="submit">
                            <i class="material-icons">check</i> {{ _('Approve') }}
                        </button>
                    </form>

                    <form action="{{ route('dashboard::management::events::deny', $event->id) }}" method="post">
                        {{ csrf_field() }}
                        {{ method_field('delete') }}
                        <button class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect" type="submit">
                            <i class="material-icons">close</i> {{ _('Deny') }}
                        </button>
                    </form>

                    <div class="mdl-layout-spacer"></div>

                    <strong>{{ $event->created_at->diffForHumans() }}</strong>
                </div>
            </div>
        @endforeach
    @else
        <div class="mdl-card mdl-cell mdl-cell--12-col mdl-shadow--2dp">
            <div class="mdl-card__supporting-text">
                <h4>{{ _('All Done!') }}</h4>
                <p>{{ _('There are no events awaiting your viewing.') }}</p>
            </div>
        </div>
    @endif
@endsection
diff --git a/resources/views/vendor/.gitkeep b/resources/views/vendor/.gitkeep
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/resources/views/vendor/.gitkeep
@@ -0,0 +1 @@

diff --git a/server.php b/server.php
new file mode 100644
index 0000000..f65c7c4
--- /dev/null
+++ b/server.php
@@ -0,0 +1,21 @@
<?php

/**
 * Laravel - A PHP Framework For Web Artisans
 *
 * @package  Laravel
 * @author   Taylor Otwell <taylorotwell@gmail.com>
 */

$uri = urldecode(
    parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
);

// This file allows us to emulate Apache's "mod_rewrite" functionality from the
// built-in PHP web server. This provides a convenient way to test a Laravel
// application without having installed a "real" web server software here.
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
    return false;
}

require_once __DIR__.'/public/index.php';
diff --git a/tests/ExampleTest.php b/tests/ExampleTest.php
new file mode 100644
index 0000000..7e81d37
--- /dev/null
+++ b/tests/ExampleTest.php
@@ -0,0 +1,19 @@
<?php

use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;

class ExampleTest extends TestCase
{
    /**
     * A basic functional test example.
     *
     * @return void
     */
    public function testBasicExample()
    {
        $this->visit('/')
             ->see('Laravel 5');
    }
}
diff --git a/tests/TestCase.php b/tests/TestCase.php
new file mode 100644
index 0000000..8208edc
--- /dev/null
+++ b/tests/TestCase.php
@@ -0,0 +1,25 @@
<?php

abstract class TestCase extends Illuminate\Foundation\Testing\TestCase
{
    /**
     * The base URL to use while testing the application.
     *
     * @var string
     */
    protected $baseUrl = 'http://localhost';

    /**
     * Creates the application.
     *
     * @return \Illuminate\Foundation\Application
     */
    public function createApplication()
    {
        $app = require __DIR__.'/../bootstrap/app.php';

        $app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();

        return $app;
    }
}