SocialPublish.php 660 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace App\Http\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. use Illuminate\Database\Eloquent\SoftDeletes;
  5. class SocialPublish extends Model
  6. {
  7. use SoftDeletes;
  8. protected $primaryKey = 'id';
  9. protected $table = 'social_publish';
  10. public $guarded = [];
  11. protected $casts = [
  12. 'result' => 'array',
  13. 'scopes' => 'array',
  14. 'result_status' => 'array',
  15. 'err' => 'array'
  16. ];
  17. const STATUS_NO_NEED = 1; //不用发
  18. const STATUS_SUCCESS = 2; //成功
  19. const STATUS_FAILURE = 3; //失败
  20. const STATUS_TITLE = [
  21. 1 => '未发',
  22. 2 => '成功',
  23. 3 => '失败',
  24. ];
  25. }