install
composer require ahmed-hussain/hasmany-to-modal
To create a modal for creating or viewing related HasMany records without leaving the index page
Create via Modal don't need leave index to create or view HasMany
/**
* The size of the modal. Can be "sm", "md", "lg", "xl", "2xl", "3xl", "4xl", "5xl", "6xl", "7xl", "full-screen".
*/
use AhmedHussain\HasmanyToModal\HasmanyToModal;
HasmanyToModal::make(__('Comments'), 'Comments', Comments::class)
->perPage(50)//count rows show in index
->modalSize('2xl'),
#for Full Screen
HasmanyToModal::make(__('Comments'), 'Comments', Comments::class)
->perPage(50)
->modalSize('full-screen'),
Readme not found. Refer to the project website: https://github.com/ahmed-m-hussain/Nova-HasmanyToModal
| Added | 1 year ago |
This package should be on the Packagist API but we're not getting any results.
Please note that the Packagist cache is pretty long, so some times you just need to check back in an hour.