Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- [Translations](#translations)
- [Configuration](#configuration)
- [Routing](#routing)
- [Migrations](#migrations)

<a name="introduction"></a>
## Introduction
Expand Down Expand Up @@ -112,3 +113,15 @@ To load a routes file for your package, simply `include` it from within your ser
}

> **Note:** If your package is using controllers, you will need to make sure they are properly configured in your `composer.json` file's auto-load section.

<a name="migrations"></a>
## Migrations

To specify package migrations that should be published to the application's migrations directory, simply use the `publishes` method within your service provider's `boot` method.

public function boot()
{
$this->publishes([
__DIR__.'/path/to/migrations' => base_path('database/migrations')
]);
}