├── public
├── favicon.ico
├── img
│ └── .gitignore
├── packages
│ └── .gitignore
├── robots.txt
├── .htaccess
└── index.php
├── app
├── commands
│ └── .gitkeep
├── config
│ ├── packages
│ │ ├── .gitkeep
│ │ └── wardrobe
│ │ │ └── core
│ │ │ ├── .gitkeep
│ │ │ ├── routes.php
│ │ │ ├── database.php
│ │ │ └── wardrobe.php
│ ├── compile.php
│ ├── testing
│ │ ├── cache.php
│ │ └── session.php
│ ├── workbench.php
│ ├── view.php
│ ├── remote.php
│ ├── auth.php
│ ├── queue.php
│ ├── cache.php
│ ├── database.php
│ ├── mail.php
│ ├── session.php
│ └── app.php
├── controllers
│ ├── .gitkeep
│ ├── BaseController.php
│ ├── HomeController.php
│ └── InstallController.php
├── database
│ ├── seeds
│ │ ├── .gitkeep
│ │ └── DatabaseSeeder.php
│ ├── migrations
│ │ └── .gitkeep
│ └── production.sqlite
├── start
│ ├── local.php
│ ├── artisan.php
│ └── global.php
├── storage
│ ├── .gitignore
│ ├── cache
│ │ └── .gitignore
│ ├── logs
│ │ └── .gitignore
│ ├── meta
│ │ └── .gitignore
│ ├── sessions
│ │ └── .gitignore
│ └── views
│ │ └── .gitignore
├── views
│ ├── emails
│ │ └── auth
│ │ │ └── reminder.blade.php
│ ├── admin
│ │ └── installer
│ │ │ ├── complete.blade.php
│ │ │ ├── step1.blade.php
│ │ │ ├── config.blade.php
│ │ │ └── user.blade.php
│ └── hello.php
├── tests
│ ├── ExampleTest.php
│ └── TestCase.php
├── lang
│ └── en
│ │ ├── pagination.php
│ │ ├── reminders.php
│ │ └── validation.php
├── models
│ └── User.php
├── routes.php
└── filters.php
├── .gitattributes
├── todos
├── installer.TODO
├── commands.TODO
├── testing.TODO
└── features.TODO
├── .gitignore
├── CONTRIBUTING.md
├── server.php
├── phpunit.xml
├── LICENSE
├── composer.json
├── readme.md
├── bootstrap
├── paths.php
├── start.php
└── autoload.php
└── artisan
/public/favicon.ico:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/app/commands/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/public/img/.gitignore:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | * text=auto
--------------------------------------------------------------------------------
/app/config/packages/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/app/controllers/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/app/database/seeds/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/app/database/migrations/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/app/database/production.sqlite:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/app/start/local.php:
--------------------------------------------------------------------------------
1 |
2 | Options -MultiViews
3 | RewriteEngine On
4 |
5 | RewriteCond %{REQUEST_FILENAME} !-d
6 | RewriteCond %{REQUEST_FILENAME} !-f
7 | RewriteRule ^ index.php [L]
8 |
--------------------------------------------------------------------------------
/app/database/seeds/DatabaseSeeder.php:
--------------------------------------------------------------------------------
1 | call('UserTableSeeder');
15 | }
16 |
17 | }
--------------------------------------------------------------------------------
/app/views/emails/auth/reminder.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Password Reset
8 |
9 |
10 | To reset your password, complete this form: {{ URL::to('password/reset', array($token)) }}.
11 |
12 |
13 |
--------------------------------------------------------------------------------
/app/tests/ExampleTest.php:
--------------------------------------------------------------------------------
1 | client->request('GET', '/');
13 |
14 | $this->assertTrue($this->client->getResponse()->isOk());
15 | }
16 |
17 | }
--------------------------------------------------------------------------------
/app/views/admin/installer/complete.blade.php:
--------------------------------------------------------------------------------
1 | @extends('core::admin.layout')
2 |
3 | @section('title')
4 | Installer | Complete
5 | @stop
6 |
7 | @section('content')
8 |
13 | @stop
14 |
--------------------------------------------------------------------------------
/app/controllers/BaseController.php:
--------------------------------------------------------------------------------
1 | layout))
15 | {
16 | $this->layout = View::make($this->layout);
17 | }
18 | }
19 |
20 | }
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Contribution Guidelines
2 |
3 | Wardrobe/Wardrobe is a skeleton default setup for WardrobeCMS.
4 | This repository is minimal.
5 |
6 | Please submit all issues and pull requests to the [wardrobecms/core](http://github.com/wardrobecms/core) repository!
7 |
8 | * If your issue deals directly with wardrobe/wardrobe and its compatibility with the latest stable version of wardrobe/core, post your issues here.
9 |
--------------------------------------------------------------------------------
/app/config/packages/wardrobe/core/routes.php:
--------------------------------------------------------------------------------
1 | array(
5 | // 'prefix' => 'blog',
6 | // 'domain' => 'blog.site.com'
7 | ),
8 |
9 | 'admin_group_rules' => array(
10 | 'prefix' => 'wardrobe',
11 | // 'domain' => 'blog.site.com'
12 | ),
13 |
14 | 'api_group_rules' => array(
15 | 'prefix' => 'api',
16 | // 'domain' => 'blog.site.com'
17 | ),
18 | );
19 |
--------------------------------------------------------------------------------
/app/tests/TestCase.php:
--------------------------------------------------------------------------------
1 | '« Previous',
17 |
18 | 'next' => 'Next »',
19 |
20 | );
--------------------------------------------------------------------------------
/app/config/testing/cache.php:
--------------------------------------------------------------------------------
1 | 'array',
19 |
20 | );
--------------------------------------------------------------------------------
/phpunit.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
15 | ./app/tests/
16 |
17 |
18 |
--------------------------------------------------------------------------------
/app/config/testing/session.php:
--------------------------------------------------------------------------------
1 | 'array',
20 |
21 | );
--------------------------------------------------------------------------------
/app/controllers/HomeController.php:
--------------------------------------------------------------------------------
1 | "Passwords must be at least six characters and match the confirmation.",
17 |
18 | "user" => "We can't find a user with that e-mail address.",
19 |
20 | "token" => "This password reset token is invalid.",
21 |
22 | "sent" => "Password reminder sent!",
23 |
24 | );
--------------------------------------------------------------------------------
/app/views/admin/installer/step1.blade.php:
--------------------------------------------------------------------------------
1 | @extends('core::admin.layout')
2 |
3 | @section('title')
4 | Installer | Step 1
5 | @stop
6 |
7 | @section('content')
8 |
9 |
Wardrobe Install
10 | @if (Session::has('install_errors'))
11 |
12 | Error!
13 | @foreach ($errors->all() as $error)
14 |
{{ $error }}
15 | @endforeach
16 |
17 | @endif
18 |
24 |
25 | @stop
26 |
--------------------------------------------------------------------------------
/app/config/workbench.php:
--------------------------------------------------------------------------------
1 | '',
17 |
18 | /*
19 | |--------------------------------------------------------------------------
20 | | Workbench Author E-Mail Address
21 | |--------------------------------------------------------------------------
22 | |
23 | | Like the option above, your e-mail address is used when generating new
24 | | workbench packages. The e-mail is placed in your composer.json file
25 | | automatically after the package is created by the workbench tool.
26 | |
27 | */
28 |
29 | 'email' => '',
30 |
31 | );
--------------------------------------------------------------------------------
/app/config/view.php:
--------------------------------------------------------------------------------
1 | array(__DIR__.'/../views'),
17 |
18 | /*
19 | |--------------------------------------------------------------------------
20 | | Pagination View
21 | |--------------------------------------------------------------------------
22 | |
23 | | This view will be used to render the pagination link output, and can
24 | | be easily customized here to show any view you like. A clean view
25 | | compatible with Twitter's Bootstrap is given to you by default.
26 | |
27 | */
28 |
29 | 'pagination' => 'pagination::slider',
30 |
31 | );
32 |
--------------------------------------------------------------------------------
/app/models/User.php:
--------------------------------------------------------------------------------
1 | getKey();
30 | }
31 |
32 | /**
33 | * Get the password for the user.
34 | *
35 | * @return string
36 | */
37 | public function getAuthPassword()
38 | {
39 | return $this->password;
40 | }
41 |
42 | /**
43 | * Get the e-mail address where password reminders are sent.
44 | *
45 | * @return string
46 | */
47 | public function getReminderEmail()
48 | {
49 | return $this->email;
50 | }
51 |
52 | }
--------------------------------------------------------------------------------
/app/config/packages/wardrobe/core/database.php:
--------------------------------------------------------------------------------
1 | 'default',
5 |
6 | 'connections' => array(
7 |
8 | 'sqlite' => array(
9 | 'driver' => 'sqlite',
10 | 'database' => app_path().'/database/wardrobe.sqlite',
11 | 'prefix' => '',
12 | ),
13 |
14 | 'mysql' => array(
15 | 'driver' => 'mysql',
16 | 'host' => 'localhost',
17 | 'database' => 'wardrobe',
18 | 'username' => 'root',
19 | 'password' => 'root',
20 | 'charset' => 'utf8',
21 | 'collation' => 'utf8_unicode_ci',
22 | 'prefix' => '',
23 | ),
24 |
25 | 'pgsql' => array(
26 | 'driver' => 'pgsql',
27 | 'host' => 'localhost',
28 | 'database' => 'database',
29 | 'username' => 'root',
30 | 'password' => '',
31 | 'charset' => 'utf8',
32 | 'prefix' => '',
33 | 'schema' => 'public',
34 | ),
35 |
36 | 'sqlsrv' => array(
37 | 'driver' => 'sqlsrv',
38 | 'host' => 'localhost',
39 | 'database' => 'database',
40 | 'username' => 'root',
41 | 'password' => '',
42 | 'prefix' => '',
43 | ),
44 |
45 | ),
46 | );
47 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2013 WardrobCMS
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of
6 | this software and associated documentation files (the "Software"), to deal in
7 | the Software without restriction, including without limitation the rights to
8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9 | the Software, and to permit persons to whom the Software is furnished to do so,
10 | subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/app/routes.php:
--------------------------------------------------------------------------------
1 | 'install'), function()
15 | {
16 | Route::get('/', array('uses' => 'InstallController@start', 'as' => 'wardrobe.install.index'));
17 | Route::post('/', array('uses' => 'InstallController@publishAndMigrate', 'as' => 'wardrobe.install.publishAndMigrate'));
18 |
19 | Route::get('user', array('uses' => 'InstallController@createUser', 'as' => 'wardrobe.install.createUser'));
20 | Route::post('user', array('uses' => 'InstallController@storeUser', 'as' => 'wardrobe.install.storeUser'));
21 |
22 | Route::get('config', array('uses' => 'InstallController@editConfig', 'as' => 'wardrobe.install.editConfig'));
23 | Route::post('config', array('uses' => 'InstallController@updateConfig', 'as' => 'wardrobe.install.updateConfig'));
24 | });
25 |
--------------------------------------------------------------------------------
/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "authors": [
3 | {
4 | "name": "Eric L Barnes",
5 | "email": "eric@ericlbarnes.com",
6 | "role": "Developer"
7 | },
8 | {
9 | "name": "Ryan Tablada",
10 | "email": "ryan.tablada@gmail.com",
11 | "role": "Developer"
12 | }
13 | ],
14 | "name": "wardrobe/wardrobe",
15 | "description": "A minimal blog application.",
16 | "keywords": ["blog", "cms", "laravel", "wardrobe"],
17 | "require": {
18 | "laravel/framework": "4.1.*",
19 | "wardrobe/core": "1.2.*"
20 | },
21 | "autoload": {
22 | "classmap": [
23 | "app/commands",
24 | "app/controllers",
25 | "app/models",
26 | "app/database/migrations",
27 | "app/database/seeds",
28 | "app/tests/TestCase.php"
29 | ]
30 | },
31 | "scripts": {
32 | "post-install-cmd": [
33 | "php artisan optimize"
34 | ],
35 | "pre-update-cmd": [
36 | "php artisan clear-compiled"
37 | ],
38 | "post-update-cmd": [
39 | "php artisan optimize",
40 | "php artisan asset:publish wardrobe/core"
41 | ],
42 | "post-create-project-cmd": [
43 | "php artisan key:generate",
44 | "php artisan asset:publish wardrobe/core",
45 | "php artisan wardrobe:themes"
46 | ]
47 | },
48 | "config": {
49 | "preferred-install": "dist"
50 | },
51 | "minimum-stability": "dev",
52 | "license": "MIT"
53 | }
54 |
--------------------------------------------------------------------------------
/app/views/admin/installer/config.blade.php:
--------------------------------------------------------------------------------
1 | @extends('core::admin.layout')
2 |
3 | @section('title')
4 | Installer | Step 1
5 | @stop
6 |
7 | @section('content')
8 |
9 |
Wardrobe Install
10 | @if (Session::has('install_errors'))
11 |
12 | Error!
13 | @foreach ($errors->all() as $error)
14 |
{{ $error }}
15 | @endforeach
16 |
17 | @endif
18 |
44 |
45 | @stop
46 |
--------------------------------------------------------------------------------
/public/index.php:
--------------------------------------------------------------------------------
1 |
7 | */
8 |
9 | /*
10 | |--------------------------------------------------------------------------
11 | | Register The Auto Loader
12 | |--------------------------------------------------------------------------
13 | |
14 | | Composer provides a convenient, automatically generated class loader
15 | | for our application. We just need to utilize it! We'll require it
16 | | into the script here so that we do not have to worry about the
17 | | loading of any our classes "manually". Feels great to relax.
18 | |
19 | */
20 |
21 | require __DIR__.'/../bootstrap/autoload.php';
22 |
23 | /*
24 | |--------------------------------------------------------------------------
25 | | Turn On The Lights
26 | |--------------------------------------------------------------------------
27 | |
28 | | We need to illuminate PHP development, so let's turn on the lights.
29 | | This bootstraps the framework and gets it ready for use, then it
30 | | will load up this application so that we can run it and send
31 | | the responses back to the browser and delight these users.
32 | |
33 | */
34 |
35 | $app = require_once __DIR__.'/../bootstrap/start.php';
36 |
37 | /*
38 | |--------------------------------------------------------------------------
39 | | Run The Application
40 | |--------------------------------------------------------------------------
41 | |
42 | | Once we have the application, we can simply call the run method,
43 | | which will execute the request and send the response back to
44 | | the client's browser allowing them to enjoy the creative
45 | | and wonderful application we have whipped up for them.
46 | |
47 | */
48 |
49 | $app->run();
--------------------------------------------------------------------------------
/app/config/remote.php:
--------------------------------------------------------------------------------
1 | 'production',
17 |
18 | /*
19 | |--------------------------------------------------------------------------
20 | | Remote Server Connections
21 | |--------------------------------------------------------------------------
22 | |
23 | | These are the servers that will be accessible via the SSH task runner
24 | | facilities of Laravel. This feature radically simplifies executing
25 | | tasks on your servers, such as deploying out these applications.
26 | |
27 | */
28 |
29 | 'connections' => array(
30 |
31 | 'production' => array(
32 | 'host' => '',
33 | 'username' => '',
34 | 'password' => '',
35 | 'key' => '',
36 | 'keyphrase' => '',
37 | 'root' => '/var/www',
38 | ),
39 |
40 | ),
41 |
42 | /*
43 | |--------------------------------------------------------------------------
44 | | Remote Server Groups
45 | |--------------------------------------------------------------------------
46 | |
47 | | Here you may list connections under a single group name, which allows
48 | | you to easily access all of the servers at once using a short name
49 | | that is extremely easy to remember, such as "web" or "database".
50 | |
51 | */
52 |
53 | 'groups' => array(
54 |
55 | 'web' => array('production')
56 |
57 | ),
58 |
59 | );
--------------------------------------------------------------------------------
/readme.md:
--------------------------------------------------------------------------------
1 | ## Wardrobe
2 |
3 | [](https://packagist.org/packages/wardrobe/wardrobe) [](https://packagist.org/packages/wardrobe/wardrobe)
4 |
5 | Wardrobe is designed to be a very minimal blogging platform with the primary focus on writing. Currently it is a work in progress but you are free to give it a try. (Just be warned this alpha/beta quality). If you have any issues or ideas please report them.
6 |
7 | 
8 |
9 |
10 | Requirements
11 | ---------------------------------------
12 |
13 | Wardrobe has a few system requirements:
14 |
15 | - PHP >= 5.3.7
16 | - MCrypt PHP Extension
17 | - PDO compliant database (SQL, MySQL, PostgreSQL, SQLite)
18 |
19 | Installing Wardrobe
20 | ---------------------------------------
21 |
22 | Installing Wardrobe is now as simple as running `composer create-project wardrobe/wardrobe`.
23 | After running this command, modify your `app/config/database.php` file with your database credentials and visit the site in your browser.
24 |
25 | In the browser you will be directed to the guided install process which will:
26 |
27 | * Prepare your database for WardrobeCMS
28 | * Help you create your first user
29 | * Help you set your site title, theme, and page values
30 |
31 | Upgrading Wardrobe
32 | ---------------------------------------
33 |
34 | Run `composer update` then `php artisan wardrobe:migrate` to migrate any db tables.
35 |
36 | Theming Wardrobe
37 | ---------------------------------------
38 | By default, your theme files are located in `public/themes`.
39 | You can modify these themes or create your own using the default themes as a guide.
40 | The configuration for your themes is located in `app/config/packages/wardrobe/core/wardrobe.php` in the `theme` option.
41 |
--------------------------------------------------------------------------------
/bootstrap/paths.php:
--------------------------------------------------------------------------------
1 | __DIR__.'/../app',
17 |
18 | /*
19 | |--------------------------------------------------------------------------
20 | | Public Path
21 | |--------------------------------------------------------------------------
22 | |
23 | | The public path contains the assets for your web application, such as
24 | | your JavaScript and CSS files, and also contains the primary entry
25 | | point for web requests into these applications from the outside.
26 | |
27 | */
28 |
29 | 'public' => __DIR__.'/../public',
30 |
31 | /*
32 | |--------------------------------------------------------------------------
33 | | Base Path
34 | |--------------------------------------------------------------------------
35 | |
36 | | The base path is the root of the Laravel installation. Most likely you
37 | | will not need to change this value. But, if for some wild reason it
38 | | is necessary you will do so here, just proceed with some caution.
39 | |
40 | */
41 |
42 | 'base' => __DIR__.'/..',
43 |
44 | /*
45 | |--------------------------------------------------------------------------
46 | | Storage Path
47 | |--------------------------------------------------------------------------
48 | |
49 | | The storage path is used by Laravel to store cached Blade views, logs
50 | | and other pieces of information. You may modify the path here when
51 | | you want to change the location of this directory for your apps.
52 | |
53 | */
54 |
55 | 'storage' => __DIR__.'/../app/storage',
56 |
57 | );
58 |
--------------------------------------------------------------------------------
/app/config/auth.php:
--------------------------------------------------------------------------------
1 | 'eloquent',
19 |
20 | /*
21 | |--------------------------------------------------------------------------
22 | | Authentication Model
23 | |--------------------------------------------------------------------------
24 | |
25 | | When using the "Eloquent" authentication driver, we need to know which
26 | | Eloquent model should be used to retrieve your users. Of course, it
27 | | is often just the "User" model but you may use whatever you like.
28 | |
29 | */
30 |
31 | 'model' => 'User',
32 |
33 | /*
34 | |--------------------------------------------------------------------------
35 | | Authentication Table
36 | |--------------------------------------------------------------------------
37 | |
38 | | When using the "Database" authentication driver, we need to know which
39 | | table should be used to retrieve your users. We have chosen a basic
40 | | default value but you may easily change it to any table you like.
41 | |
42 | */
43 |
44 | 'table' => 'users',
45 |
46 | /*
47 | |--------------------------------------------------------------------------
48 | | Password Reminder Settings
49 | |--------------------------------------------------------------------------
50 | |
51 | | Here you may set the settings for password reminders, including a view
52 | | that should be used as your password reminder e-mail. You will also
53 | | be able to set the name of the table that holds the reset tokens.
54 | |
55 | */
56 |
57 | 'reminder' => array(
58 |
59 | 'email' => 'emails.auth.reminder',
60 |
61 | 'table' => 'password_reminders',
62 |
63 | 'expire' => 60,
64 |
65 | ),
66 |
67 | );
--------------------------------------------------------------------------------
/app/views/admin/installer/user.blade.php:
--------------------------------------------------------------------------------
1 | @extends('core::admin.layout')
2 |
3 | @section('title')
4 | Installer | Step 2
5 | @stop
6 |
7 | @section('content')
8 |
9 |
Wardrobe Install
10 | @if (Session::has('install_errors'))
11 |
12 | Error!
13 | @foreach ($errors->all() as $error)
14 |
{{ $error }}
15 | @endforeach
16 |
17 | @endif
18 |
55 |
56 | @stop
57 |
--------------------------------------------------------------------------------
/app/config/queue.php:
--------------------------------------------------------------------------------
1 | 'sync',
19 |
20 | /*
21 | |--------------------------------------------------------------------------
22 | | Queue Connections
23 | |--------------------------------------------------------------------------
24 | |
25 | | Here you may configure the connection information for each server that
26 | | is used by your application. A default configuration has been added
27 | | for each back-end shipped with Laravel. You are free to add more.
28 | |
29 | */
30 |
31 | 'connections' => array(
32 |
33 | 'sync' => array(
34 | 'driver' => 'sync',
35 | ),
36 |
37 | 'beanstalkd' => array(
38 | 'driver' => 'beanstalkd',
39 | 'host' => 'localhost',
40 | 'queue' => 'default',
41 | ),
42 |
43 | 'sqs' => array(
44 | 'driver' => 'sqs',
45 | 'key' => 'your-public-key',
46 | 'secret' => 'your-secret-key',
47 | 'queue' => 'your-queue-url',
48 | 'region' => 'us-east-1',
49 | ),
50 |
51 | 'iron' => array(
52 | 'driver' => 'iron',
53 | 'project' => 'your-project-id',
54 | 'token' => 'your-token',
55 | 'queue' => 'your-queue-name',
56 | ),
57 |
58 | 'redis' => array(
59 | 'driver' => 'redis',
60 | 'queue' => 'default',
61 | ),
62 |
63 | ),
64 |
65 | /*
66 | |--------------------------------------------------------------------------
67 | | Failed Queue Jobs
68 | |--------------------------------------------------------------------------
69 | |
70 | | These options configure the behavior of failed queue job logging so you
71 | | can control which database and table are used to store the jobs that
72 | | have failed. You may change them to any database / table you wish.
73 | |
74 | */
75 |
76 | 'failed' => array(
77 |
78 | 'database' => 'mysql', 'table' => 'failed_jobs',
79 |
80 | ),
81 |
82 | );
--------------------------------------------------------------------------------
/app/filters.php:
--------------------------------------------------------------------------------
1 | detectEnvironment(array(
28 |
29 | 'local' => array('your-machine-name'),
30 | 'dev' => array('wardrobe-core.dev'),
31 |
32 | ));
33 |
34 | /*
35 | |--------------------------------------------------------------------------
36 | | Bind Paths
37 | |--------------------------------------------------------------------------
38 | |
39 | | Here we are binding the paths configured in paths.php to the app. You
40 | | should not be changing these here. If you need to change these you
41 | | may do so within the paths.php file and they will be bound here.
42 | |
43 | */
44 |
45 | $app->bindInstallPaths(require __DIR__.'/paths.php');
46 |
47 | /*
48 | |--------------------------------------------------------------------------
49 | | Load The Application
50 | |--------------------------------------------------------------------------
51 | |
52 | | Here we will load the Illuminate application. We'll keep this is in a
53 | | separate location so we can isolate the creation of an application
54 | | from the actual running of the application with a given request.
55 | |
56 | */
57 |
58 | $framework = $app['path.base'].'/vendor/laravel/framework/src';
59 |
60 | require $framework.'/Illuminate/Foundation/start.php';
61 |
62 | /*
63 | |--------------------------------------------------------------------------
64 | | Return The Application
65 | |--------------------------------------------------------------------------
66 | |
67 | | This script returns the application instance. The instance is given to
68 | | the calling script so we can separate the building of the instances
69 | | from the actual running of the application and sending responses.
70 | |
71 | */
72 |
73 | return $app;
74 |
--------------------------------------------------------------------------------
/app/config/packages/wardrobe/core/wardrobe.php:
--------------------------------------------------------------------------------
1 | 'themes',
15 |
16 | /*
17 | |--------------------------------------------------------------------------
18 | | Image Uploads Directory
19 | |--------------------------------------------------------------------------
20 | |
21 | | Set this to the directory where your images will be located in your public
22 | | folder.
23 | |
24 | */
25 | 'image_dir' => 'images',
26 |
27 | /*
28 | |--------------------------------------------------------------------------
29 | | 404 Handling
30 | |--------------------------------------------------------------------------
31 | |
32 | | Set this to true if you want wardrobe to handle your 404 errors
33 | | gracefully.
34 | |
35 | */
36 | 'handles_404' => true,
37 |
38 | /*
39 | |--------------------------------------------------------------------------
40 | | Active Theme
41 | |--------------------------------------------------------------------------
42 | |
43 | | Set this to the directory of the theme you want active. No slashes.
44 | |
45 | */
46 | 'theme' => '##theme##',
47 |
48 | /*
49 | |--------------------------------------------------------------------------
50 | | Site Title
51 | |--------------------------------------------------------------------------
52 | |
53 | | Set this to your sites title
54 | |
55 | */
56 | 'title' => '##title##',
57 |
58 | /*
59 | |--------------------------------------------------------------------------
60 | | Posts per page
61 | |--------------------------------------------------------------------------
62 | |
63 | | Set this to the number of posts you want per page.
64 | |
65 | */
66 | 'per_page' => '##per_page##',
67 |
68 | /*
69 | |--------------------------------------------------------------------------
70 | | Installed
71 | |--------------------------------------------------------------------------
72 | |
73 | | This sets a flag so that it can only be installed once.
74 | |
75 | */
76 | 'installed' => '##installed##',
77 |
78 | /*
79 | |--------------------------------------------------------------------------
80 | | In Framework
81 | |--------------------------------------------------------------------------
82 | |
83 | | Checks if this is installed in wardrobe/wardrobe
84 | |
85 | */
86 | 'in_framework' => true
87 | );
88 |
--------------------------------------------------------------------------------
/artisan:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env php
2 | setRequestForConsoleEnvironment();
45 |
46 | $artisan = Illuminate\Console\Application::start($app);
47 |
48 | /*
49 | |--------------------------------------------------------------------------
50 | | Run The Artisan Application
51 | |--------------------------------------------------------------------------
52 | |
53 | | When we run the console application, the current CLI command will be
54 | | executed in this console and the response sent back to a terminal
55 | | or another output device for the developers. Here goes nothing!
56 | |
57 | */
58 |
59 | $status = $artisan->run();
60 |
61 | /*
62 | |--------------------------------------------------------------------------
63 | | Shutdown The Application
64 | |--------------------------------------------------------------------------
65 | |
66 | | Once Artisan has finished running. We will fire off the shutdown events
67 | | so that any final work may be done by the application before we shut
68 | | down the process. This is the last thing to happen to the request.
69 | |
70 | */
71 |
72 | $app->shutdown();
73 |
74 | exit($status);
--------------------------------------------------------------------------------
/bootstrap/autoload.php:
--------------------------------------------------------------------------------
1 | 'file',
19 |
20 | /*
21 | |--------------------------------------------------------------------------
22 | | File Cache Location
23 | |--------------------------------------------------------------------------
24 | |
25 | | When using the "file" cache driver, we need a location where the cache
26 | | files may be stored. A sensible default has been specified, but you
27 | | are free to change it to any other place on disk that you desire.
28 | |
29 | */
30 |
31 | 'path' => storage_path().'/cache',
32 |
33 | /*
34 | |--------------------------------------------------------------------------
35 | | Database Cache Connection
36 | |--------------------------------------------------------------------------
37 | |
38 | | When using the "database" cache driver you may specify the connection
39 | | that should be used to store the cached items. When this option is
40 | | null the default database connection will be utilized for cache.
41 | |
42 | */
43 |
44 | 'connection' => null,
45 |
46 | /*
47 | |--------------------------------------------------------------------------
48 | | Database Cache Table
49 | |--------------------------------------------------------------------------
50 | |
51 | | When using the "database" cache driver we need to know the table that
52 | | should be used to store the cached items. A default table name has
53 | | been provided but you're free to change it however you deem fit.
54 | |
55 | */
56 |
57 | 'table' => 'cache',
58 |
59 | /*
60 | |--------------------------------------------------------------------------
61 | | Memcached Servers
62 | |--------------------------------------------------------------------------
63 | |
64 | | Now you may specify an array of your Memcached servers that should be
65 | | used when utilizing the Memcached cache driver. All of the servers
66 | | should contain a value for "host", "port", and "weight" options.
67 | |
68 | */
69 |
70 | 'memcached' => array(
71 |
72 | array('host' => '127.0.0.1', 'port' => 11211, 'weight' => 100),
73 |
74 | ),
75 |
76 | /*
77 | |--------------------------------------------------------------------------
78 | | Cache Key Prefix
79 | |--------------------------------------------------------------------------
80 | |
81 | | When utilizing a RAM based store such as APC or Memcached, there might
82 | | be other applications utilizing the same cache. So, we'll specify a
83 | | value to get prefixed to all our keys so we can avoid collisions.
84 | |
85 | */
86 |
87 | 'prefix' => 'laravel',
88 |
89 | );
90 |
--------------------------------------------------------------------------------
/app/config/database.php:
--------------------------------------------------------------------------------
1 | PDO::FETCH_CLASS,
17 |
18 | /*
19 | |--------------------------------------------------------------------------
20 | | Default Database Connection Name
21 | |--------------------------------------------------------------------------
22 | |
23 | | Here you may specify which of the database connections below you wish
24 | | to use as your default connection for all database work. Of course
25 | | you may use many connections at once using the Database library.
26 | |
27 | */
28 |
29 | 'default' => 'mysql',
30 |
31 | /*
32 | |--------------------------------------------------------------------------
33 | | Database Connections
34 | |--------------------------------------------------------------------------
35 | |
36 | | Here are each of the database connections setup for your application.
37 | | Of course, examples of configuring each database platform that is
38 | | supported by Laravel is shown below to make development simple.
39 | |
40 | |
41 | | All database work in Laravel is done through the PHP PDO facilities
42 | | so make sure you have the driver for your particular database of
43 | | choice installed on your machine before you begin development.
44 | |
45 | */
46 |
47 | 'connections' => array(
48 |
49 | 'sqlite' => array(
50 | 'driver' => 'sqlite',
51 | 'database' => __DIR__.'/../database/production.sqlite',
52 | 'prefix' => '',
53 | ),
54 |
55 | 'mysql' => array(
56 | 'driver' => 'mysql',
57 | 'host' => 'localhost',
58 | 'database' => 'database',
59 | 'username' => 'root',
60 | 'password' => '',
61 | 'charset' => 'utf8',
62 | 'collation' => 'utf8_unicode_ci',
63 | 'prefix' => '',
64 | ),
65 |
66 | 'pgsql' => array(
67 | 'driver' => 'pgsql',
68 | 'host' => 'localhost',
69 | 'database' => 'database',
70 | 'username' => 'root',
71 | 'password' => '',
72 | 'charset' => 'utf8',
73 | 'prefix' => '',
74 | 'schema' => 'public',
75 | ),
76 |
77 | 'sqlsrv' => array(
78 | 'driver' => 'sqlsrv',
79 | 'host' => 'localhost',
80 | 'database' => 'database',
81 | 'username' => 'root',
82 | 'password' => '',
83 | 'prefix' => '',
84 | ),
85 |
86 | ),
87 |
88 | /*
89 | |--------------------------------------------------------------------------
90 | | Migration Repository Table
91 | |--------------------------------------------------------------------------
92 | |
93 | | This table keeps track of all the migrations that have already run for
94 | | your application. Using this information, we can determine which of
95 | | the migrations on disk have not actually be run in the databases.
96 | |
97 | */
98 |
99 | 'migrations' => 'migrations',
100 |
101 | /*
102 | |--------------------------------------------------------------------------
103 | | Redis Databases
104 | |--------------------------------------------------------------------------
105 | |
106 | | Redis is an open source, fast, and advanced key-value store that also
107 | | provides a richer set of commands than a typical key-value systems
108 | | such as APC or Memcached. Laravel makes it easy to dig right in.
109 | |
110 | */
111 |
112 | 'redis' => array(
113 |
114 | 'cluster' => false,
115 |
116 | 'default' => array(
117 | 'host' => '127.0.0.1',
118 | 'port' => 6379,
119 | 'database' => 0,
120 | ),
121 |
122 | ),
123 |
124 | );
125 |
--------------------------------------------------------------------------------
/app/controllers/InstallController.php:
--------------------------------------------------------------------------------
1 | setConnection('wardrobe');
26 |
27 | // If the config is marked as installed then bail with a 404.
28 | if (Config::get("core::wardrobe.installed") === true)
29 | {
30 | return App::abort(404, 'Page not found');
31 | }
32 |
33 | $this->users = $users;
34 | }
35 |
36 | /**
37 | * Get the install index.
38 | *
39 | * @return Response
40 | */
41 | public function start()
42 | {
43 | return View::make('admin.installer.step1');
44 | }
45 |
46 | /**
47 | * Run the migrations
48 | *
49 | * @return Response
50 | */
51 | public function publishAndMigrate()
52 | {
53 | $artisan = Artisan::call(
54 | 'migrate',
55 | array(
56 | '--env' => App::environment(),
57 | '--database' => 'wardrobe',
58 | '--package' => 'wardrobe/core'
59 | )
60 | );
61 |
62 | Artisan::call(
63 | 'asset:publish',
64 | array('package' => 'wardrobe/core')
65 | );
66 |
67 | if ($artisan > 0)
68 | {
69 | return Redirect::back()
70 | ->withErrors(array('error' => 'Install Failed'))
71 | ->with('install_errors', true);
72 | }
73 |
74 | return Redirect::to('install/user');
75 | }
76 |
77 | /**
78 | * Get the user form.
79 | *
80 | * @return Response
81 | */
82 | public function createUser()
83 | {
84 | return View::make('admin.installer.user');
85 | }
86 |
87 | /**
88 | * Add the user and show success!
89 | *
90 | * @return Response
91 | */
92 | public function storeUser()
93 | {
94 | $messages = $this->users->validForCreation(
95 | Input::get('first_name'),
96 | Input::get('last_name'),
97 | Input::get('email'),
98 | Input::get('password')
99 | );
100 |
101 | if (count($messages) > 0)
102 | {
103 | return Redirect::back()
104 | ->withErrors($messages)
105 | ->with('install_errors', true);
106 | }
107 |
108 | $user = $this->users->create(
109 | Input::get('first_name'),
110 | Input::get('last_name'),
111 | Input::get('email'),
112 | 1, // Force them as active
113 | Input::get('password')
114 | );
115 |
116 | return Redirect::to('install/config');
117 | }
118 |
119 | /**
120 | * Get the config form.
121 | */
122 | public function editConfig()
123 | {
124 | return View::make('admin.installer.config');
125 | }
126 |
127 | /**
128 | * Save the config files
129 | */
130 | public function updateConfig()
131 | {
132 | $this->setWardrobeConfig(
133 | Input::get('title', 'Site Name'),
134 | Input::get('theme', 'Default'),
135 | Input::get('per_page', 5)
136 | );
137 |
138 | return View::make('admin.installer.complete');
139 | }
140 |
141 | /**
142 | * Update the configs based on passed data
143 | *
144 | * @param string $title
145 | * @param string $theme
146 | * @param int $per_page
147 | *
148 | * @return
149 | */
150 | protected function setWardrobeConfig($title, $theme, $per_page)
151 | {
152 | $path = $this->getConfigFile('wardrobe.php');
153 | $content = str_replace(
154 | array('##title##', '##theme##', "'##per_page##'", "'##installed##'"),
155 | array(addslashes($title), $theme, (int) $per_page, 'true'),
156 | File::get($path)
157 | );
158 | return File::put($path, $content);
159 | }
160 |
161 | /**
162 | * Get the config file
163 | *
164 | * Use the current environment to load the config file. With a fall back on the original.
165 | *
166 | * @param string $file
167 | * @return string
168 | */
169 | protected function getConfigFile($file)
170 | {
171 | if (file_exists(app_path().'/config/packages/wardrobe/core/'.App::environment().'/'.$file))
172 | {
173 | return app_path().'/config/packages/wardrobe/core/'.App::environment().'/'.$file;
174 | }
175 |
176 | return app_path().'/config/packages/wardrobe/core/'.$file;
177 | }
178 | }
179 |
--------------------------------------------------------------------------------
/app/config/mail.php:
--------------------------------------------------------------------------------
1 | 'smtp',
19 |
20 | /*
21 | |--------------------------------------------------------------------------
22 | | SMTP Host Address
23 | |--------------------------------------------------------------------------
24 | |
25 | | Here you may provide the host address of the SMTP server used by your
26 | | applications. A default option is provided that is compatible with
27 | | the Postmark mail service, which will provide reliable delivery.
28 | |
29 | */
30 |
31 | 'host' => 'smtp.mailgun.org',
32 |
33 | /*
34 | |--------------------------------------------------------------------------
35 | | SMTP Host Port
36 | |--------------------------------------------------------------------------
37 | |
38 | | This is the SMTP port used by your application to delivery e-mails to
39 | | users of your application. Like the host we have set this value to
40 | | stay compatible with the Postmark e-mail application by default.
41 | |
42 | */
43 |
44 | 'port' => 587,
45 |
46 | /*
47 | |--------------------------------------------------------------------------
48 | | Global "From" Address
49 | |--------------------------------------------------------------------------
50 | |
51 | | You may wish for all e-mails sent by your application to be sent from
52 | | the same address. Here, you may specify a name and address that is
53 | | used globally for all e-mails that are sent by your application.
54 | |
55 | */
56 |
57 | 'from' => array('address' => null, 'name' => null),
58 |
59 | /*
60 | |--------------------------------------------------------------------------
61 | | E-Mail Encryption Protocol
62 | |--------------------------------------------------------------------------
63 | |
64 | | Here you may specify the encryption protocol that should be used when
65 | | the application send e-mail messages. A sensible default using the
66 | | transport layer security protocol should provide great security.
67 | |
68 | */
69 |
70 | 'encryption' => 'tls',
71 |
72 | /*
73 | |--------------------------------------------------------------------------
74 | | SMTP Server Username
75 | |--------------------------------------------------------------------------
76 | |
77 | | If your SMTP server requires a username for authentication, you should
78 | | set it here. This will get used to authenticate with your server on
79 | | connection. You may also set the "password" value below this one.
80 | |
81 | */
82 |
83 | 'username' => null,
84 |
85 | /*
86 | |--------------------------------------------------------------------------
87 | | SMTP Server Password
88 | |--------------------------------------------------------------------------
89 | |
90 | | Here you may set the password required by your SMTP server to send out
91 | | messages from your application. This will be given to the server on
92 | | connection so that the application will be able to send messages.
93 | |
94 | */
95 |
96 | 'password' => null,
97 |
98 | /*
99 | |--------------------------------------------------------------------------
100 | | Sendmail System Path
101 | |--------------------------------------------------------------------------
102 | |
103 | | When using the "sendmail" driver to send e-mails, we will need to know
104 | | the path to where Sendmail lives on this server. A default path has
105 | | been provided here, which will work well on most of your systems.
106 | |
107 | */
108 |
109 | 'sendmail' => '/usr/sbin/sendmail -bs',
110 |
111 | /*
112 | |--------------------------------------------------------------------------
113 | | Mail "Pretend"
114 | |--------------------------------------------------------------------------
115 | |
116 | | When this option is enabled, e-mail will not actually be sent over the
117 | | web and will instead be written to your application's logs files so
118 | | you may inspect the message. This is great for local development.
119 | |
120 | */
121 |
122 | 'pretend' => false,
123 |
124 | );
--------------------------------------------------------------------------------
/app/lang/en/validation.php:
--------------------------------------------------------------------------------
1 | "The :attribute must be accepted.",
17 | "active_url" => "The :attribute is not a valid URL.",
18 | "after" => "The :attribute must be a date after :date.",
19 | "alpha" => "The :attribute may only contain letters.",
20 | "alpha_dash" => "The :attribute may only contain letters, numbers, and dashes.",
21 | "alpha_num" => "The :attribute may only contain letters and numbers.",
22 | "array" => "The :attribute must be an array.",
23 | "before" => "The :attribute must be a date before :date.",
24 | "between" => array(
25 | "numeric" => "The :attribute must be between :min - :max.",
26 | "file" => "The :attribute must be between :min - :max kilobytes.",
27 | "string" => "The :attribute must be between :min - :max characters.",
28 | "array" => "The :attribute must have between :min - :max items.",
29 | ),
30 | "confirmed" => "The :attribute confirmation does not match.",
31 | "date" => "The :attribute is not a valid date.",
32 | "date_format" => "The :attribute does not match the format :format.",
33 | "different" => "The :attribute and :other must be different.",
34 | "digits" => "The :attribute must be :digits digits.",
35 | "digits_between" => "The :attribute must be between :min and :max digits.",
36 | "email" => "The :attribute format is invalid.",
37 | "exists" => "The selected :attribute is invalid.",
38 | "image" => "The :attribute must be an image.",
39 | "in" => "The selected :attribute is invalid.",
40 | "integer" => "The :attribute must be an integer.",
41 | "ip" => "The :attribute must be a valid IP address.",
42 | "max" => array(
43 | "numeric" => "The :attribute may not be greater than :max.",
44 | "file" => "The :attribute may not be greater than :max kilobytes.",
45 | "string" => "The :attribute may not be greater than :max characters.",
46 | "array" => "The :attribute may not have more than :max items.",
47 | ),
48 | "mimes" => "The :attribute must be a file of type: :values.",
49 | "min" => array(
50 | "numeric" => "The :attribute must be at least :min.",
51 | "file" => "The :attribute must be at least :min kilobytes.",
52 | "string" => "The :attribute must be at least :min characters.",
53 | "array" => "The :attribute must have at least :min items.",
54 | ),
55 | "not_in" => "The selected :attribute is invalid.",
56 | "numeric" => "The :attribute must be a number.",
57 | "regex" => "The :attribute format is invalid.",
58 | "required" => "The :attribute field is required.",
59 | "required_if" => "The :attribute field is required when :other is :value.",
60 | "required_with" => "The :attribute field is required when :values is present.",
61 | "required_without" => "The :attribute field is required when :values is not present.",
62 | "same" => "The :attribute and :other must match.",
63 | "size" => array(
64 | "numeric" => "The :attribute must be :size.",
65 | "file" => "The :attribute must be :size kilobytes.",
66 | "string" => "The :attribute must be :size characters.",
67 | "array" => "The :attribute must contain :size items.",
68 | ),
69 | "unique" => "The :attribute has already been taken.",
70 | "url" => "The :attribute format is invalid.",
71 |
72 | /*
73 | |--------------------------------------------------------------------------
74 | | Custom Validation Language Lines
75 | |--------------------------------------------------------------------------
76 | |
77 | | Here you may specify custom validation messages for attributes using the
78 | | convention "attribute.rule" to name the lines. This makes it quick to
79 | | specify a specific custom language line for a given attribute rule.
80 | |
81 | */
82 |
83 | 'custom' => array(),
84 |
85 | /*
86 | |--------------------------------------------------------------------------
87 | | Custom Validation Attributes
88 | |--------------------------------------------------------------------------
89 | |
90 | | The following language lines are used to swap attribute place-holders
91 | | with something more reader friendly such as E-Mail Address instead
92 | | of "email". This simply helps us make messages a little cleaner.
93 | |
94 | */
95 |
96 | 'attributes' => array(),
97 |
98 | );
99 |
--------------------------------------------------------------------------------
/app/config/session.php:
--------------------------------------------------------------------------------
1 | 'file',
20 |
21 | /*
22 | |--------------------------------------------------------------------------
23 | | Session Lifetime
24 | |--------------------------------------------------------------------------
25 | |
26 | | Here you may specify the number of minutes that you wish the session
27 | | to be allowed to remain idle before it expires. If you want them
28 | | to immediately expire on the browser closing, set that option.
29 | |
30 | */
31 |
32 | 'lifetime' => 120,
33 |
34 | 'expire_on_close' => false,
35 |
36 | /*
37 | |--------------------------------------------------------------------------
38 | | Session File Location
39 | |--------------------------------------------------------------------------
40 | |
41 | | When using the native session driver, we need a location where session
42 | | files may be stored. A default has been set for you but a different
43 | | location may be specified. This is only needed for file sessions.
44 | |
45 | */
46 |
47 | 'files' => storage_path().'/sessions',
48 |
49 | /*
50 | |--------------------------------------------------------------------------
51 | | Session Database Connection
52 | |--------------------------------------------------------------------------
53 | |
54 | | When using the "database" or "redis" session drivers, you may specify a
55 | | connection that should be used to manage these sessions. This should
56 | | correspond to a connection in your database configuration options.
57 | |
58 | */
59 |
60 | 'connection' => null,
61 |
62 | /*
63 | |--------------------------------------------------------------------------
64 | | Session Database Table
65 | |--------------------------------------------------------------------------
66 | |
67 | | When using the "database" session driver, you may specify the table we
68 | | should use to manage the sessions. Of course, a sensible default is
69 | | provided for you; however, you are free to change this as needed.
70 | |
71 | */
72 |
73 | 'table' => 'sessions',
74 |
75 | /*
76 | |--------------------------------------------------------------------------
77 | | Session Sweeping Lottery
78 | |--------------------------------------------------------------------------
79 | |
80 | | Some session drivers must manually sweep their storage location to get
81 | | rid of old sessions from storage. Here are the chances that it will
82 | | happen on a given request. By default, the odds are 2 out of 100.
83 | |
84 | */
85 |
86 | 'lottery' => array(2, 100),
87 |
88 | /*
89 | |--------------------------------------------------------------------------
90 | | Session Cookie Name
91 | |--------------------------------------------------------------------------
92 | |
93 | | Here you may change the name of the cookie used to identify a session
94 | | instance by ID. The name specified here will get used every time a
95 | | new session cookie is created by the framework for every driver.
96 | |
97 | */
98 |
99 | 'cookie' => 'laravel_session',
100 |
101 | /*
102 | |--------------------------------------------------------------------------
103 | | Session Cookie Path
104 | |--------------------------------------------------------------------------
105 | |
106 | | The session cookie path determines the path for which the cookie will
107 | | be regarded as available. Typically, this will be the root path of
108 | | your application but you are free to change this when necessary.
109 | |
110 | */
111 |
112 | 'path' => '/',
113 |
114 | /*
115 | |--------------------------------------------------------------------------
116 | | Session Cookie Domain
117 | |--------------------------------------------------------------------------
118 | |
119 | | Here you may change the domain of the cookie used to identify a session
120 | | in your application. This will determine which domains the cookie is
121 | | available to in your application. A sensible default has been set.
122 | |
123 | */
124 |
125 | 'domain' => null,
126 |
127 | /*
128 | |--------------------------------------------------------------------------
129 | | HTTPS Only Cookies
130 | |--------------------------------------------------------------------------
131 | |
132 | | By setting this option to true, session cookies will only be sent back
133 | | to the server if the browser has a HTTPS connection. This will keep
134 | | the cookie from being sent to you if it can not be done securely.
135 | |
136 | */
137 |
138 | 'secure' => false,
139 |
140 | );
--------------------------------------------------------------------------------
/app/views/hello.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Laravel PHP Framework
6 |
45 |
46 |
47 |
48 |

