| 123456789101112131415161718192021 |
- <?php
- namespace App;
- use App\Traits\ModelTimeFormat;
- use Illuminate\Database\Eloquent\Model;
- use App\Traits\ModelLogChanging;
- class Terminal extends Model
- {
- use ModelLogChanging;
- use ModelTimeFormat;
- protected $fillable = ['name', 'ip'];
- public function printers()
- {
- return $this->hasMany(TerminalPrinter::class);
- }
- }
|