Menu

## Plan extends Model
in package

Plan.php : 34

Class Plan

Model for managing subscription plans.

##### Tags

mixin

### Table of Contents

#### Properties

$active : int
$amount : float
$created_at : DateTime
$cycle : int
$deleted_at : DateTime
$id : int
$name : string
$no_of_audios : int
$no_of_bulletins : int
$no_of_events : int
$no_of_files : int
$no_of_folders : int
$no_of_groups : int
$no_of_members : int
$no_of_videos : int
$order : int
$subscription : Collection|array<string|int, Subscription>
$updated_at : DateTime
$dates : mixed
$fillable : array<string|int, mixed>
  The attributes that are mass assignable.
$table : string
  The table associated with the model.

#### Methods

subscription() : HasMany
  Get subscriptions for this plan.

### Properties

#### $active

Plan.php : 0
`public int $active`

#### $amount

Plan.php : 0
`public float $amount`

#### $created_at

Plan.php : 0
`public DateTime $created_at`

#### $cycle

Plan.php : 0
`public int $cycle`

#### $deleted_at

Plan.php : 0
`public DateTime $deleted_at`

#### $id

Plan.php : 0
`public int $id`

#### $name

Plan.php : 0
`public string $name`

#### $no_of_audios

Plan.php : 0
`public int $no_of_audios`

#### $no_of_bulletins

Plan.php : 0
`public int $no_of_bulletins`

#### $no_of_events

Plan.php : 0
`public int $no_of_events`

#### $no_of_files

Plan.php : 0
`public int $no_of_files`

#### $no_of_folders

Plan.php : 0
`public int $no_of_folders`

#### $no_of_groups

Plan.php : 0
`public int $no_of_groups`

#### $no_of_members

Plan.php : 0
`public int $no_of_members`

#### $no_of_videos

Plan.php : 0
`public int $no_of_videos`

#### $order

Plan.php : 0
`public int $order`

#### $subscription read-only

Plan.php : 0
`public Collection|array<string|int, Subscription> $subscription`

#### $updated_at

Plan.php : 0
`public DateTime $updated_at`

#### $dates

Plan.php : 53
`protected mixed $dates = ['created_at', 'updated_at', 'deleted_at']`

#### $fillable

Plan.php : 49

The attributes that are mass assignable.

`protected array<string|int, mixed> $fillable = ['cycle', 'name', 'order', 'active', 'amount', 'no_of_members', 'no_of_events', 'no_of_folders', 'no_of_files', 'no_of_bulletins', 'no_of_videos', 'no_of_audios', 'no_of_groups']`

#### $table

Plan.php : 42

The table associated with the model.

`protected string $table = 'plans'`

### Methods

#### subscription()

Plan.php : 60

Get subscriptions for this plan.

`public subscription() : HasMany`

##### Return values

HasMany

## Search results