<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Configuracao extends Model
{
    use SoftDeletes;

    protected $table = 'configuracao';

    protected $dates = ['deleted_at'];

    protected $primaryKey = 'id';

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [];

   
    public function put($id, $data){

        $obj = Configuracao::find(1);

        $obj->meta_title = $data['meta_title'];
        $obj->meta_description = $data['meta_description'];
        
        return $obj;
    }
   
}