PHP code example of ifresh / filemaker-model

1. Go to this page and download the library: Download ifresh/filemaker-model library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ifresh / filemaker-model example snippets


composer 

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

php artisan filemaker:model Modelname

protected $layout = 'filemaker_layout_name'

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

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

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