PHP code example of leo-yi / laravel-fillable

1. Go to this page and download the library: Download leo-yi/laravel-fillable 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/ */

    

leo-yi / laravel-fillable example snippets


'id',
'title',
'age',
'created_at',

'id' => 'ID',
'name' => '名称',
'age' => '年龄',
'created_at' => '',

'id' => '', // ID
'name' => '', // 名称
'age' => '', // 年龄
'created_at' => '', // 创建时间

'id' => $this->id,
'name' => $this->name,
'age' => $this->age,
'created_at' => $this->created_at,

'id' => $this->id, // ID
'name' => $this->name, // 名称
'age' => $this->age, // 年龄
'created_at' => $this->created_at, // 创建时间

* @property bigint $id // Id
* @property string $name // 姓名
* @property int $age // 年龄
bash
php artisan vendor:publish --provider="Leoyi\LaravelFillable\LaravelFillableServiceProvider" --tag="laravel-fillable"