123456789101112131415161718192021 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Model;
- use Illuminate\Database\Eloquent\SoftDeletes;
- class IntegralW extends Model{
- use SoftDeletes;
- protected $connection = 'mysql_w';
- protected $table='integral';
- protected $guarded=[];
- public function getIntegralAttribute($value){
- return round($value);
- }
- public function getIntegralDoubleAttribute($value){
- return round($value);
- }
- }
|