| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- namespace Webkul\BagistoApi\Models;
- use ApiPlatform\Metadata\ApiProperty;
- use ApiPlatform\Metadata\ApiResource;
- use Illuminate\Database\Eloquent\Model;
- use Illuminate\Database\Eloquent\Relations\BelongsTo;
- #[ApiResource(operations: [], graphQlOperations: [])]
- class BookingProductEventTicketTranslation extends Model
- {
- protected $table = 'booking_product_event_ticket_translations';
- public $timestamps = false;
- protected $fillable = ['name', 'description', 'locale', 'booking_product_event_ticket_id'];
- public function eventTicket(): BelongsTo
- {
- return $this->belongsTo(BookingProductEventTicket::class, 'booking_product_event_ticket_id');
- }
- #[ApiProperty(writable: false, readable: true, required: false)]
- public function getBookingProductEventTicketId()
- {
- return $this->booking_product_event_ticket_id;
- }
- #[ApiProperty(writable: false, readable: true, required: false)]
- public function getName()
- {
- return $this->name;
- }
- #[ApiProperty(writable: false, readable: true, required: false)]
- public function getDescription()
- {
- return $this->description;
- }
- #[ApiProperty(writable: false, readable: true, required: false)]
- public function getLocale()
- {
- return $this->locale;
- }
- }
|