【文件属性】:
文件名称:nova-images:用于JSON多个图像的Laravel-Nova字段
文件大小:364KB
文件格式:ZIP
更新时间:2021-03-12 15:10:39
Vue
多图组件
新星影像
使用方法
// In Model
public $ cast = [
'images' => 'array' ,
];
// In Migration
public function up ()
{
Schema :: create ( 'users' , function ( Blueprint $ table ) {
$ table -> json ( 'images' )-> nullable ()-> comment ( '多图' );
});
}
// In Nova resource
public function fields ( Request $ request )
{
return [
\ Weiwait \ NovaImages \ Images :: make ( '图片
【文件预览】:
nova-images-main
----composer.json(704B)
----package.json(1KB)
----readme.md(362KB)
----webpack.mix.js(144B)
----resources()
--------js()
--------sass()
----dist()
--------css()
--------js()
--------mix-manifest.json(78B)
----src()
--------Images.php(3KB)
--------FieldServiceProvider.php(672B)
----.gitignore(129B)