Permalink
Browse files

initial commit of laravel!

  • Loading branch information...
0 parents commit a188d62105532fcf2a2839309fb71b862d904612 @taylorotwell taylorotwell committed Jun 9, 2011
Showing with 6,942 additions and 0 deletions.
  1. 0 application/cache/.gitignore
  2. +98 −0 application/config/application.php
  3. +32 −0 application/config/auth.php
  4. +52 −0 application/config/cache.php
  5. +60 −0 application/config/db.php
  6. +34 −0 application/config/error.php
  7. +89 −0 application/config/session.php
  8. 0 application/db/.gitignore
  9. +41 −0 application/filters.php
  10. 0 application/lang/en/.gitignore
  11. 0 application/logs/.gitignore
  12. 0 application/models/.gitignore
  13. 0 application/packages/.gitignore
  14. +25 −0 application/routes.php
  15. 0 application/sessions/.gitignore
  16. +56 −0 application/views/error/404.php
  17. +56 −0 application/views/error/500.php
  18. +77 −0 application/views/home/index.php
  19. +19 −0 license.txt
  20. +5 −0 public/.htaccess
  21. BIN public/favicon.ico
  22. +133 −0 public/index.php
  23. +135 −0 system/auth.php
  24. +49 −0 system/benchmark.php
  25. +47 −0 system/cache.php
  26. +40 −0 system/cache/driver.php
  27. +95 −0 system/cache/driver/file.php
  28. +80 −0 system/cache/driver/memcached.php
  29. +26 −0 system/cache/factory.php
  30. +118 −0 system/config.php
  31. +78 −0 system/cookie.php
  32. +132 −0 system/crypt.php
  33. +111 −0 system/db.php
  34. +58 −0 system/db/connector.php
  35. +353 −0 system/db/eloquent.php
  36. +26 −0 system/db/eloquent/factory.php
  37. +272 −0 system/db/eloquent/hydrate.php
  38. +24 −0 system/db/eloquent/meta.php
  39. +132 −0 system/db/eloquent/relate.php
  40. +66 −0 system/db/eloquent/warehouse.php
  41. +593 −0 system/db/query.php
  42. +116 −0 system/db/query/compiler.php
  43. +145 −0 system/download.php
  44. +156 −0 system/error.php
  45. +51 −0 system/filter.php
  46. +327 −0 system/form.php
  47. +52 −0 system/hash.php
  48. +275 −0 system/html.php
  49. +230 −0 system/inflector.php
  50. +135 −0 system/input.php
  51. +178 −0 system/lang.php
  52. +50 −0 system/loader.php
  53. +102 −0 system/log.php
  54. +56 −0 system/memcached.php
  55. +66 −0 system/redirect.php
  56. +136 −0 system/request.php
  57. +252 −0 system/response.php
  58. +85 −0 system/route.php
  59. +148 −0 system/router.php
  60. +281 −0 system/session.php
  61. +37 −0 system/session/driver.php
  62. +78 −0 system/session/driver/db.php
  63. +64 −0 system/session/driver/file.php
  64. +49 −0 system/session/driver/memcached.php
  65. +29 −0 system/session/factory.php
  66. +85 −0 system/str.php
  67. +146 −0 system/text.php
  68. +132 −0 system/url.php
  69. +191 −0 system/view.php
  70. +78 −0 system/views/error/exception.php
