Skip to content

Commit 81457d7

Browse files
committed
Update documentation.
1 parent c15cc89 commit 81457d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ The easiest way to create a new package for use with Laravel is the `workbench`
3030

3131
**Issuing The Workbench Artisan Command**
3232

33-
php artisan workbench vendor/package
33+
php artisan workbench vendor/package --resources
3434

35-
The vendor name is a way to distinguish your package from other packages of the same name from different authors. For example, if I (Taylor Otwell) were to create a new package named "Zapper", the vendor name could be `Taylor` while the package name would be `Zapper`.
35+
The vendor name is a way to distinguish your package from other packages of the same name from different authors. For example, if I (Taylor Otwell) were to create a new package named "Zapper", the vendor name could be `Taylor` while the package name would be `Zapper`. By default, the workbench will create framework agnostic packages; however, the `resources` command tells the workbench to generate the package with Laravel specific directories such as `migrations`, `views`, `config`, etc.
3636

3737
Once the `workbench` command has been executed, your package will be available within the `workbench` directory of your Laravel installation. Next, you should register the `ServiceProvider` that was created for your package. You may register the provider by adding it to the `providers` array in the `app/config/app.php` file. This will instruct Laravel to load your package when your application starts. Service providers use a `[Package]ServiceProvider` naming convention. So, using the example above, you would add `Taylor\Zapper\ZapperServiceProvider` to the `providers` array.
3838

0 commit comments

Comments
 (0)