1234567891011121314151617181920 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Model;
- use DB;
- class Project extends Model
- {
- protected $table = 'projects';
- public $timestamps = false;
- /**
- * 添加项目
- */
- public static function addData($params)
- {
- return DB::table('projects')->insertGetId($params);
- }
- }
|