IntegralW.php 383 B

12345678910111213141516171819
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class IntegralW extends Model{
  5. protected $connection = 'mysql_w';
  6. protected $table='integral';
  7. protected $guarded=[];
  8. public function getIntegralAttribute($value){
  9. return round($value);
  10. }
  11. public function getIntegralDoubleAttribute($value){
  12. return round($value);
  13. }
  14. }