royduin / laravel-nova-field-dynamic-select Goto Github PK
View Code? Open in Web Editor NEWThis project forked from hubertnnn/laravel-nova-field-dynamic-select
Dynamic Select field for Laravel Nova
This project forked from hubertnnn/laravel-nova-field-dynamic-select
Dynamic Select field for Laravel Nova
Using the DynamicSelect as a field in an Nova Action.
When you click to see the selections, the list gets clipped by the modal since its set to overflow-hidden by Nova. There's no way to modify the modal settings. And no way to modify the Vue.Multiselect structure.
I had to add in FormField.vue:
.multiselect__content-wrapper{
position: relative;
}
But this makes the modal expand and retract on dropdown list. Not optimal.
It is a known issue on for vue-multiselect shentao/vue-multiselect#723 but seems the project seems abandoned.
I wish there were a better way to fix this...
Any idea how to populate the Select from the Vendor Selected?
I am using a pivot table from Vendor Resource:
`BelongsToMany::make(__('Vendors'), 'vendors', 'App\Nova\Vendor')
->fields( new VendorLocationFields()),`
and Fields file function:
`public function __invoke($request, $relatedModel)
{
$dist_centers = \App\Models\DistributionCenter::all()->pluck('name', 'id');
return [
Text::make('Account Number')
Text::make('Vendor Username'),
Select::make('Distribution Center','distribution_center_id')
->displayUsingLabels()
->options($dist_centers)
,
];
}`
I'm currently trying to replace the MorphTo field in the action context, since that doesn't work, but for some reason, this fails as well.
The error message I get is: Call to a member function getOptions() on null
No publishable resources for tag [laravel-assets]. and I can't find the folder of the package
`PS C:\Users\Manaf\Desktop\New folder\nofa> composer require royduin/laravel-nova-field-dynamic-select
Using version ^1.8 for royduin/laravel-nova-field-dynamic-select
./composer.json has been updated
Running composer update royduin/laravel-nova-field-dynamic-select
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals
Illuminate\Foundation\ComposerScripts::postAutoloadDump
@php artisan package:discover --ansi
Discovered Package: digital-creative/clickable-table-row
Discovered Package: facade/ignition
Discovered Package: fideloper/proxy
Discovered Package: fruitcake/laravel-cors
Discovered Package: laravel/nova
Discovered Package: laravel/sail
Discovered Package: laravel/tinker
Discovered Package: laravel/ui
Discovered Package: manmohanjit/nova-belongs-to-dependency
Discovered Package: nesbot/carbon
Discovered Package: nunomaduro/collision
Discovered Package: orlyapps/nova-belongsto-depend
Discovered Package: royduin/laravel-nova-field-dynamic-select
Discovered Package: webparking/nova-belongs-to-dependency
Package manifest generated successfully.
83 packages you are using are looking for funding.
Use thecomposer fund
command to find out more!
@php artisan vendor:publish --tag=laravel-assets --ansi
No publishable resources for tag [laravel-assets].
Publishing complete.`
Wondering if the light green is configurable.
Hello,
We've been using the package for some time and noticed the addition of Nova Actions changed how OptionsController::index()
handles options and since then our code always run into
local.ERROR: Class name must be a valid object or a string {"userId":2,"exception":"[object] (Error(code: 0): Class name must be a valid object or a string at /srv/vendor/royduin/laravel-nova-field-dynamic-select/src/Http/Controllers/OptionsController.php:97)
Meaning $request->has('action')
in line 16 is somehow filled when it shouldn't.
For now, we commented out this if
so our code can run as before and we have no idea why the request has action
set since we do not use it.
Not sure how to help debug, but if given pointers I'd be glad to help figure out what's going on.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.