# fluentform/5.2.8/app/Models/Model.php

Fluent Forms – Customizable Contact Forms, Survey, Quiz, &amp; Conversational Form Builder, version 5.2.8. 30 lines.

- Page: https://pluginprobe.com/plugins/fluentform/5.2.8/code/app/Models/Model.php
- Raw: https://pluginprobe.com/plugins/fluentform/5.2.8/raw/app/Models/Model.php
- Modified: 2024-12-18T13:07:10+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluentform/5.2.8/code/app/Models/Model.php#L10-L20`.

```php
<?php

namespace FluentForm\App\Models;

use FluentForm\Framework\Database\Orm\Model as BaseModel;

class Model extends BaseModel
{
    /**
     * The attributes that aren't mass assignable.
     *
     * @var array
     */
    protected $guarded = ['id', 'ID'];

    /**
     * Get the number of models to return per page.
     *
     * @return int
     */
    public function getPerPage()
    {
        $request = wpFluentForm('request');

        return intval(
            $request->get('per_page', $request->get('perPage', $this->perPage))
        );
    }
}

```
