Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

Commit

Permalink
update readme with new features
Browse files Browse the repository at this point in the history
  • Loading branch information
svenluijten committed Jun 3, 2016
1 parent 7963968 commit ecae282
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ Next, add the `ArtisanViewServiceProvider` to your `providers` array in `config/
];
```

If you want to only load this service provider in a specific environment (like `local` or `development`),
take a look at [sven/env-providers](https://github.com/svenluijten/env-providers).

## Usage
If you now run `php artisan` you can see two new commands:
- `make:view`
Expand All @@ -63,10 +66,21 @@ $ php artisan make:view index --extension=html
# Extend an existing view
$ php artisan make:view index --extends=app

# Add a section to the view
$ php artisan make:view index --section=content

# Add an inline section to the view
$ php artisan make:view index --section="title:Hello world"
# Remember to add quotes around the section if you want to use spaces.

# Add 2 sections to the view
$ php artisan make:view index --sections=title,content

# Create a resource with a name of 'products'
# Add one inline and one block-level section to the view
$ php artisan make:view index --sections="title:Hello world,content"
# Remember to add quotes around the sections if you want to use spaces.

# Create a resource called 'products'
$ php artisan make:view products --resource

# Create a resource with only specific verbs
Expand Down

0 comments on commit ecae282

Please sign in to comment.