added module support!

This commit is contained in:
Taylor Otwell
2011-08-03 22:10:07 -05:00
parent 927c522e67
commit f0f3dffc11
34 changed files with 363 additions and 203 deletions

View File

@@ -6,32 +6,22 @@ Laravel is a clean and classy framework for PHP web development. Freeing you fro
Stay true to the web with RESTful routing:
```php
<?php
'GET /' => function()
{
return View::make('home/index');
}
```
'GET /' => function()
{
return View::make('home/index');
}
Redirect to a named route and flash something to the session:
```php
<?php return Redirect::to_profile()->with('message', 'Welcome Back!');
```
return Redirect::to_profile()->with('message', 'Welcome Back!');
Retrieve a blog post and eagerly load the comments using Eloquent ORM:
```php
<?php $posts = Post::with('comments')->find(1);
```
$posts = Post::with('comments')->find(1);
Get input from the previous request to re-populate a form:
```php
<?php echo Input::old('email');
```
echo Input::old('email');
### Ready To Learn More?