freziertz / postpackage
A post package
dev-main
2023-03-09 07:38 UTC
Requires (Dev)
- orchestra/testbench: ^8.0
- phpunit/phpunit: ^10.0
This package is not auto-updated.
Last update: 2025-06-13 17:14:31 UTC
README
The config file can now be exported using the command listed below, creating a postpackage.php file in the config directory of the Laravel project in which the package was required.
php artisan vendor:publish --provider="Freziertz\PostPackage\PostServiceProvider" --tag="config"
The migrations of this package are now publishable under the "migrations" tag via:
php artisan vendor:publish --provider="Freziertz\PostPackage\PostServiceProvider" --tag="migrations"
The view can be exported by user of our package as follows.
php artisan vendor:publish --provider="Freziertz\PostPackage\PostServiceProvider" --tag="views"
The assets can then be exported by users of our package using:
php artisan vendor:publish --provider="Freziertz\PostPackage\PostServiceProvider" --tag="assets"
We can reference the stylesheet and javascript file in our views as follows:
<script src="{{ asset('blogpackage/js/app.js') }}"></script> <link href="{{ asset('blogpackage/css/app.css') }}" rel="stylesheet" />