Skip to content

Joy VoyagerRelationsTable module adds viewing Laravel model relationship in separate table support to Voyager.

License

Notifications You must be signed in to change notification settings

rxcod9/joy-voyager-relations-table

Repository files navigation

Joy VoyagerRelationsTable

This Laravel/Voyager module adds VoyagerRelationsTable support to Voyager.

By 🐼 Ramakant Gangwar.

Screenshot

Latest Version GitHub Workflow Status Total Downloads


Prerequisites


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.