Skip to content

Commit a188d62

Browse files
committed
initial commit of laravel!
0 parents  commit a188d62

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+6942
-0
lines changed

application/cache/.gitignore

Whitespace-only changes.

application/config/application.php

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
<?php
2+
3+
return array(
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Application URL
8+
|--------------------------------------------------------------------------
9+
|
10+
| The URL used to access your application. The trailing slash is optional.
11+
|
12+
| Note: Remove "index.php" from this URL when using mod_rewrite.
13+
|
14+
*/
15+
16+
'url' => 'http://localhost/index.php',
17+
18+
/*
19+
|--------------------------------------------------------------------------
20+
| Application Language
21+
|--------------------------------------------------------------------------
22+
|
23+
| The default language of your application. This language will be used by
24+
| default by the Lang library when doing string localization.
25+
|
26+
| If you are not using the Lang library, this option isn't really important.
27+
|
28+
*/
29+
30+
'language' => 'en',
31+
32+
/*
33+
|--------------------------------------------------------------------------
34+
| Application Timezone
35+
|--------------------------------------------------------------------------
36+
|
37+
| The default timezone of your application. This timezone will be used when
38+
| Laravel needs a date, such as when writing to a log file.
39+
|
40+
*/
41+
42+
'timezone' => 'UTC',
43+
44+
/*
45+
|--------------------------------------------------------------------------
46+
| Application Key
47+
|--------------------------------------------------------------------------
48+
|
49+
| Your application key should be a 32 character string that is totally
50+
| random and secret. This key is used by the encryption class to generate
51+
| secure, encrypted strings.
52+
|
53+
| If you will not be using the encryption class, this doesn't matter.
54+
|
55+
*/
56+
57+
'key' => '',
58+
59+
/*
60+
|--------------------------------------------------------------------------
61+
| Class Aliases
62+
|--------------------------------------------------------------------------
63+
|
64+
| Here, you can specify any class aliases that you would like registered
65+
| when Laravel loads. Aliases are lazy-loaded, so add as many as you want.
66+
|
67+
| We have already setup a few to make your life easier.
68+
|
69+
*/
70+
71+
'aliases' => array(
72+
'Auth' => 'System\\Auth',
73+
'Benchmark' => 'System\\Benchmark',
74+
'Cache' => 'System\\Cache',
75+
'Config' => 'System\\Config',
76+
'Cookie' => 'System\\Cookie',
77+
'Crypt' => 'System\\Crypt',
78+
'Date' => 'System\\Date',
79+
'DB' => 'System\\DB',
80+
'Download' => 'System\\Download',
81+
'Eloquent' => 'System\\DB\\Eloquent',
82+
'Form' => 'System\\Form',
83+
'Hash' => 'System\\Hash',
84+
'HTML' => 'System\\HTML',
85+
'Inflector' => 'System\\Inflector',
86+
'Input' => 'System\\Input',
87+
'Lang' => 'System\\Lang',
88+
'URL' => 'System\\URL',
89+
'Redirect' => 'System\\Redirect',
90+
'Request' => 'System\\Request',
91+
'Response' => 'System\\Response',
92+
'Session' => 'System\\Session',
93+
'Str' => 'System\\Str',
94+
'Text' => 'System\\Text',
95+
'View' => 'System\View',
96+
),
97+
98+
);

application/config/auth.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
3+
return array(
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Authentication Model
8+
|--------------------------------------------------------------------------
9+
|
10+
| This model will be used by the Auth class when retrieving the users of
11+
| your application. Feel free to change it to the name of your user model.
12+
|
13+
| Note: The authentication model must be an Eloquent model.
14+
|
15+
*/
16+
17+
'model' => 'User',
18+
19+
/*
20+
|--------------------------------------------------------------------------
21+
| Authentication Username
22+
|--------------------------------------------------------------------------
23+
|
24+
| The authentication username is the column on your users table that
25+
| is considered the username of the user. Typically, this is either "email"
26+
| or "username". However, you are free to make it whatever you wish.
27+
|
28+
*/
29+
30+
'username' => 'email',
31+
32+
);

application/config/cache.php

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<?php
2+
3+
return array(
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Cache Driver
8+
|--------------------------------------------------------------------------
9+
|
10+
| The name of the default cache driver for your application.
11+
|
12+
| Caching can be used to increase the performance of your application
13+
| by storing commonly accessed data in memory or in a file.
14+
|
15+
| Supported Drivers: 'file', 'memcached'.
16+
|
17+
*/
18+
19+
'driver' => 'file',
20+
21+
/*
22+
|--------------------------------------------------------------------------
23+
| Memcached Servers
24+
|--------------------------------------------------------------------------
25+
|
26+
| Here you can define the Memcached servers used by your application.
27+
|
28+
| Memcached is a free and open source, high-performance, distributed memory
29+
| object caching system, generic in nature, but intended for use in speeding
30+
| up dynamic web applications by alleviating database load.
31+
|
32+
| For more information about Memcached, check out: http://memcached.org
33+
|
34+
*/
35+
36+
'servers' => array(
37+
array('host' => '127.0.0.1', 'port' => 11211, 'weight' => 100),
38+
),
39+
40+
/*
41+
|--------------------------------------------------------------------------
42+
| Memcached Key
43+
|--------------------------------------------------------------------------
44+
|
45+
| This key will be prepended to items stored using Memcached to avoid
46+
| collisions with other applications on the server.
47+
|
48+
*/
49+
50+
'key' => 'laravel',
51+
52+
);

