Astrotomic / laravel-translatable

A Laravel package for multilingual models

Home Page:https://docs.astrotomic.info/laravel-translatable/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to insert data in main post table ?

Abdulsami660 opened this issue · comments

hi , i have a main post table with column author and a post_translations table which holds title and content column. my question is how can i insert data in author field because documentation says pass $req->all() in create method of Post Model and your translations are inserted and post record as well but in my case author column is giving null and post_translation attribute are inserted
Screenshot (96)
. please help.
Thanks

commented

same here, i would expect the original create() function to still work the way it was intended...
now it doesn't save because it's missing required fields. (the Query is stating no data is provided and all fields are empty)

This issue is stale because it has been open 21 days with no activity. Remove stale label or comment or this will be closed in 7 days