Download the PHP package weward/porticobouncer without Composer
On this page you can find all versions of the php package weward/porticobouncer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download weward/porticobouncer
More information about weward/porticobouncer
Files in weward/porticobouncer
Package porticobouncer
Short Description This is just a test
License MIT
Homepage https://github.com/weward/porticobouncer
Informations about the package porticobouncer
PorticoBouncer
This also serves as a template
Requirements
-
Install Silber/Bouncer package
-
Add
HasRolesAndAbilities
trait inUser.php
-
Publish Silber/Bouncer's migration
- Run the migration
Installation
-
Submit project via Packagist
-
Composer require weward/porticobounce:^#.#.#
-
composer dump-auto
-
php artisan package:discover
-
php artisan porticobouncer:install
-
Check if the package files were registered properly (If the specified files has these values):
-
Thh
HasPorticoBouncerPermissions
trait is present in theUser.php
model -
Custom models are present in
AppServiceProvider.php
- The
porticobouncer
routes were registered in theRouteServiceProvider
- The
'portico.bouncer'
entry exists in thhhe $middlewareAliases array of theHttp/Kernel.php
- Add Role index route to
resources/js/Properties/navMenu.js
-
- Run tests
php artisan test --filter=ability
php artisan test --filter=role
OR publish files manually:
php artisan vendor:publish --tag=subpackage-middleware
if would publish middlewares that came with the package toApp\Http\Middleware
php artisan vendor:publish --tag=subpackage-controllers
if would publish controllers that came with the package toApp\Http\Controllers
php artisan vendor:publish --tag=subpackage-requests
if would publish requests that came with the package toApp\Http\Requests
php artisan vendor:publish --tag=subpackage-services
if would publish services that came with the package toApp\Services\Admin
php artisan vendor:publish --tag=subpackage-tests
if would publish services that came with the package totests\Feature\Admin
-
php artisan vendor:publish --tag=subpackage-package-routes
if would publish routes that came with the package toroutes
Note: This will also register the route fileporticobouncer.php
in the app'sRouteServiceProvider.php
- Add
Weward\PorticoBouncer\PorticoBouncerServiceProvider::class,
to the'providers'
array of theconfig/app.php
file.
Developing and Updating the Package
- Include
PorticoBouncer
package folder (dev/Personal/laravel-packages
) into the VSCode workspace - Develop, update and test the files in the main project
- Copy over all the updated files into its respective folders in the
PorticoBouncer
package - Commit the changes to
PorticoBouncer
- Add tags to
PorticoBouncer
- Update the packagist entry
Creating a new package
-
Use Spatie package-skeleton-laravel to install and configure a new package (+namespace|etc)
-
Copy the ff from Spatie/laravel-package-tools and update the imports in your own package
-
InstallCommand.php
-
Package.php
PackageServiceProvider.php
-
-
If will be creating a new method (publishing files), add the method implementation in the boot() method of Package.php
-
Add the variables in the PackageServiceProvider
- Call the method in the configurePackage() method of the PackageNameServiceProvider
This is just a test
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
Support us
We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.
Installation
You can install the package via composer:
You can publish and run the migrations with:
You can publish the config file with:
This is the contents of the published config file:
Optionally, you can publish the views using
Usage
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- weward
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of porticobouncer with dependencies
spatie/laravel-package-tools Version ^1.14.0
illuminate/contracts Version ^10.0