1 | <?php |
||
22 | class Room extends \Eloquent |
||
23 | { |
||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $table = 'rooms'; |
||
28 | |||
29 | /** |
||
30 | * @var array |
||
31 | */ |
||
32 | protected $fillable = ['gitter_id', 'title', 'url', 'type']; |
||
33 | |||
34 | /** |
||
35 | * @param GitterRoom $gitterRoom |
||
36 | * @param \Closure $new |
||
37 | * @return \Illuminate\Database\Eloquent\Model|null|static |
||
38 | */ |
||
39 | public static function make(GitterRoom $gitterRoom, \Closure $new = null) |
||
56 | |||
57 | /** |
||
58 | * @DANGEROUS Do not fetch all messages |
||
59 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
60 | */ |
||
61 | public function messages() |
||
65 | } |
||
66 |