承接 expdev07/nova-slim-field 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

expdev07/nova-slim-field

Composer 安装命令:

composer require expdev07/nova-slim-field

包简介

Laravel Nova field for cropping images using the "Slim Image Cropper" (https://pqina.nl/slim/). This is an alternative to Doka (now Pintura) for those who want a less expensive cropping experience.

README 文档

README

Nova Slim Field

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

This package adds a new Laravel Nova field for cropping images using the "Slim Image Cropper" (https://pqina.nl/slim/). This is an alternative to Doka (now Pintura) for those who want a less expensive cropping experience.

Install

Composer install the package:

composer require expdev07/nova-slim-field

Publish the config:

php artisan vendor:publish --provider="ExpDev07\NovaSlimField\SlimFieldServiceProvider" --tag="config"

Configure the Slim assets:

/**
 * Configure the path to the slim assets.
 */
'slim' => [
    'jquery' => public_path('/js/jquery.js'),
    'js' => public_path('/js/slim.js'),
    'css' => public_path('/css/slim.css'),
]

Using

Slim extends the Image Field, so you have all your normal options such as deciding how to store the image.

/**
 * Get the fields displayed by the resource.
 *
 * @param Request $request
 * @return array
 */
public function fields(Request $request): array
{
    return [
        Slim::make('Featured Image')->cropable(true)->ratio('1:1')->size('300,300'),
    ];
}

Thanks to

  • ExpDev07 - Creator and maintainer.
  • ... All the creators and maintainers of Nova.

Screenshots

Empty state

Image uploaded

Cropping image

Image cropped

统计信息

  • 总下载量: 49
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-02-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固