/** * Save the model to the database. * * @param array $options * An array of options to save. * * @return bool * Returns true if the post was saved, false otherwise. */ public function save(array $options = []) { // Make sure that the post_name slug attribute is set. if (empty($this->post_name)) { $this->setPostNameAttribute(); } // Set dates. $this->handleDates(); // Call the parent save. parent::save($options); }