Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Eloquent model's deprecated $dates #642

Open
FabZip opened this issue Jan 18, 2024 · 0 comments
Open

The Eloquent model's deprecated $dates #642

FabZip opened this issue Jan 18, 2024 · 0 comments

Comments

@FabZip
Copy link

FabZip commented Jan 18, 2024

  • Corcel Version: 7.0.0
  • Framework Name & Version: Laravel 10
  • PHP Version: 8.1
  • Database Driver & Version:MariaDB

Description:

The Eloquent model's deprecated $dates property has been removed. Your application should now use the $casts property.

protected $casts = [
    'deployed_at' => 'datetime',
];

Steps To Reproduce:

See:
vendor/jgrossi/corcel/src/Model/Comment.php
vendor/jgrossi/corcel/src/Model/Post.php
vendor/jgrossi/corcel/src/Model/User.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant