Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
2 / 2
CRAP
100.00% covered (success)
100.00%
2 / 2
WebsiteCategory
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
2 / 2
2
100.00% covered (success)
100.00%
2 / 2
 descriptions
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 photos
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\SoftDeletes;
/**
 * @property mixed id
 */
class WebsiteCategory extends Model
{
    // use soft delete
    use SoftDeletes;
    /**
     * @return HasMany
     */
    public function descriptions() :HasMany
    {
        return $this->hasMany(WebsiteCategoryDescription::class);
    }
    /**
     * Return photos for website gallery
     * @return HasMany
     */
    public function photos() :HasMany
    {
        return $this->hasMany(WebsitePhoto::class);
    }
}