This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

kaseng8729030
kaseng8729030

hello guys,

i am beginner please help i am facing problem i created custom plugin for my blog working perfectly but i want to keep back end user details in the database while posting on blog. i don't want to let them choose their email from drop down i want to do all this behind the seen please help

Thanks in advance

Last updated

arrcrown
arrcrown

did you try to use this on your model. use BackendAuth;

public function beforeSave() { $user = BackendAuth::getUser(); $this->user_id = $user->id; // $this->user_id - refers to your table column }

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.