FEATURE #1550: add basic sitemap

Probably will not work, because Laravel prepends first line of document with some spaces or what. However maybe its just behavior on my localhost.
This commit is contained in:
Michal Kváček
2016-04-07 22:18:11 +02:00
parent 5bc077989f
commit 18ead80b5f
6 changed files with 143 additions and 44 deletions
+17 -15
View File
@@ -13,7 +13,7 @@ return [
|
*/
'env' => env('APP_ENV', 'production'),
'env' => env('APP_ENV', 'production'),
/*
|--------------------------------------------------------------------------
| Application Debug Mode
@@ -25,7 +25,7 @@ return [
|
*/
'debug' => env('APP_DEBUG', false),
'debug' => env('APP_DEBUG', false),
/*
|--------------------------------------------------------------------------
| Application URL
@@ -37,7 +37,7 @@ return [
|
*/
'url' => env('SITE_URL', 'http://localhost'),
'url' => env('SITE_URL', 'http://localhost'),
/*
|--------------------------------------------------------------------------
| Application Timezone
@@ -49,7 +49,7 @@ return [
|
*/
'timezone' => env('TIMEZONE', 'UTC'),
'timezone' => env('TIMEZONE', 'UTC'),
/*
|--------------------------------------------------------------------------
| Application Locale Configuration
@@ -61,7 +61,7 @@ return [
|
*/
'locale' => env('LOCALES', 'en'),
'locale' => env('LOCALES', 'en'),
/*
|--------------------------------------------------------------------------
| Application Fallback Locale
@@ -85,19 +85,19 @@ return [
|
*/
'key' => env('APP_KEY'),
'cipher' => 'AES-256-CBC',
'key' => env('APP_KEY'),
'cipher' => 'AES-256-CBC',
/*
* Upload path used for storing all uploaded files
*/
'upload_path' => env('UPLOAD_PATH', public_path('uploads')),
'thumbnail_path' => env('THUMBNAIL_PATH', public_path('uploads/thumbnails')),
'upload_path' => env('UPLOAD_PATH', public_path('uploads')),
'thumbnail_path' => env('THUMBNAIL_PATH', public_path('uploads/thumbnails')),
/*
* Artisan cannot access to website URL, therefore we need to use PHP_SAPI const for determining running from CLI.
*/
'upload_url' => env('UPLOAD_URL', PHP_SAPI === 'cli' ? '' : url('uploads')),
'thumbnail_url' => env('THUMBNAIL_URL', PHP_SAPI === 'cli' ? '' : url('uploads/thumbnails')),
'theme' => env('THEME'),
'upload_url' => env('UPLOAD_URL', PHP_SAPI === 'cli' ? '' : url('uploads')),
'thumbnail_url' => env('THUMBNAIL_URL', PHP_SAPI === 'cli' ? '' : url('uploads/thumbnails')),
'theme' => env('THEME'),
/*
|--------------------------------------------------------------------------
| Logging Configuration
@@ -111,7 +111,7 @@ return [
|
*/
'log' => env('APP_LOG', 'single'),
'log' => env('APP_LOG', 'single'),
/*
|--------------------------------------------------------------------------
| Autoloaded Service Providers
@@ -123,7 +123,7 @@ return [
|
*/
'providers' => [
'providers' => [
/*
* Laravel Framework Service Providers...
@@ -153,6 +153,7 @@ return [
App\Providers\ModuleManager::class,
Pingpong\Modules\ModulesServiceProvider::class,
Pingpong\Menus\MenusServiceProvider::class,
\Watson\Sitemap\SitemapServiceProvider::class,
/*
* Application Service Providers...
*/
@@ -174,7 +175,7 @@ return [
|
*/
'aliases' => [
'aliases' => [
'App' => Illuminate\Support\Facades\App::class,
'Artisan' => Illuminate\Support\Facades\Artisan::class,
@@ -204,6 +205,7 @@ return [
'Route' => Illuminate\Support\Facades\Route::class,
'Schema' => Illuminate\Support\Facades\Schema::class,
'Session' => Illuminate\Support\Facades\Session::class,
'Sitemap' => Watson\Sitemap\Facades\Sitemap::class,
'Storage' => Illuminate\Support\Facades\Storage::class,
'URL' => Illuminate\Support\Facades\URL::class,
'Validator' => Illuminate\Support\Facades\Validator::class,