49 |
You have arrived.
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/app/config/app.php:
--------------------------------------------------------------------------------
1 | true,
17 |
18 | /*
19 | |--------------------------------------------------------------------------
20 | | Application URL
21 | |--------------------------------------------------------------------------
22 | |
23 | | This URL is used by the console to properly generate URLs when using
24 | | the Artisan command line tool. You should set this to the root of
25 | | your application so that it is used when running Artisan tasks.
26 | |
27 | */
28 |
29 | 'url' => 'http://localhost',
30 |
31 | /*
32 | |--------------------------------------------------------------------------
33 | | Application Timezone
34 | |--------------------------------------------------------------------------
35 | |
36 | | Here you may specify the default timezone for your application, which
37 | | will be used by the PHP date and date-time functions. We have gone
38 | | ahead and set this to a sensible default for you out of the box.
39 | |
40 | */
41 |
42 | 'timezone' => 'UTC',
43 |
44 | /*
45 | |--------------------------------------------------------------------------
46 | | Application Locale Configuration
47 | |--------------------------------------------------------------------------
48 | |
49 | | The application locale determines the default locale that will be used
50 | | by the translation service provider. You are free to set this value
51 | | to any of the locales which will be supported by the application.
52 | |
53 | */
54 |
55 | 'locale' => 'en',
56 |
57 | /*
58 | |--------------------------------------------------------------------------
59 | | Encryption Key
60 | |--------------------------------------------------------------------------
61 | |
62 | | This key is used by the Illuminate encrypter service and should be set
63 | | to a random, 32 character string, otherwise these encrypted strings
64 | | will not be safe. Please do this before deploying an application!
65 | |
66 | */
67 |
68 | 'key' => 'YbezitZ1Xj6uKRd9gWpule7Oc7rJg4E8',
69 |
70 | /*
71 | |--------------------------------------------------------------------------
72 | | Autoloaded Service Providers
73 | |--------------------------------------------------------------------------
74 | |
75 | | The service providers listed here will be automatically loaded on the
76 | | request to your application. Feel free to add your own services to
77 | | this array to grant expanded functionality to your applications.
78 | |
79 | */
80 |
81 | 'providers' => array(
82 |
83 | 'Illuminate\Foundation\Providers\ArtisanServiceProvider',
84 | 'Illuminate\Auth\AuthServiceProvider',
85 | 'Illuminate\Cache\CacheServiceProvider',
86 | 'Illuminate\Foundation\Providers\CommandCreatorServiceProvider',
87 | 'Illuminate\Session\CommandsServiceProvider',
88 | 'Illuminate\Foundation\Providers\ComposerServiceProvider',
89 | 'Illuminate\Routing\ControllerServiceProvider',
90 | 'Illuminate\Cookie\CookieServiceProvider',
91 | 'Illuminate\Database\DatabaseServiceProvider',
92 | 'Illuminate\Encryption\EncryptionServiceProvider',
93 | 'Illuminate\Filesystem\FilesystemServiceProvider',
94 | 'Illuminate\Hashing\HashServiceProvider',
95 | 'Illuminate\Html\HtmlServiceProvider',
96 | 'Illuminate\Foundation\Providers\KeyGeneratorServiceProvider',
97 | 'Illuminate\Log\LogServiceProvider',
98 | 'Illuminate\Mail\MailServiceProvider',
99 | 'Illuminate\Foundation\Providers\MaintenanceServiceProvider',
100 | 'Illuminate\Database\MigrationServiceProvider',
101 | 'Illuminate\Foundation\Providers\OptimizeServiceProvider',
102 | 'Illuminate\Pagination\PaginationServiceProvider',
103 | 'Illuminate\Foundation\Providers\PublisherServiceProvider',
104 | 'Illuminate\Queue\QueueServiceProvider',
105 | 'Illuminate\Redis\RedisServiceProvider',
106 | 'Illuminate\Auth\Reminders\ReminderServiceProvider',
107 | 'Illuminate\Foundation\Providers\RouteListServiceProvider',
108 | 'Illuminate\Database\SeedServiceProvider',
109 | 'Illuminate\Foundation\Providers\ServerServiceProvider',
110 | 'Illuminate\Session\SessionServiceProvider',
111 | 'Illuminate\Foundation\Providers\TinkerServiceProvider',
112 | 'Illuminate\Translation\TranslationServiceProvider',
113 | 'Illuminate\Validation\ValidationServiceProvider',
114 | 'Illuminate\View\ViewServiceProvider',
115 | 'Illuminate\Workbench\WorkbenchServiceProvider',
116 | 'Illuminate\Remote\RemoteServiceProvider',
117 |
118 | 'Wardrobe\Core\WardrobeServiceProvider',
119 |
120 | ),
121 |
122 | /*
123 | |--------------------------------------------------------------------------
124 | | Service Provider Manifest
125 | |--------------------------------------------------------------------------
126 | |
127 | | The service provider manifest is used by Laravel to lazy load service
128 | | providers which are not needed for each request, as well to keep a
129 | | list of all of the services. Here, you may set its storage spot.
130 | |
131 | */
132 |
133 | 'manifest' => storage_path().'/meta',
134 |
135 | /*
136 | |--------------------------------------------------------------------------
137 | | Class Aliases
138 | |--------------------------------------------------------------------------
139 | |
140 | | This array of class aliases will be registered when this application
141 | | is started. However, feel free to register as many as you wish as
142 | | the aliases are "lazy" loaded so they don't hinder performance.
143 | |
144 | */
145 |
146 | 'aliases' => array(
147 |
148 | 'App' => 'Illuminate\Support\Facades\App',
149 | 'Artisan' => 'Illuminate\Support\Facades\Artisan',
150 | 'Auth' => 'Illuminate\Support\Facades\Auth',
151 | 'Blade' => 'Illuminate\Support\Facades\Blade',
152 | 'Cache' => 'Illuminate\Support\Facades\Cache',
153 | 'ClassLoader' => 'Illuminate\Support\ClassLoader',
154 | 'Config' => 'Illuminate\Support\Facades\Config',
155 | 'Controller' => 'Illuminate\Routing\Controller',
156 | 'Cookie' => 'Illuminate\Support\Facades\Cookie',
157 | 'Crypt' => 'Illuminate\Support\Facades\Crypt',
158 | 'DB' => 'Illuminate\Support\Facades\DB',
159 | 'Eloquent' => 'Illuminate\Database\Eloquent\Model',
160 | 'Event' => 'Illuminate\Support\Facades\Event',
161 | 'File' => 'Illuminate\Support\Facades\File',
162 | 'Form' => 'Illuminate\Support\Facades\Form',
163 | 'Hash' => 'Illuminate\Support\Facades\Hash',
164 | 'HTML' => 'Illuminate\Support\Facades\HTML',
165 | 'Input' => 'Illuminate\Support\Facades\Input',
166 | 'Lang' => 'Illuminate\Support\Facades\Lang',
167 | 'Log' => 'Illuminate\Support\Facades\Log',
168 | 'Mail' => 'Illuminate\Support\Facades\Mail',
169 | 'Paginator' => 'Illuminate\Support\Facades\Paginator',
170 | 'Password' => 'Illuminate\Support\Facades\Password',
171 | 'Queue' => 'Illuminate\Support\Facades\Queue',
172 | 'Redirect' => 'Illuminate\Support\Facades\Redirect',
173 | 'Redis' => 'Illuminate\Support\Facades\Redis',
174 | 'Request' => 'Illuminate\Support\Facades\Request',
175 | 'Response' => 'Illuminate\Support\Facades\Response',
176 | 'Route' => 'Illuminate\Support\Facades\Route',
177 | 'Schema' => 'Illuminate\Support\Facades\Schema',
178 | 'Seeder' => 'Illuminate\Database\Seeder',
179 | 'Session' => 'Illuminate\Support\Facades\Session',
180 | 'Str' => 'Illuminate\Support\Str',
181 | 'URL' => 'Illuminate\Support\Facades\URL',
182 | 'Validator' => 'Illuminate\Support\Facades\Validator',
183 | 'View' => 'Illuminate\Support\Facades\View',
184 | 'SSH' => 'Illuminate\Support\Facades\SSH',
185 | 'Wardrobe' => 'Wardrobe\Core\Facades\WardrobeFacade',
186 |
187 | ),
188 |
189 | );
190 |
--------------------------------------------------------------------------------