%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/pjc/app/
Upload File :
Create Path :
Current File : /var/www/pjc/app/acconti.php

<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class acconti extends Model
{

    protected $table = 'acconti_mese';

    protected $fillable = [
        'mese',
        'anno',
        'importo',
        'commessa',
    ];


    public static function getAcconti($commessa) {

        $acconti = \App\acconti::where('commessa',$commessa)->where('anno',Date('Y'))->pluck('importo','mese')->toArray();

        return $acconti;

    }



}

Zerion Mini Shell 1.0