nova-dependency-container | Laravel Nova field container allowing to depend | Frontend Utils library
kandi X-RAY | nova-dependency-container Summary
kandi X-RAY | nova-dependency-container Summary
A container for grouping fields that depend on other field values. Dependencies can be set on any field type or value.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Resolve a resource
- Determine if dependencies are satisfied .
- Get available fields
- Get fields for validation
- Validate fields .
- Extract request from request
- Extract the child - fields .
- Boot the service provider .
- Apply rules for child fields
- Store action .
nova-dependency-container Key Features
nova-dependency-container Examples and Code Snippets
Community Discussions
Trending Discussions on nova-dependency-container
QUESTION
I am new to Laravel Nova and i want to upload an avatar either from computer or capture from webcamera. As for now i have created a conditional dependency select field to hide and show elements using this package. I have come across webcamjs and i want to know how would i implment this custom action.
I have two options "Capture from webcamera" and "Upload from computer". I only have this "Upload from computer" for now and it works fine. What i want to have is to capture the image from webcam and load the avatar field.
...ANSWER
Answered 2021-Dec-31 at 15:08There are several methods to solve the problem.
IMPORTANT: I do not recommend using the WebcamJS package because it is an unmaintained package and there are other viable alternatives. You can fork the package and fix any errors but that would be more work.
Option #1 (Maybe the best choice for you)
My advice is to create a custom field that extends "Avatar" or "File" and add the "Capture from webcam" option. You can use one of these packages that I link below (more up-to-date than WebcamJS) quickly and easily.
Option #2 (Easy 'n shared!)
Another possible, even simpler approach is to create a standalone custom "Webcam" field. You will still need the Nova Field Dependency Container package but your custom field could share it with the community in a standalone way.
How to create a custom field in laravel nova
Alternative packages to WebcamJS:
Choose the package that is most useful for you! I hope to be proved helpful!
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install nova-dependency-container
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page