diff --git a/application/config/.gitignore b/application/config/.gitignore deleted file mode 100644 index aa5195c6..00000000 --- a/application/config/.gitignore +++ /dev/null @@ -1 +0,0 @@ -local/* \ No newline at end of file diff --git a/application/config/application.php b/application/config/application.php index 049123e9..2a6656bd 100644 --- a/application/config/application.php +++ b/application/config/application.php @@ -63,6 +63,42 @@ 'timezone' => 'UTC', + /* + |-------------------------------------------------------------------------- + | Auto-Loaded Packages + |-------------------------------------------------------------------------- + | + | The packages that should be auto-loaded each time Laravel handles + | a request. These should generally be packages that you use on almost + | every request to your application. + | + | Each package specified here will be bootstrapped and can be conveniently + | used by your application's routes, models, and libraries. + | + | Note: The package names in this array should correspond to a package + | directory in application/packages. + | + */ + + 'packages' => array(), + + /* + |-------------------------------------------------------------------------- + | Active Modules + |-------------------------------------------------------------------------- + | + | Modules are a convenient way to organize your application into logical + | components. Each module may have its own libraries, models, routes, + | views, language files, and configuration. + | + | Here you may specify which modules are "active" for your application. + | This simply gives Laravel an easy way to know which directories to + | check when auto-loading your classes, routes, and views. + | + */ + + 'modules' => array(), + /* |-------------------------------------------------------------------------- | Application Key diff --git a/application/config/error.php b/application/config/error.php index 749bc4cb..f186ca89 100644 --- a/application/config/error.php +++ b/application/config/error.php @@ -50,7 +50,7 @@ | */ - 'logger' => function($severity, $message) + 'logger' => function($severity, $message, $trace) { File::append(STORAGE_PATH.'log.txt', date('Y-m-d H:i:s').' '.$severity.' - '.$message.PHP_EOL); }, diff --git a/application/config/local/application.php b/application/config/local/application.php new file mode 100644 index 00000000..dd6e7635 --- /dev/null +++ b/application/config/local/application.php @@ -0,0 +1,7 @@ + 'http://localhost/laravel/public' + +); \ No newline at end of file diff --git a/application/config/package.php b/application/config/package.php deleted file mode 100644 index 51a66147..00000000 --- a/application/config/package.php +++ /dev/null @@ -1,24 +0,0 @@ - array(), - -); \ No newline at end of file diff --git a/application/config/view.php b/application/config/view.php deleted file mode 100644 index e4059217..00000000 --- a/application/config/view.php +++ /dev/null @@ -1,27 +0,0 @@ - array( - - 'home' => 'home/index', - - ), - -); \ No newline at end of file diff --git a/application/filters.php b/application/filters.php index f867d63f..01538b34 100644 --- a/application/filters.php +++ b/application/filters.php @@ -46,13 +46,13 @@ 'before' => function() { - // Do stuff before every request is executed. + // Do stuff before every request to your application. }, 'after' => function($response) { - // Do stuff after every request is executed. + // Do stuff after every request to your application. }, diff --git a/application/libraries/.gitignore b/application/libraries/.gitignore deleted file mode 100644 index e69de29b..00000000 diff --git a/application/models/.gitignore b/application/models/.gitignore deleted file mode 100644 index e69de29b..00000000 diff --git a/application/models/entities/user.php b/application/models/entities/user.php new file mode 100644 index 00000000..98762d96 --- /dev/null +++ b/application/models/entities/user.php @@ -0,0 +1,19 @@ +has_many('Entities\\Friend'); + } + + public function roles() + { + return $this->has_and_belongs_to_many('Role'); + } + +} + +class Friend extends \Eloquent {} \ No newline at end of file diff --git a/application/models/role.php b/application/models/role.php new file mode 100644 index 00000000..e3002913 --- /dev/null +++ b/application/models/role.php @@ -0,0 +1,3 @@ + function() { - return View::make('home/index'); + return View::make('home.index'); }, ); \ No newline at end of file diff --git a/application/storage/cache/.gitignore b/application/storage/cache/.gitignore deleted file mode 100644 index e69de29b..00000000 diff --git a/application/storage/db/.gitignore b/application/storage/db/.gitignore deleted file mode 100644 index 6a91a439..00000000 --- a/application/storage/db/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*.sqlite \ No newline at end of file diff --git a/application/storage/log.txt b/application/storage/log.txt deleted file mode 100644 index e69de29b..00000000 diff --git a/application/storage/sessions/.gitignore b/application/storage/sessions/.gitignore deleted file mode 100644 index e69de29b..00000000 diff --git a/application/composers.php b/application/views/composers.php similarity index 81% rename from application/composers.php rename to application/views/composers.php index cc8cc33e..81f55ee1 100644 --- a/application/composers.php +++ b/application/views/composers.php @@ -12,8 +12,7 @@ | footer partial each time the view is created. | | The composer will receive an instance of the view being created, and is - | free to modify the view however you wish. Be sure to always return the - | view instance at the end of your composer. + | free to modify the view however you wish. | | For more information, check out: http://laravel.com/docs/start/views#composers | @@ -21,7 +20,7 @@ 'home/index' => function($view) { - return $view; + // Do anything you want to the view. }, ); \ No newline at end of file diff --git a/application/views/home/index.php b/application/views/home/index.php index c3b7f11d..8d99d250 100644 --- a/application/views/home/index.php +++ b/application/views/home/index.php @@ -84,7 +84,7 @@