Changeset View
Changeset View
Standalone View
Standalone View
src/app/Plan.php
<?php | <?php | ||||
namespace App; | namespace App; | ||||
use Illuminate\Database\Eloquent\Model; | use Illuminate\Database\Eloquent\Model; | ||||
/** | /** | ||||
* The eloquent definition of a Plan. | * The eloquent definition of a Plan. | ||||
* | * | ||||
* A Plan is a grouping of packages, such as a "Family Plan". | * A Plan is a grouping of packages, such as a "Family Plan". | ||||
* | * | ||||
* A "Family Plan" as such may exist of "2 or more Kolab packages", | * A "Family Plan" as such may exist of "2 or more Kolab packages", | ||||
* and apply a discount for the third and further Kolab packages. | * and apply a discount for the third and further Kolab packages. | ||||
* | |||||
* @property \App\Package[] $packages | |||||
*/ | */ | ||||
class Plan extends Model | class Plan extends Model | ||||
{ | { | ||||
use \Spatie\Translatable\HasTranslations; | use \Spatie\Translatable\HasTranslations; | ||||
public $incrementing = false; | public $incrementing = false; | ||||
protected $keyType = 'string'; | protected $keyType = 'string'; | ||||
public $timestamps = false; | public $timestamps = false; | ||||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |