定制 ifresh/filemaker-model 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

ifresh/filemaker-model

最新稳定版本:v0.1.22

Composer 安装命令:

composer require ifresh/filemaker-model

包简介

An model wrapper for the filemaker api

README 文档

README

Installation

Install the package using composer

composer require ifresh/filemaker-model

After installation publish the config file using

php artisan vendor:publish --provider='Ifresh\FilemakerModel\FilemakerModelServiceProvider'

The model

Create a new FilemakerModel using the following command. Mind that the Modelname argument will be the classname of the generated model. You are encouraged to use the Laravel naming conventions.

php artisan filemaker:model Modelname

Set the layout name in the generated model file

protected $layout = 'filemaker_layout_name'

Getting your data

Get your records

App\Filemaker\Modelname::all();
// returns an eloquent collection with all models

If you know the Filemaker internal recordId, you can fetch records with the find method.

App\Filemaker\Modelname::find(234);
// returns a single model instance

Create a record

You can create records with ease by using an eloquent like method:

$recordId = App\Filemaker\Modelname::create([
    'key1' => 'value',
    'key2' => 'value2'
]);
// returns the given recordId

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2021-07-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固