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

Call to undefined method #5821

Open
elzeroabdo opened this issue Nov 26, 2023 · 1 comment
Open

Call to undefined method #5821

elzeroabdo opened this issue Nov 26, 2023 · 1 comment

Comments

@elzeroabdo
Copy link

Laravel version

10

PHP version

8

Voyager version

1.7

Database

mysql 8

Description

image

when i created database table and want to create new record get this message

Steps to reproduce

i want solve this error.

Expected behavior

.

Screenshots

image

Additional context

No response

@Emerica
Copy link
Contributor

Emerica commented Nov 26, 2023

Did you modify the Post model? More specifically did you remove the Translatable trait?

use TCG\Voyager\Traits\Translatable;

class Post extends Model
{
    use Translatable;
    use Resizable;

    protected $translatable = ['title', 'seo_title', 'excerpt', 'body', 'slug', 'meta_description', 'meta_keywords'];

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

No branches or pull requests

2 participants