Skip to content

Commit

Permalink
Master synchronization
Browse files Browse the repository at this point in the history
  • Loading branch information
bestmomo committed Dec 17, 2014
1 parent 7e6bcd1 commit 538a2f8
Show file tree
Hide file tree
Showing 29 changed files with 112 additions and 110 deletions.
10 changes: 8 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
APP_ENV=local
APP_DEBUG=true
APP_KEY=SomeRandomString
DB_USERNAME=homestead
DB_PASSWORD=homestead

DB_HOST=localhost
DB_DATABASE=laravel_base
DB_USERNAME=root
DB_PASSWORD=

CACHE_DRIVER=file
SESSION_DRIVER=file
11 changes: 8 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,22 @@
"illuminate/html": "~5.0"
},
"require-dev": {
"phpunit/phpunit": "~4.0"
"phpunit/phpunit": "~4.0",
"phpspec/phpspec": "~2.1"
},
"autoload": {
"classmap": [
"resources/database",
"tests/TestCase.php"
"database"
],
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"classmap": [
"tests/TestCase.php"
]
},
"scripts": {
"post-install-cmd": [
"php artisan clear-compiled",
Expand Down
8 changes: 4 additions & 4 deletions resources/config/app.php → config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
|
*/

'debug' => (bool) getenv('APP_DEBUG') ?: false,
'debug' => env('APP_DEBUG'),

/*
|--------------------------------------------------------------------------
Expand Down Expand Up @@ -78,7 +78,7 @@
|
*/

'key' => 'YourSecretKey!!!',
'key' => env('APP_KEY') ?: 'YourSecretKey!!!',

'cipher' => MCRYPT_RIJNDAEL_128,

Expand Down Expand Up @@ -200,8 +200,8 @@
'Validator' => 'Illuminate\Support\Facades\Validator',
'View' => 'Illuminate\Support\Facades\View',

'HTML' => 'Illuminate\Html\HtmlFacade',
'Form' => 'Illuminate\Html\FormFacade',
'HTML' => 'Illuminate\Html\HtmlFacade',
'Form' => 'Illuminate\Html\FormFacade',

],

Expand Down
File renamed without changes.
77 changes: 77 additions & 0 deletions config/cache.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?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' => '127.0.0.1', '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' => 'laravel',

];
File renamed without changes.
24 changes: 12 additions & 12 deletions resources/config/database.php → config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,32 +54,32 @@

'mysql' => [
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'laravel_base',
'username' => 'root',
'password' => '',
'host' => env('DB_HOST') ?: 'localhost',
'database' => env('DB_DATABASE') ?: 'laravel_base',
'username' => env('DB_USERNAME') ?: 'root',
'password' => env('DB_PASSWORD') ?: '',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
],

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

'sqlsrv' => [
'driver' => 'sqlsrv',
'host' => 'localhost',
'database' => 'database',
'username' => 'root',
'password' => '',
'host' => env('DB_HOST') ?: 'localhost',
'database' => env('DB_DATABASE') ?: 'forge',
'username' => env('DB_USERNAME') ?: 'forge',
'password' => env('DB_PASSWORD') ?: '',
'prefix' => '',
],

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion resources/config/queue.php → config/queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
|
*/

'default' => getenv('QUEUE_DRIVER') ?: 'sync',
'default' => env('QUEUE_DRIVER') ?: 'sync',

/*
|--------------------------------------------------------------------------
Expand Down Expand Up @@ -61,6 +61,7 @@
'redis' => [
'driver' => 'redis',
'queue' => 'default',
'expire' => 60,
],

],
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion resources/config/session.php → config/session.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
|
*/

'driver' => getenv('SESSION_DRIVER') ?: 'file',
'driver' => env('SESSION_DRIVER') ?: 'file',

/*
|--------------------------------------------------------------------------
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
87 changes: 0 additions & 87 deletions resources/config/cache.php

This file was deleted.

0 comments on commit 538a2f8

Please sign in to comment.