Post.php 424 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace Illuminate\Tests\Integration\Http\Fixtures;
  3. use Illuminate\Database\Eloquent\Model;
  4. class Post extends Model
  5. {
  6. /**
  7. * The attributes that aren't mass assignable.
  8. *
  9. * @var string[]
  10. */
  11. protected $guarded = [];
  12. /**
  13. * Return whether the post is published.
  14. *
  15. * @return bool
  16. */
  17. public function getIsPublishedAttribute()
  18. {
  19. return true;
  20. }
  21. }