From 5ff6ea5bcc9e56586d26faed105d000247061cf7 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sun, 26 Feb 2012 22:25:47 -0600 Subject: [PATCH 1/3] updating readme. Signed-off-by: Taylor Otwell --- readme.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 71cf2560..8f364516 100644 --- a/readme.md +++ b/readme.md @@ -2,4 +2,25 @@ ## Laravel - A PHP Framework For Web Artisans Laravel is a clean and classy framework for PHP web development. Freeing you from spaghetti code, Laravel helps you create wonderful applications using simple, expressive syntax. Development should be a creative experience that you enjoy, not something that is painful. Enjoy the fresh air. -### [Official Website & Documentation](http://laravel.com) \ No newline at end of file +### [Official Website & Documentation](http://laravel.com) + +### Feature Overview + +- Simple routing using Closures or controllers. +- Views and templating. +- Driver based session and cache handling. +- Database abstraction with query builder. +- Authentication. +- Migrations. +- PHPUnit Integration. +- A lot more. + +### Contributing to Laravel + +Contributions are encouraged and welcome; however, please review the Developer Certificate of Origin in the "license.txt" file included in the repository. All commits must be signed off using the "-s" switch. + + git commit -s -m "thie commit will be signed off automatically!" + +### License + +Laravel is open-sourced software licensed under the MIT License. \ No newline at end of file From 714e2f8c108bc1015a87dcfbebc6c2eb2b17baf6 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sun, 26 Feb 2012 22:27:17 -0600 Subject: [PATCH 2/3] updating readme. Signed-off-by: Taylor Otwell --- readme.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/readme.md b/readme.md index 8f364516..72fc693b 100644 --- a/readme.md +++ b/readme.md @@ -15,6 +15,13 @@ ### Feature Overview - PHPUnit Integration. - A lot more. +### "Hello World" + + Route::get('/', function() + { + return "Hello World!": + }); + ### Contributing to Laravel Contributions are encouraged and welcome; however, please review the Developer Certificate of Origin in the "license.txt" file included in the repository. All commits must be signed off using the "-s" switch. From 37ea2c8221eab85cacd26c9d2d004e8b9bea0037 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sun, 26 Feb 2012 22:29:14 -0600 Subject: [PATCH 3/3] updating readme. Signed-off-by: Taylor Otwell --- readme.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 72fc693b..da5fb487 100644 --- a/readme.md +++ b/readme.md @@ -15,13 +15,28 @@ ### Feature Overview - PHPUnit Integration. - A lot more. -### "Hello World" +### A Few Examples + +**Hello World:** Route::get('/', function() { return "Hello World!": }); +**Passing Data To Views:** + + Route::get('user/(:num)', function($id) + { + $user = DB::table('users')->find($id); + + return View::make('profile')->with('user', $user); + }); + +**Redirecting & Flashing Data To The Session:** + + return Redirect::to('profile')->with('message', 'Welcome Back!'); + ### Contributing to Laravel Contributions are encouraged and welcome; however, please review the Developer Certificate of Origin in the "license.txt" file included in the repository. All commits must be signed off using the "-s" switch.