承接 noodleware/notey 相关项目开发

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

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

noodleware/notey

最新稳定版本:v1.0.0

Composer 安装命令:

composer require noodleware/notey

包简介

A lightweight Laravel package for adding notes and comments to any model with a Livewire-powered UI.

README 文档

README

Notey is a simple Laravel package that allows you to add notes to any model using a polymorphic relationship.

Installation

To install Notey, use Composer:

composer require noodleware/notey

Run the migration to create the necessary database table:

php artisan migrate

This will create one table:

  • notes: Stores all notes via a polymorphic relationship.

Publish the package assets:

php artisan vendor:publish --tag=notey

Styling Considerations

After publishing assets, you must include the Notey base stylesheet in your application:

<link rel="stylesheet" href="{{ asset('vendor/notey/notey.css') }}">

Usage

There are two ways to include Notey in your application:

1. Full Component (Pre-styled Card)

To include the fully styled notes component:

<x-notey::notes :model="$model" />

2. Separate Components (For Custom Styling)

You can load the list and form separately to have more control over styling:

<livewire:note-list :model="$model" />
<livewire:note-form :model="$model" />

This allows you to integrate the notes section into your layout while maintaining full control over its appearance.

License

This package is open-source under the MIT License.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-03-04