You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
448 B

  1. <?php
  2. namespace App;
  3. use Illuminate\Database\Eloquent\Model;
  4. class Cost extends Model
  5. {
  6. public $perPage = 12;
  7. protected $fillable = [
  8. 'business_id', 'type', 'month', 'amount', 'fee', 'duration','cost','tax', 'additional'
  9. ];
  10. public $casts = [
  11. 'additional' => 'array',
  12. 'tax' => 'float',
  13. ];
  14. public function business()
  15. {
  16. return $this->belongsTo(Business::class, 'business_id');
  17. }
  18. }