Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
Update to Laravel 5.2
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Menezes <[email protected]>
  • Loading branch information
tylermenezes committed Jan 20, 2016
1 parent 37608b1 commit b64e66d
Show file tree
Hide file tree
Showing 107 changed files with 5,739 additions and 3,910 deletions.
23 changes: 23 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
APP_ENV=local
APP_DEBUG=true
APP_KEY=SomeRandomString

DB_HOST=localhost
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret

CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync

REDIS_HOST=localhost
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* text=auto
*.css linguist-vendored
*.less linguist-vendored
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
vendor/*
/vendor
/node_modules
Homestead.yaml
Homestead.json
.env
166 changes: 0 additions & 166 deletions LICENSE.txt

This file was deleted.

Empty file removed README.markdown
Empty file.
33 changes: 33 additions & 0 deletions app/Console/Commands/Inspire.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php

namespace CodeDay\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);
}
}
30 changes: 30 additions & 0 deletions app/Console/Kernel.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

namespace CodeDay\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();
}
}
8 changes: 8 additions & 0 deletions app/Events/Event.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace CodeDay\Events;

abstract class Event
{
//
}
50 changes: 50 additions & 0 deletions app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?php

namespace CodeDay\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);
}
}
13 changes: 13 additions & 0 deletions app/Http/Controllers/Controller.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

namespace CodeDay\Http\Controllers;

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

class Controller extends BaseController
{
use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
namespace CodeDay\Controllers;
namespace CodeDay\Http\Controllers;

use \CodeDay\Models;

class EventController extends \Controller {
class EventController extends Controller {
public function __construct()
{
$visitor_info = Models\Ip::find(\Request::getClientIp());
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
namespace CodeDay\Controllers;
namespace CodeDay\Http\Controllers;

use \CodeDay\Models;

class PhoneController extends \Controller {
class PhoneController extends Controller {
private function getEventsByTimezone()
{
$current_regions = iterator_to_array(Models\Region::nearby(0, 0, null, null, true));
Expand All @@ -23,7 +23,7 @@ public function getIndex()
$xml .= '<Pause length="4" />';
$xml .= '<Play>/assets/mp3/phonetimezones.mp3</Play>';
$xml .= '</Gather>';
$xml .= '</Response>';
$xml .= '</Response>';

$response = \Response::make($xml, 200);
$response->header('Content-type', 'text/xml');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace CodeDay\Controllers;
namespace CodeDay\Http\Controllers;

class SplunkController extends \Controller {
class SplunkController extends Controller {
public function getIndex()
{
$username = \Session::get('splunk.username');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
namespace CodeDay\Controllers;
namespace CodeDay\Http\Controllers;

use \CodeDay\Models;

class StaticController extends \Controller {
class StaticController extends Controller {
public function getGlobal()
{
$visitor_info = Models\Ip::find(\Request::getClientIp());
Expand Down
Loading

0 comments on commit b64e66d

Please sign in to comment.