application/config/db.php

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<?php
2+
3+
return array(
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Default Database Connection
8+
|--------------------------------------------------------------------------
9+
|
10+
| The name of your default database connection.
11+
|
12+
| This connection will be used by default for all database operations
13+
| unless a different connection is specified when performing the operation.
14+
|
15+
*/
16+
17+
'default' => 'sqlite',
18+
19+
/*
20+
|--------------------------------------------------------------------------
21+
| Database Connections
22+
|--------------------------------------------------------------------------
23+
|
24+
| Here you can define all of the databases used by your application.
25+
|
26+
| Supported Drivers: 'mysql', 'pgsql', 'sqlite'.
27+
|
28+
| Note: When using the SQLite driver, the path and "sqlite" extention will
29+
| be added automatically. You only need to specify the database name.
30+
|
31+
*/
32+
33+
'connections' => array(
34+
35+
'sqlite' => array(
36+
'driver' => 'sqlite',
37+
'database' => 'application',
38+
),
39+
40+
'mysql' => array(
41+
'driver' => 'mysql',
42+
'host' => 'localhost',
43+
'database' => 'database',
44+
'username' => 'root',
45+
'password' => 'password',
46+
'charset' => 'utf8',
47+
),
48+
49+
'pgsql' => array(
50+
'driver' => 'pgsql',
51+
'host' => 'localhost',
52+
'database' => 'database',
53+
'username' => 'root',
54+
'password' => 'password',
55+
'charset' => 'utf8',
56+
),
57+
58+
),
59+
60+
);

application/config/error.php

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
3+
return array(
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Error Detail
8+
|--------------------------------------------------------------------------
9+
|
10+
| Would you like detailed error messages?
11+
|
12+
| If your application is in production, consider turning off error details
13+
| for enhanced security and user experience.
14+
|
15+
*/
16+
17+
'detail' => true,
18+
19+
/*
20+
|--------------------------------------------------------------------------
21+
| Error Logging
22+
|--------------------------------------------------------------------------
23+
|
24+
| Would you like errors to be logged? Error logging can be extremely
25+
| helpful when debugging a production application.
26+
|
27+
| Note: When error logging is enabled, errors will be logged even when
28+
| error detail is disabled.
29+
|
30+
*/
31+
32+
'log' => false,
33+
34+
);

application/config/session.php

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
<?php
2+
3+
return array(
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Session Driver
8+
|--------------------------------------------------------------------------
9+
|
10+
| The name of the session driver for your application.
11+
|
12+
| Since HTTP is stateless, sessions are used to maintain "state" across
13+
| multiple requests from the same user of your application.
14+
|
15+
| Supported Drivers: 'file', 'db', 'memcached'.
16+
|
17+
*/
18+
19+
'driver' => '',
20+
21+
/*
22+
|--------------------------------------------------------------------------
23+
| Session Database
24+
|--------------------------------------------------------------------------
25+
|
26+
| The database table on which the session should be stored.
27+
|
28+
| If you are not using database based sessions, don't worry about this.
29+
|
30+
*/
31+
32+
'table' => 'sessions',
33+
34+
/*
35+
|--------------------------------------------------------------------------
36+
| Session Lifetime
37+
|--------------------------------------------------------------------------
38+
|
39+
| How many minutes can a session be idle before expiring?
40+
|
41+
*/
42+
43+
'lifetime' => 60,
44+
45+
/*
46+
|--------------------------------------------------------------------------
47+
| Session Expiration On Close
48+
|--------------------------------------------------------------------------
49+
|
50+
| Should the session expire when the user's web browser closes?
51+
|
52+
*/
53+
54+
'expire_on_close' => false,
55+
56+
/*
57+
|--------------------------------------------------------------------------
58+
| Session Cookie Path
59+
|--------------------------------------------------------------------------
60+
|
61+
| The path for which the session cookie is available.
62+
|
63+
*/
64+
65+
'path' => '/',
66+
67+
/*
68+
|--------------------------------------------------------------------------
69+
| Session Cookie Domain
70+
|--------------------------------------------------------------------------
71+
|
72+
| The domain for which the session cookie is available.
73+
|
74+
*/
75+
76+
'domain' => null,
77+
78+
/*
79+
|--------------------------------------------------------------------------
80+
| Session Cookie HTTPS
81+
|--------------------------------------------------------------------------
82+
|
83+
| Should the session cookie only be transported over HTTPS?
84+
|
85+
*/
86+
87+
'https' => false,
88+
89+
);

application/db/.gitignore

Whitespace-only changes.

0 commit comments

Comments
 (0)