sparclex / nova-creatable-belongs-to Goto Github PK
View Code? Open in Web Editor NEWBelongsTo Field which allows to choose or create a resource
License: MIT License
BelongsTo Field which allows to choose or create a resource
License: MIT License
Please can this be updated to support Nova 3.0
I had the Nova package installed via .zip file and could not install this package.
Reason i presume was that this package requires a ^1.2 version of Nova and the
.zip install sets the nova version to "*".
Once i undid the .zip install, and followed docs on an installation via composer (with the
needed changes in composer.json) i was able to install this package.
Currently if relation is nullable and no selection is made, a model (with null name) will still be created when the resource is saved.
public function fields(Request $request)
{
return [
ID::make()->sortable(),
CreatableBelongsTo::make('ProductType', 'productType', 'App\Nova\ProductType', 'name')
->prepopulate()
];
}
The documentation should be updated:
App\ProductType -> App\Nova\ProductType
Steps to reproduce:
In Nova Resource, set a custom title:
public function title()
{
return $this->name . (empty($this->country_code) ? '' : " ({$this->country_code})");
}
When Edit an item, I get this error:
invalid input syntax for integer: "<here comes the NAME of the resource>"
(SQL: select * from "associations" where "associations"."id" = <here comes the NAME of the resource> limit 1)
What happens if I want to create a "city" but I need to pass a state value to create the city?
Right now I'm using this package...
https://novapackages.com/packages/dillingham/nova-ajax-select
...to show a list of cities based on the state they select. If they don't find the city they're looking for, it would be great to create it but I don't think I can with your package without sending some additional required data to finish the job. Any help would be appreciated.
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.