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
其他信息
- 授权协议: Unknown
- 更新时间: 2021-07-25