Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 78bce47
Showing
1,254 changed files
with
450,335 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
APP_ENV=local | ||
APP_DEBUG=true | ||
APP_KEY=SomeRandomKey!!! | ||
|
||
APP_LOCALE=en | ||
APP_FALLBACK_LOCALE=en | ||
|
||
DB_CONNECTION=mysql | ||
DB_HOST=localhost | ||
DB_DATABASE=homestead | ||
DB_USERNAME=homestead | ||
DB_PASSWORD=secret | ||
|
||
WP_AUTH_KEY =put your unique phrase here | ||
WP_SECURE_AUTH_KEY =put your unique phrase here | ||
WP_LOGGED_IN_KEY =put your unique phrase here | ||
WP_NONCE_KEY =put your unique phrase here | ||
WP_AUTH_SALT =put your unique phrase here | ||
WP_SECURE_AUTH_SALT =put your unique phrase here | ||
WP_LOGGED_IN_SALT =put your unique phrase here | ||
WP_NONCE_SALT =put your unique phrase here | ||
|
||
WP_TABLE_PREFIX=wp_ | ||
|
||
CACHE_DRIVER=memcached | ||
SESSION_DRIVER=memcached | ||
QUEUE_DRIVER=database | ||
|
||
# MAIL_DRIVER=smtp | ||
# MAIL_HOST=mailtrap.io | ||
# MAIL_PORT=2525 | ||
# MAIL_USERNAME=null | ||
# MAIL_PASSWORD=null | ||
# MAIL_FROM_ADDRESS=null | ||
# MAIL_FROM_NAME=null | ||
|
||
# FILESYSTEM_DRIVER=local | ||
# FILESYSTEM_CLOUD=s3 | ||
|
||
# S3_KEY=null | ||
# S3_SECRET=null | ||
# S3_REGION=null | ||
# S3_BUCKET=null | ||
|
||
# RACKSPACE_USERNAME=null | ||
# RACKSPACE_KEY=null | ||
# RACKSPACE_CONTAINER=null | ||
# RACKSPACE_REGION=null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/lumen.log | ||
/vendor | ||
.env |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php namespace App\Console; | ||
|
||
use Illuminate\Console\Scheduling\Schedule; | ||
use Laravel\Lumen\Console\Kernel as ConsoleKernel; | ||
|
||
class Kernel extends ConsoleKernel | ||
{ | ||
|
||
/** | ||
* The Artisan commands provided by your application. | ||
* | ||
* @var array | ||
*/ | ||
protected $commands = [ | ||
// | ||
]; | ||
|
||
/** | ||
* Define the application's command schedule. | ||
* | ||
* @param \Illuminate\Console\Scheduling\Schedule $schedule | ||
* @return void | ||
*/ | ||
protected function schedule(Schedule $schedule) | ||
{ | ||
// | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php namespace App\Exceptions; | ||
|
||
use Exception; | ||
use Laravel\Lumen\Exceptions\Handler as ExceptionHandler; | ||
|
||
class Handler extends ExceptionHandler { | ||
|
||
/** | ||
* A list of the exception types that should not be reported. | ||
* | ||
* @var array | ||
*/ | ||
protected $dontReport = [ | ||
'Symfony\Component\HttpKernel\Exception\HttpException' | ||
]; | ||
|
||
/** | ||
* 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) | ||
{ | ||
return 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); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php namespace App\Http\Controllers; | ||
|
||
use Laravel\Lumen\Routing\Controller as BaseController; | ||
|
||
class Controller extends BaseController | ||
{ | ||
// | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php namespace App\Http\Middleware; | ||
|
||
use Closure; | ||
|
||
class ExampleMiddleware { | ||
|
||
/** | ||
* Handle an incoming request. | ||
* | ||
* @param \Illuminate\Http\Request $request | ||
* @param \Closure $next | ||
* @return mixed | ||
*/ | ||
public function handle($request, Closure $next) | ||
{ | ||
return $next($request); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?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. | ||
| | ||
*/ | ||
|
||
$app->get('/', function() use ($app) { | ||
return $app->welcome(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php namespace App\Jobs; | ||
|
||
use Illuminate\Queue\SerializesModels; | ||
use Illuminate\Queue\InteractsWithQueue; | ||
use Illuminate\Contracts\Bus\SelfHandling; | ||
use Illuminate\Contracts\Queue\ShouldBeQueued; | ||
|
||
abstract class Job implements SelfHandling, ShouldBeQueued | ||
{ | ||
use InteractsWithQueue, SerializesModels; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php namespace App\Providers; | ||
|
||
use Illuminate\Support\ServiceProvider; | ||
|
||
class AppServiceProvider extends ServiceProvider | ||
{ | ||
|
||
/** | ||
* Register any application services. | ||
* | ||
* @return void | ||
*/ | ||
public function register() | ||
{ | ||
// | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
use Symfony\Component\Console\Input\ArgvInput; | ||
use Symfony\Component\Console\Output\ConsoleOutput; | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Create The Application | ||
|-------------------------------------------------------------------------- | ||
| | ||
| First we need to get an application instance. This creates an instance | ||
| of the application / container and bootstraps the application so it | ||
| is ready to receive HTTP / Console requests from the environment. | ||
| | ||
*/ | ||
|
||
$app = require __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' | ||
); | ||
|
||
exit($kernel->handle(new ArgvInput, new ConsoleOutput)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
<?php | ||
|
||
require_once __DIR__.'/../vendor/autoload.php'; | ||
|
||
// Dotenv::load(__DIR__.'/../'); | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Create The Application | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Here we will load the environment and create the application instance | ||
| that serves as the central piece of this framework. We'll use this | ||
| application as an "IoC" container and router for this framework. | ||
| | ||
*/ | ||
|
||
$app = new Laravel\Lumen\Application( | ||
realpath(__DIR__.'/../') | ||
); | ||
|
||
// $app->withFacades(); | ||
|
||
// $app->withEloquent(); | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Register Container Bindings | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Now we will register a few bindings in the service container. We will | ||
| register the exception handler and the console kernel. You may add | ||
| your own bindings here if you like or you can make another file. | ||
| | ||
*/ | ||
|
||
$app->singleton( | ||
'Illuminate\Contracts\Debug\ExceptionHandler', | ||
'App\Exceptions\Handler' | ||
); | ||
|
||
$app->singleton( | ||
'Illuminate\Contracts\Console\Kernel', | ||
'App\Console\Kernel' | ||
); | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Register Middleware | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Next, we will register the middleware with the application. These can | ||
| be global middleware that run before and after each request into a | ||
| route or middleware that'll be assigned to some specific routes. | ||
| | ||
*/ | ||
|
||
// $app->middleware([ | ||
// // 'Illuminate\Cookie\Middleware\EncryptCookies', | ||
// // 'Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse', | ||
// // 'Illuminate\Session\Middleware\StartSession', | ||
// // 'Illuminate\View\Middleware\ShareErrorsFromSession', | ||
// // 'Laravel\Lumen\Http\Middleware\VerifyCsrfToken', | ||
// ]); | ||
|
||
// $app->routeMiddleware([ | ||
|
||
// ]); | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Register Service Providers | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Here we will register all of the application's service providers which | ||
| are used to bind services into the container. Service providers are | ||
| totally optional, so you are not required to uncomment this line. | ||
| | ||
*/ | ||
|
||
// $app->register('App\Providers\AppServiceProvider'); | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Load The Application Routes | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Next we will include the routes file so that they can all be added to | ||
| the application. This will provide all of the URLs the application | ||
| can respond to, as well as the controllers that may handle them. | ||
| | ||
*/ | ||
|
||
require __DIR__.'/../app/Http/routes.php'; | ||
|
||
return $app; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"name": "laravel/lumen", | ||
"description": "The Laravel Lumen Framework.", | ||
"keywords": ["framework", "laravel", "lumen"], | ||
"license": "MIT", | ||
"type": "project", | ||
"require": { | ||
"laravel/lumen-framework": "5.0.*", | ||
"vlucas/phpdotenv": "~1.0" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "~4.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"App\\": "app/" | ||
}, | ||
"classmap": [ | ||
"database/" | ||
] | ||
}, | ||
"autoload-dev": { | ||
"classmap": [ | ||
"tests/" | ||
] | ||
}, | ||
"config": { | ||
"preferred-install": "dist" | ||
} | ||
} |
Oops, something went wrong.