| 1 | <?php |
||
| 7 | class Sitio extends Base |
||
| 8 | { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * The attributes that are mass assignable. |
||
| 12 | * |
||
| 13 | * @var array |
||
| 14 | */ |
||
| 15 | protected $fillable = [ |
||
| 16 | 'name', |
||
| 17 | 'url', |
||
| 18 | 'sitio_id' |
||
| 19 | ]; |
||
| 20 | |||
| 21 | protected $mappingProperties = array( |
||
| 22 | 'name' => [ |
||
| 23 | 'type' => 'string', |
||
| 24 | "analyzer" => "standard", |
||
| 25 | ], |
||
| 26 | 'url' => [ |
||
| 27 | 'type' => 'string', |
||
| 28 | "analyzer" => "standard", |
||
| 29 | ], |
||
| 30 | 'sitio_id' => [ |
||
| 31 | 'type' => 'string', |
||
| 32 | "analyzer" => "standard", |
||
| 33 | ], |
||
| 34 | ); |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Get all of the businesses that are assigned this tag. |
||
| 38 | */ |
||
| 39 | public function businesses() |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Get all of the girls that are assigned this tag. |
||
| 46 | */ |
||
| 47 | public function girls() |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Get all of the users that are assigned this tag. |
||
| 54 | */ |
||
| 55 | public function users() |
||
| 59 | |||
| 60 | /** |
||
| 61 | * Aparece em videos |
||
| 62 | */ |
||
| 63 | public function videos() |
||
| 67 | } |
||
| 68 |