No changes.
@@ -0,0 +1,98 @@
+<?php
+
+return array(
+
+ /*
+ |--------------------------------------------------------------------------
+ | Application URL
+ |--------------------------------------------------------------------------
+ |
+ | The URL used to access your application. The trailing slash is optional.
+ |
+ | Note: Remove "index.php" from this URL when using mod_rewrite.
+ |
+ */
+
+ 'url' => 'http://localhost/index.php',
+
+ /*
+ |--------------------------------------------------------------------------
+ | Application Language
+ |--------------------------------------------------------------------------
+ |
+ | The default language of your application. This language will be used by
+ | default by the Lang library when doing string localization.
+ |
+ | If you are not using the Lang library, this option isn't really important.
+ |
+ */
+
+ 'language' => 'en',
+
+ /*
+ |--------------------------------------------------------------------------
+ | Application Timezone
+ |--------------------------------------------------------------------------
+ |
+ | The default timezone of your application. This timezone will be used when
+ | Laravel needs a date, such as when writing to a log file.
+ |
+ */
+
+ 'timezone' => 'UTC',
+
+ /*
+ |--------------------------------------------------------------------------
+ | Application Key
+ |--------------------------------------------------------------------------
+ |
+ | Your application key should be a 32 character string that is totally
+ | random and secret. This key is used by the encryption class to generate
+ | secure, encrypted strings.
+ |
+ | If you will not be using the encryption class, this doesn't matter.
+ |
+ */
+
+ 'key' => '',
+
+ /*
+ |--------------------------------------------------------------------------
+ | Class Aliases
+ |--------------------------------------------------------------------------
+ |
+ | Here, you can specify any class aliases that you would like registered
+ | when Laravel loads. Aliases are lazy-loaded, so add as many as you want.
+ |
+ | We have already setup a few to make your life easier.
+ |
+ */
+
+ 'aliases' => array(
+ 'Auth' => 'System\\Auth',
+ 'Benchmark' => 'System\\Benchmark',
+ 'Cache' => 'System\\Cache',
+ 'Config' => 'System\\Config',
+ 'Cookie' => 'System\\Cookie',
+ 'Crypt' => 'System\\Crypt',
+ 'Date' => 'System\\Date',
+ 'DB' => 'System\\DB',
+ 'Download' => 'System\\Download',
+ 'Eloquent' => 'System\\DB\\Eloquent',
+ 'Form' => 'System\\Form',
+ 'Hash' => 'System\\Hash',
+ 'HTML' => 'System\\HTML',
+ 'Inflector' => 'System\\Inflector',
+ 'Input' => 'System\\Input',
+ 'Lang' => 'System\\Lang',
+ 'URL' => 'System\\URL',
+ 'Redirect' => 'System\\Redirect',
+ 'Request' => 'System\\Request',
+ 'Response' => 'System\\Response',
+ 'Session' => 'System\\Session',
+ 'Str' => 'System\\Str',
+ 'Text' => 'System\\Text',
+ 'View' => 'System\View',
+ ),
+
+);
@@ -0,0 +1,32 @@
+<?php
+
+return array(
+
+ /*
+ |--------------------------------------------------------------------------
+ | Authentication Model
+ |--------------------------------------------------------------------------
+ |
+ | This model will be used by the Auth class when retrieving the users of
+ | your application. Feel free to change it to the name of your user model.
+ |
+ | Note: The authentication model must be an Eloquent model.
+ |
+ */
+
+ 'model' => 'User',
+
+ /*
+ |--------------------------------------------------------------------------
+ | Authentication Username
+ |--------------------------------------------------------------------------
+ |
+ | The authentication username is the column on your users table that
+ | is considered the username of the user. Typically, this is either "email"
+ | or "username". However, you are free to make it whatever you wish.
+ |
+ */
+
+ 'username' => 'email',
+
+);
@@ -0,0 +1,52 @@
+<?php
+
+return array(
+
+ /*
+ |--------------------------------------------------------------------------
+ | Cache Driver
+ |--------------------------------------------------------------------------
+ |
+ | The name of the default cache driver for your application.
+ |
+ | Caching can be used to increase the performance of your application
+ | by storing commonly accessed data in memory or in a file.
+ |
+ | Supported Drivers: 'file', 'memcached'.
+ |
+ */
+
+ 'driver' => 'file',
+
+ /*
+ |--------------------------------------------------------------------------
+ | Memcached Servers
+ |--------------------------------------------------------------------------
+ |
+ | Here you can define the Memcached servers used by your application.
+ |
+ | Memcached is a free and open source, high-performance, distributed memory
+ | object caching system, generic in nature, but intended for use in speeding
+ | up dynamic web applications by alleviating database load.
+ |
+ | For more information about Memcached, check out: http://memcached.org
+ |
+ */
+
+ 'servers' => array(
+ array('host' => '127.0.0.1', 'port' => 11211, 'weight' => 100),
+ ),
+
+ /*
+ |--------------------------------------------------------------------------
+ | Memcached Key
+ |--------------------------------------------------------------------------
+ |
+ | This key will be prepended to items stored using Memcached to avoid
+ | collisions with other applications on the server.
+ |
+ */
+
+ 'key' => 'laravel',
+
+);
@@ -0,0 +1,60 @@
+<?php
+
+return array(
+
+ /*
+ |--------------------------------------------------------------------------
+ | Default Database Connection
+ |--------------------------------------------------------------------------
+ |
+ | The name of your default database connection.
+ |
+ | This connection will be used by default for all database operations
+ | unless a different connection is specified when performing the operation.
+ |
+ */
+
+ 'default' => 'sqlite',
+
+ /*
+ |--------------------------------------------------------------------------
+ | Database Connections
+ |--------------------------------------------------------------------------
+ |
+ | Here you can define all of the databases used by your application.
+ |
+ | Supported Drivers: 'mysql', 'pgsql', 'sqlite'.
+ |
+ | Note: When using the SQLite driver, the path and "sqlite" extention will
+ | be added automatically. You only need to specify the database name.
+ |
+ */
+
+ 'connections' => array(
+
+ 'sqlite' => array(
+ 'driver' => 'sqlite',
+ 'database' => 'application',
+ ),
+
+ 'mysql' => array(
+ 'driver' => 'mysql',
+ 'host' => 'localhost',
+ 'database' => 'database',
+ 'username' => 'root',
+ 'password' => 'password',
+ 'charset' => 'utf8',
+ ),
+
+ 'pgsql' => array(
+ 'driver' => 'pgsql',
+ 'host' => 'localhost',
+ 'database' => 'database',
+ 'username' => 'root',
+ 'password' => 'password',
+ 'charset' => 'utf8',
+ ),
+
+ ),
+
+);
@@ -0,0 +1,34 @@
+<?php
+
+return array(
+
+ /*
+ |--------------------------------------------------------------------------
+ | Error Detail
+ |--------------------------------------------------------------------------
+ |
+ | Would you like detailed error messages?
+ |
+ | If your application is in production, consider turning off error details
+ | for enhanced security and user experience.
+ |
+ */
+
+ 'detail' => true,
+
+ /*
+ |--------------------------------------------------------------------------
+ | Error Logging
+ |--------------------------------------------------------------------------
+ |
+ | Would you like errors to be logged? Error logging can be extremely
+ | helpful when debugging a production application.
+ |
+ | Note: When error logging is enabled, errors will be logged even when
+ | error detail is disabled.
+ |
+ */
+
+ 'log' => false,
+
+);
@@ -0,0 +1,89 @@
+<?php
+
+return array(
+
+ /*
+ |--------------------------------------------------------------------------
+ | Session Driver
+ |--------------------------------------------------------------------------
+ |
+ | The name of the session driver for your application.
+ |
+ | Since HTTP is stateless, sessions are used to maintain "state" across
+ | multiple requests from the same user of your application.
+ |
+ | Supported Drivers: 'file', 'db', 'memcached'.
+ |
+ */
+
+ 'driver' => '',
+
+ /*
+ |--------------------------------------------------------------------------
+ | Session Database
+ |--------------------------------------------------------------------------
+ |
+ | The database table on which the session should be stored.
+ |
+ | If you are not using database based sessions, don't worry about this.
+ |
+ */
+
+ 'table' => 'sessions',
+
+ /*
+ |--------------------------------------------------------------------------
+ | Session Lifetime
+ |--------------------------------------------------------------------------
+ |
+ | How many minutes can a session be idle before expiring?
+ |
+ */
+
+ 'lifetime' => 60,
+
+ /*
+ |--------------------------------------------------------------------------
+ | Session Expiration On Close
+ |--------------------------------------------------------------------------
+ |
+ | Should the session expire when the user's web browser closes?
+ |
+ */
+
+ 'expire_on_close' => false,
+
+ /*
+ |--------------------------------------------------------------------------
+ | Session Cookie Path
+ |--------------------------------------------------------------------------
+ |
+ | The path for which the session cookie is available.
+ |
+ */
+
+ 'path' => '/',
+
+ /*
+ |--------------------------------------------------------------------------
+ | Session Cookie Domain
+ |--------------------------------------------------------------------------
+ |
+ | The domain for which the session cookie is available.
+ |
+ */
+
+ 'domain' => null,
+
+ /*
+ |--------------------------------------------------------------------------
+ | Session Cookie HTTPS
+ |--------------------------------------------------------------------------
+ |
+ | Should the session cookie only be transported over HTTPS?
+ |
+ */
+
+ 'https' => false,
+
+);
No changes.
Oops, something went wrong.

6 comments on commit a188d62

@howtomakeaturn

awesome

@asilbalaban

big commit

@sebascar

Where it all started.... :-) 👍 THANKS!!

@bobrocha

Where can I find the second commit and further commits to see the transition?

@bobrocha

Thanks! I am confused. What is the difference between laravel/laravel and the laraverl/framework?

@bobrocha

Thanks

Please sign in to comment.