新版订单消耗系统

Project.php 327B

1234567891011121314151617181920
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. use DB;
  5. class Project extends Model
  6. {
  7. protected $table = 'projects';
  8. public $timestamps = false;
  9. /**
  10. * 添加项目
  11. */
  12. public static function addData($params)
  13. {
  14. return DB::table('projects')->insertGetId($params);
  15. }
  16. }