joy / voyager-relations-table
This Laravel/Voyager module adds VoyagerRelationsTable support to Voyager.
Fund package maintenance!
Patreon
Installs: 2 206
Dependents: 3
Suggesters: 0
Security: 0
Stars: 3
Watchers: 0
Forks: 0
Open Issues: 3
Requires
- php: ^7.3|^8.0|^9.0
- illuminate/support: ^7|^8|^9|^10
- joy/voyager-core: ^1.0|^2.0|^3.0
- joy/voyager-datatable: ^1.0|^2.0|^3.0|^4.0
- tcg/voyager: ^1.4|dev-1.6-l10
Requires (Dev)
- ext-pdo_sqlite: *
- ext-zip: *
- friendsofphp/php-cs-fixer: ^3.0
- guzzlehttp/guzzle: ^6.3|^7.0
- mockery/mockery: ^1.3
- orchestra/testbench: ^5.0|^6.0|^7.0|^8.0
- phpunit/phpunit: ^9.1|^10.0|^11.0
- dev-main
- v3.3.6
- v3.3.5
- v3.3.4
- v3.3.3
- v3.3.2
- v2.3.2
- v1.3.2
- v1.3.1
- v1.3.0
- v1.2.36
- v1.2.35
- v1.2.34
- v1.2.33
- v1.2.32
- v1.2.31
- v1.2.30
- v1.2.20
- v1.2.19
- v1.2.17
- v1.2.16
- v1.2.15
- v1.2.10
- v1.2.8
- v1.2.7
- v1.2.4
- v1.2.2
- v1.2.1
- v1.1.10
- v1.1.9
- v1.1.8
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- dev-renovate/orchestra-testbench-9.x
- dev-renovate/major-illuminate
This package is auto-updated.
Last update: 2024-12-26 01:26:10 UTC
README
This Laravel/Voyager module adds VoyagerRelationsTable support to Voyager.
By 🐼 Ramakant Gangwar.
Prerequisites
- Composer Installed
- Install Laravel
- Install Voyager
Installation
# 1. Require this Package in your fresh Laravel/Voyager project composer require joy/voyager-relations-table # 2. Publish php artisan vendor:publish --provider="Joy\VoyagerRelationsTable\VoyagerRelationsTableServiceProvider" --force
Views Customization
In order to override views delivered by Voyager Relations Table, copy contents from vendor/joy/voyager-relations-table/resources/views
to the views/vendor/joy-voyager-relations-table
directory of your Laravel installation.
Working Example
You can try laravel demo here https://joy-voyager.kodmonk.com.
Relation route structure is
Route::get($dataType->slug . '/{id}/{relation}-relations-{slug}-table', $breadController.'@index')->name($dataType->slug.'.relations-table');
Make sure {relation}
exists in your model.
Here are few examples you can check
/admin/users/2/role-relations-roles-table
/admin/users/2/roles-relations-roles-table
/admin/roles/1/users-relations-users-table
Documentation
Find yourself stuck using the package? Found a bug? Do you have general questions or suggestions for improving the joy voyager-relations-table? Feel free to create an issue on GitHub, we'll try to address it as soon as possible.
If you've found a bug regarding security please mail gangwar.ramakant@gmail.com instead of using the issue tracker.
Testing
You can run the tests with:
vendor/bin/phpunit
Upgrading
Please see UPGRADING for details.
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email gangwar.ramakant@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.