thedevdojo / voyager

Voyager - The Missing Laravel Admin
https://voyager.devdojo.com
MIT License
11.72k stars 2.67k forks source link

Call to undefined method #5821

Open elzeroabdo opened 7 months ago

elzeroabdo commented 7 months ago

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 commented 7 months ago

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'];