Esempio n. 1
0
 public static function create_nav($model)
 {
     $doc = self::create(Record::allow($model, ['title', 'name', 'type']));
     $nav = Nav::create(['doc_id' => $doc['id']]);
     return $doc;
 }