承接 haymetg/laranote 相关项目开发

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

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

haymetg/laranote

Composer 安装命令:

composer require haymetg/laranote

包简介

A lightweight model note maker

README 文档

README

  1. Install Laranote composer require haymetg/laranote
  2. Run php artisan vendor:publish --provider="HaymeTG\Laranote\LaranoteServiceProvider"
  3. Use HasLaranote trait for models with notes.
  4. Use it.

Trait Methods:

createNote() for creating a note example: $user->createNote('Im a note'); will fetch all notes saved in the model.

getNote($index) for updating a note example: $user->getNote($index); will get note by index saved in the model. Please note that this will only return note belong to parent model

updateNote($index, $noteText) for updating a note example: $user->updateNote($index); will update note by index saved in the model. Please note that this will only update note belong to parent model

deleteNote($index) for deleting a note example: $user->deleteNote($index); will delete note by index saved in the model. Please note that this will only delete note belong to parent model

deleteAll() for deleting a note example: $user->deleteAll(); will delete all note saved in the model. Please note that this will only delete note belong to parent model

Trait Accessors:

  • notes example: $user->notes Will retrieve all notes saved. This will return a collection

  • first_note example: $user->first_note Will retrieve the first note created by id.

  • last_note example: $user->last_note Will retrieve the last note created by id.

  • latest_note example: $user->latest_note Will retrieve the latest note created by date.

Model Accessors:

  • laranotable example: $user->laranotable Will retrieve the parent model of a laranote.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-02-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固