Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: spatie/laravel-package-tools
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.14.3
Choose a base ref
...
head repository: spatie/laravel-package-tools
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref

Commits on Apr 25, 2023

  1. Update CHANGELOG

    freekmurze authored and github-actions[bot] committed Apr 25, 2023
    Copy the full SHA
    6bf50f1 View commit details
  2. Copy the full SHA
    75ff7ef View commit details

Commits on Apr 27, 2023

  1. Merge pull request #89 from systemsolutionweb/patch-1

    Specify commands that will not be available on http calls
    freekmurze authored Apr 27, 2023
    Copy the full SHA
    efab184 View commit details
  2. Update CHANGELOG

    freekmurze authored and github-actions[bot] committed Apr 27, 2023
    Copy the full SHA
    3d50c4a View commit details

Commits on May 29, 2023

  1. Bump dependabot/fetch-metadata from 1.4.0 to 1.5.1

    Bumps [dependabot/fetch-metadata](https://github.com/dependabot/fetch-metadata) from 1.4.0 to 1.5.1.
    - [Release notes](https://github.com/dependabot/fetch-metadata/releases)
    - [Commits](dependabot/fetch-metadata@v1.4.0...v1.5.1)
    
    ---
    updated-dependencies:
    - dependency-name: dependabot/fetch-metadata
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored May 29, 2023
    Copy the full SHA
    ac50c1d View commit details
  2. Merge pull request #100 from spatie/dependabot/github_actions/dependa…

    …bot/fetch-metadata-1.5.1
    
    Bump dependabot/fetch-metadata from 1.4.0 to 1.5.1
    github-actions[bot] authored May 29, 2023
    Copy the full SHA
    baf2ed9 View commit details

Commits on Jul 3, 2023

  1. Bump dependabot/fetch-metadata from 1.5.1 to 1.6.0

    Bumps [dependabot/fetch-metadata](https://github.com/dependabot/fetch-metadata) from 1.5.1 to 1.6.0.
    - [Release notes](https://github.com/dependabot/fetch-metadata/releases)
    - [Commits](dependabot/fetch-metadata@v1.5.1...v1.6.0)
    
    ---
    updated-dependencies:
    - dependency-name: dependabot/fetch-metadata
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Jul 3, 2023
    Copy the full SHA
    24ade84 View commit details
  2. Merge pull request #101 from spatie/dependabot/github_actions/dependa…

    …bot/fetch-metadata-1.6.0
    
    Bump dependabot/fetch-metadata from 1.5.1 to 1.6.0
    github-actions[bot] authored Jul 3, 2023
    Copy the full SHA
    019164e View commit details

Commits on Aug 9, 2023

  1. Copy the full SHA
    2d41502 View commit details
  2. update readme file

    ArielMejiaDev committed Aug 9, 2023
    Copy the full SHA
    5e7c206 View commit details
  3. Copy the full SHA
    9a6440f View commit details
  4. update readme file

    ArielMejiaDev committed Aug 9, 2023
    Copy the full SHA
    ae56386 View commit details
  5. Copy the full SHA
    37a4a00 View commit details
  6. Merge pull request #103 from ArielMejiaDev/feature/AddVueComponents

    add inertia components publish option
    freekmurze authored Aug 9, 2023
    Copy the full SHA
    38fe533 View commit details
  7. Update CHANGELOG

    freekmurze authored and github-actions[bot] committed Aug 9, 2023
    Copy the full SHA
    1b39b14 View commit details
  8. updating readme

    ArielMejiaDev committed Aug 9, 2023
    Copy the full SHA
    613f19e View commit details

Commits on Aug 10, 2023

  1. Merge pull request #104 from ArielMejiaDev/Hotfix/ReadmeFile

    updating readme
    freekmurze authored Aug 10, 2023
    Copy the full SHA
    f534427 View commit details
  2. Copy the full SHA
    28b5e9b View commit details

Commits on Aug 11, 2023

  1. Update InstallCommand.php

    freekmurze authored Aug 11, 2023
    Copy the full SHA
    65bc4f4 View commit details

Commits on Aug 22, 2023

  1. Make publish variadic

    misenhower committed Aug 22, 2023
    Copy the full SHA
    aa2ea56 View commit details

Commits on Aug 23, 2023

  1. Merge pull request #105 from misenhower/publish-anything

    Enable publishing any tag name with the install command
    freekmurze authored Aug 23, 2023
    Copy the full SHA
    cc7c991 View commit details
  2. Update CHANGELOG

    freekmurze authored and github-actions[bot] committed Aug 23, 2023
    Copy the full SHA
    59a3362 View commit details

Commits on Sep 4, 2023

  1. Bump actions/checkout from 3 to 4

    Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
    - [Release notes](https://github.com/actions/checkout/releases)
    - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
    - [Commits](actions/checkout@v3...v4)
    
    ---
    updated-dependencies:
    - dependency-name: actions/checkout
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Sep 4, 2023
    Copy the full SHA
    c4666b4 View commit details
  2. Merge pull request #107 from spatie/dependabot/github_actions/actions…

    …/checkout-4
    
    Bump actions/checkout from 3 to 4
    github-actions[bot] authored Sep 4, 2023
    Copy the full SHA
    f5e3e3f View commit details

Commits on Sep 20, 2023

  1. Update README.md

    kgrzelak authored Sep 20, 2023
    Copy the full SHA
    d81a81e View commit details
  2. Merge pull request #109 from kgrzelak/patch-1

    Update README.md
    freekmurze authored Sep 20, 2023
    Copy the full SHA
    6cb21a8 View commit details
  3. Copy the full SHA
    c4d5bfc View commit details
  4. Merge pull request #111 from peter279k/shorten_null_operator

    Apply the shorten null coalescing operator
    freekmurze authored Sep 20, 2023
    Copy the full SHA
    3902044 View commit details

Commits on Jan 11, 2024

  1. allow Laravel 11

    TomasVotruba committed Jan 11, 2024
    Copy the full SHA
    c4aa040 View commit details
  2. Merge pull request #117 from TomasVotruba/tv-laravel-11

    Allow Laravel 11
    freekmurze authored Jan 11, 2024
    Copy the full SHA
    e62eeb1 View commit details
  3. Update CHANGELOG

    freekmurze authored and github-actions[bot] committed Jan 11, 2024
    Copy the full SHA
    87a3fea View commit details

Commits on Mar 6, 2024

  1. Copy the full SHA
    2d62195 View commit details

Commits on Mar 7, 2024

  1. Merge pull request #127 from mvenghaus/main

    handle relative path in migration file exists check
    freekmurze authored Mar 7, 2024
    Copy the full SHA
    59db18c View commit details
  2. Update CHANGELOG

    freekmurze authored and github-actions[bot] committed Mar 7, 2024
    Copy the full SHA
    f5f5951 View commit details

Commits on Mar 19, 2024

  1. fixed #128 - check if l11 with new skeleton is used

    Jens Twesmann committed Mar 19, 2024
    Copy the full SHA
    6349e39 View commit details
  2. fixed #128 - check if l11 with new skeleton is used

    respects old file pattern on updated l11 installations
    Jens Twesmann committed Mar 19, 2024
    Copy the full SHA
    c892efe View commit details
  3. there is no BroadCastServiceprovider - change replacement to AppServi…

    …ceProvider
    Jens Twesmann committed Mar 19, 2024
    Copy the full SHA
    889d592 View commit details

Commits on Mar 20, 2024

  1. Merge pull request #129 from jetwes/main

    fixed #128 - check if l11 with new skeleton is used
    freekmurze authored Mar 20, 2024
    Copy the full SHA
    f25a941 View commit details
  2. Fix styling

    freekmurze authored and github-actions[bot] committed Mar 20, 2024
    Copy the full SHA
    ddf678e View commit details
  3. Update CHANGELOG

    freekmurze authored and github-actions[bot] committed Mar 20, 2024
    Copy the full SHA
    dbd526e View commit details

Commits on Apr 29, 2024

  1. Copy the full SHA
    5ca878d View commit details

Commits on May 2, 2024

  1. Merge pull request #132 from erikn69/patch-6

    Avoid bump on every menor release
    freekmurze authored May 2, 2024
    Copy the full SHA
    3674a5e View commit details

Commits on Aug 27, 2024

  1. Copy the full SHA
    9d3fcbd View commit details
  2. Merge pull request #140 from gaetan-hexadog/feat-provider-in-subfolder

    Update InstallCommand.php
    freekmurze authored Aug 27, 2024
    Copy the full SHA
    c741397 View commit details
  3. Update CHANGELOG

    freekmurze authored and github-actions[bot] committed Aug 27, 2024
    Copy the full SHA
    d780aa1 View commit details

Commits on Oct 24, 2024

  1. General readability/extendability improvements

    - Splitting the Package class into traits to improve readability
    - Splitting the PackageServiceProvider into individual methods
    - All test back to green
    stuart-elliott committed Oct 24, 2024
    Copy the full SHA
    6b7c156 View commit details

Commits on Oct 28, 2024

  1. support laravel 11 development

    Riley Aven committed Oct 28, 2024
    Copy the full SHA
    7efdb79 View commit details
  2. Update assertion for L11

    Riley Aven committed Oct 28, 2024
    Copy the full SHA
    843620e View commit details
  3. Fix styling

    Riley19280 authored and github-actions[bot] committed Oct 28, 2024
    Copy the full SHA
    3588bc9 View commit details

Commits on Nov 18, 2024

  1. Copy the full SHA
    6c1e2d2 View commit details
Showing with 1,061 additions and 392 deletions.
  1. +1 −1 .github/workflows/dependabot-auto-merge.yml
  2. +2 −2 .github/workflows/php-cs-fixer.yml
  3. +21 −4 .github/workflows/run-tests.yml
  4. +2 −2 .github/workflows/update-changelog.yml
  5. +1 −0 .gitignore
  6. +205 −0 CHANGELOG.md
  7. +49 −2 README.md
  8. +5 −5 composer.json
  9. +14 −29 phpunit.xml.dist
  10. +38 −39 src/Commands/InstallCommand.php
  11. +15 −0 src/Concerns/Package/HasAssets.php
  12. +25 −0 src/Concerns/Package/HasCommands.php
  13. +21 −0 src/Concerns/Package/HasConfigs.php
  14. +25 −0 src/Concerns/Package/HasConsoleCommands.php
  15. +17 −0 src/Concerns/Package/HasInertia.php
  16. +19 −0 src/Concerns/Package/HasInstallCommand.php
  17. +46 −0 src/Concerns/Package/HasMigrations.php
  18. +15 −0 src/Concerns/Package/HasProviders.php
  19. +25 −0 src/Concerns/Package/HasRoutes.php
  20. +15 −0 src/Concerns/Package/HasTranslations.php
  21. +24 −0 src/Concerns/Package/HasViewComponents.php
  22. +21 −0 src/Concerns/Package/HasViewComposers.php
  23. +15 −0 src/Concerns/Package/HasViewSharedData.php
  24. +24 −0 src/Concerns/Package/HasViews.php
  25. +30 −175 src/Package.php
  26. +280 −96 src/PackageServiceProvider.php
  27. +13 −4 tests/PackageServiceProviderTests/InstallCommandTests/CopyAndRegisterServiceProviderInAppTest.php
  28. +0 −32 tests/PackageServiceProviderTests/MultiplePackageMigrationsTest.php
  29. +65 −0 tests/PackageServiceProviderTests/PackageDiscoversMigrationsTest.php
  30. +11 −1 tests/PackageServiceProviderTests/PackageMigrationTest.php
  31. +17 −0 tests/TestPackage/database/migrations/2025_03_14_011123_create_laravel_package_tools_table.php.stub
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ jobs:

- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1.4.0
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
compat-lookup: true
4 changes: 2 additions & 2 deletions .github/workflows/php-cs-fixer.yml
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

@@ -18,6 +18,6 @@ jobs:
args: --config=.php-cs-fixer.dist.php --allow-risky=yes

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Fix styling
25 changes: 21 additions & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -9,23 +9,35 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.0, 8.1, 8.2]
laravel: [10.*, 9.*]
php: [8.0, 8.1, 8.2, 8.3, 8.4]
laravel: [12.*, 11.*, 10.*, 9.*]
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 9.*
testbench: 7.*
- laravel: 10.*
testbench: 8.*
- laravel: 11.*
testbench: 9.*
- laravel: 12.*
testbench: 10.*
exclude:
- laravel: 10.*
php: 8.0
- laravel: 11.*
php: 8.0
- laravel: 11.*
php: 8.1
- laravel: 12.*
php: 8.0
- laravel: 12.*
php: 8.1

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
@@ -39,9 +51,14 @@ jobs:
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Fix dependencies
if: ${{ startsWith(matrix.laravel, '9') }}
run: |
composer require "nesbot/carbon:^2.72.6" --no-interaction --no-update
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:^2.64.1" --no-interaction --no-update
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: Execute tests
4 changes: 2 additions & 2 deletions .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: main

@@ -21,7 +21,7 @@ jobs:
release-notes: ${{ github.event.release.body }}

- name: Commit updated CHANGELOG
uses: stefanzweifel/git-auto-commit-action@v4
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: main
commit_message: Update CHANGELOG
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.idea
.php_cs
.php-cs-fixer.cache
.phpunit.cache
.phpunit.result.cache
build
composer.lock
205 changes: 205 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,211 @@

All notable changes to `laravel-package-tools` will be documented in this file.

## 1.20.1 - 2025-03-21

### What's Changed

* Fix: Code Improvements & Consistent for Migrations by @tech-wolf-tw in https://github.com/spatie/laravel-package-tools/pull/163

**Full Changelog**: https://github.com/spatie/laravel-package-tools/compare/1.20.0...1.20.1

## 1.20.0 - 2025-03-21

**Full Changelog**: https://github.com/spatie/laravel-package-tools/compare/1.91.1...1.20.0

## 1.91.1 - 2025-03-21

### What's Changed

* Fix: Migration Name Prefixed with by timestamp twice by @tech-wolf-tw in https://github.com/spatie/laravel-package-tools/pull/162

### New Contributors

* @tech-wolf-tw made their first contribution in https://github.com/spatie/laravel-package-tools/pull/162

**Full Changelog**: https://github.com/spatie/laravel-package-tools/compare/1.19.0...1.91.1

## 1.19.0 - 2025-02-06

### What's Changed

* Laravel 12 Support by @erikn69 in https://github.com/spatie/laravel-package-tools/pull/160
* Ignore .phpunit.cache by @erikn69 in https://github.com/spatie/laravel-package-tools/pull/161

**Full Changelog**: https://github.com/spatie/laravel-package-tools/compare/1.18.3...1.19.0

## 1.18.3 - 2025-01-22

- avoid method name collisions

**Full Changelog**: https://github.com/spatie/laravel-package-tools/compare/1.18.2...1.18.3

## 1.18.2 - 2025-01-20

### What's Changed

* General readability/extendability improvements by @stuart-elliott in https://github.com/spatie/laravel-package-tools/pull/157
* Remove breaking change of previous version

### New Contributors

* @stuart-elliott made their first contribution in https://github.com/spatie/laravel-package-tools/pull/157

**Full Changelog**: https://github.com/spatie/laravel-package-tools/compare/1.18.0...1.18.2

## 1.18.1 - 2025-01-20

### What's Changed

* General readability/extendability improvements by @stuart-elliott in https://github.com/spatie/laravel-package-tools/pull/157

### New Contributors

* @stuart-elliott made their first contribution in https://github.com/spatie/laravel-package-tools/pull/157

**Full Changelog**: https://github.com/spatie/laravel-package-tools/compare/1.18.0...1.18.1

## 1.18.0 - 2024-12-30

### What's Changed

* feature: discover migrations by @joelbutcher in https://github.com/spatie/laravel-package-tools/pull/153

### New Contributors

* @joelbutcher made their first contribution in https://github.com/spatie/laravel-package-tools/pull/153

**Full Changelog**: https://github.com/spatie/laravel-package-tools/compare/1.17.0...1.18.0

## 1.17.0 - 2024-12-09

### What's Changed

* Support Laravel 11 development by @Riley19280 in https://github.com/spatie/laravel-package-tools/pull/146

### New Contributors

* @Riley19280 made their first contribution in https://github.com/spatie/laravel-package-tools/pull/146

**Full Changelog**: https://github.com/spatie/laravel-package-tools/compare/1.16.6...1.17.0

## 1.16.6 - 2024-11-18

### What's Changed

* Fix implicit nullable deprecation notice by @mokhosh in https://github.com/spatie/laravel-package-tools/pull/150

### New Contributors

* @mokhosh made their first contribution in https://github.com/spatie/laravel-package-tools/pull/150

**Full Changelog**: https://github.com/spatie/laravel-package-tools/compare/1.16.5...1.16.6

## 1.16.5 - 2024-08-27

### What's Changed

* Avoid bump on every menor release by @erikn69 in https://github.com/spatie/laravel-package-tools/pull/132
* Update InstallCommand.php by @gaetan-hexadog in https://github.com/spatie/laravel-package-tools/pull/140

### New Contributors

* @gaetan-hexadog made their first contribution in https://github.com/spatie/laravel-package-tools/pull/140

**Full Changelog**: https://github.com/spatie/laravel-package-tools/compare/1.16.4...1.16.5

## 1.16.4 - 2024-03-20

### What's Changed

* fixed #128 - check if l11 with new skeleton is used by @jetwes in https://github.com/spatie/laravel-package-tools/pull/129

### New Contributors

* @jetwes made their first contribution in https://github.com/spatie/laravel-package-tools/pull/129

**Full Changelog**: https://github.com/spatie/laravel-package-tools/compare/1.16.3...1.16.4

## 1.16.3 - 2024-03-07

### What's Changed

* handle relative path in migration file exists check by @mvenghaus in https://github.com/spatie/laravel-package-tools/pull/127

### New Contributors

* @mvenghaus made their first contribution in https://github.com/spatie/laravel-package-tools/pull/127

**Full Changelog**: https://github.com/spatie/laravel-package-tools/compare/1.16.2...1.16.3

## 1.16.2 - 2024-01-11

### What's Changed

* Bump actions/checkout from 3 to 4 by @dependabot in https://github.com/spatie/laravel-package-tools/pull/107
* Update README.md by @kgrzelak in https://github.com/spatie/laravel-package-tools/pull/109
* Apply the shorten null coalescing operator by @peter279k in https://github.com/spatie/laravel-package-tools/pull/111
* Allow Laravel 11 by @TomasVotruba in https://github.com/spatie/laravel-package-tools/pull/117

### New Contributors

* @kgrzelak made their first contribution in https://github.com/spatie/laravel-package-tools/pull/109
* @peter279k made their first contribution in https://github.com/spatie/laravel-package-tools/pull/111
* @TomasVotruba made their first contribution in https://github.com/spatie/laravel-package-tools/pull/117

**Full Changelog**: https://github.com/spatie/laravel-package-tools/compare/1.16.1...1.16.2

## 1.16.1 - 2023-08-23

### What's Changed

- updating readme by @ArielMejiaDev in https://github.com/spatie/laravel-package-tools/pull/104
- Enable publishing any tag name with the install command by @misenhower in https://github.com/spatie/laravel-package-tools/pull/105

### New Contributors

- @misenhower made their first contribution in https://github.com/spatie/laravel-package-tools/pull/105

**Full Changelog**: https://github.com/spatie/laravel-package-tools/compare/1.16.0...1.16.1

## 1.16.0 - 2023-08-09

### What's Changed

- add inertia components publish option by @ArielMejiaDev in https://github.com/spatie/laravel-package-tools/pull/103

### New Contributors

- @ArielMejiaDev made their first contribution in https://github.com/spatie/laravel-package-tools/pull/103

**Full Changelog**: https://github.com/spatie/laravel-package-tools/compare/1.15.0...1.16.0

## 1.15.0 - 2023-04-27

### What's Changed

- Specify commands that will not be available on http calls by @systemsolutionweb in https://github.com/spatie/laravel-package-tools/pull/89

### New Contributors

- @systemsolutionweb made their first contribution in https://github.com/spatie/laravel-package-tools/pull/89

**Full Changelog**: https://github.com/spatie/laravel-package-tools/compare/1.14.3...1.15.0

## 1.14.3 - 2023-04-25

### What's Changed

- Update README.md by @bishwajitcadhikary in https://github.com/spatie/laravel-package-tools/pull/97
- Bump dependabot/fetch-metadata from 1.3.6 to 1.4.0 by @dependabot in https://github.com/spatie/laravel-package-tools/pull/98
- Fix install command on Laravel 10.x breaking change by @erikn69 in https://github.com/spatie/laravel-package-tools/pull/99

### New Contributors

- @bishwajitcadhikary made their first contribution in https://github.com/spatie/laravel-package-tools/pull/97

**Full Changelog**: https://github.com/spatie/laravel-package-tools/compare/1.14.2...1.14.3

## 1.14.2 - 2023-03-14

### What's Changed
51 changes: 49 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -216,6 +216,36 @@ $package
});
```

### Working with inertia components

Any `.vue` or `.jsx` files your package provides, should be placed in the `<package root>/resources/js/Pages` directory.

You can register these components with the `hasInertiaComponents` command.

```php
$package
->name('your-package-name')
->hasInertiaComponents();
```

This will register your components with Laravel.

The user should publish the inertia components manually or using the [installer-command](#adding-an-installer-command) in order to use them.

If you have an inertia component `<package root>/resources/js/Pages/myComponent.vue`, you can use it like
this: `Inertia::render('YourPackageName/myComponent')`. Of course, you can also use subdirectories to organise your components.

#### Publishing inertia components

Calling `hasInertiaComponents` will also make inertia components publishable. Users of your package will be able to publish the views with this
command:

```bash
php artisan vendor:publish --tag=your-package-name-inertia-components
```

Also, the inertia components are available in a convenient way with your package [installer-command](#adding-an-installer-command)

### Working with translations

Any translations your package provides, should be placed in the `<package root>/resources/lang/<language-code>`
@@ -318,7 +348,24 @@ $package
->hasMigrations(['my_package_tables', 'some_other_migration']);
```

Calling `hasMigration` will also make migrations publishable. Users of your package will be able to publish the
Alternatively, if you wish to publish all migrations in your package by default, you may call `discoversMigrations`.

```php
$package
->name('your-package-name')
->discoversMigrations();
```

Calling this method will look for migrations in the `./database/migrations` directory of your project. However, if you have defined your migrations
in a different folder, you may pass a value to the `$path` variable to instruct the app to discover migrations from that location.

```php
$package
->name('your-package-name')
->discoversMigrations(path: '/path/to/your/migrations/folder');
```

Calling either `hasMigration`, `hasMigration` or `discoversMigrations` will also make migrations publishable. Users of your package will be able to publish the
migrations with this command:

```bash
@@ -439,7 +486,7 @@ end when running `php artisan your-package-name:install`. You can use this to pe
output.

```php
use use Spatie\LaravelPackageTools\Commands\InstallCommand;
use Spatie\LaravelPackageTools\Commands\InstallCommand;

public function configurePackage(Package $package): void
{
Loading