all(); $id = $p['id']; if(getisset("table")) { ekle2([ 'title' => "", "slug" => rand() ],get("table")); request()->back(); } else { $c = Contents::where("slug",$id)->first(); $content = new Contents; $content->title = ""; $content->tkid = json_encode(Contents::getTree($id)); $content->breadcrumb = Contents::getBreadcrumbs($id,"{title} / "); $content->slug = rand(1111111,99999999); $content->type = $p['type']; $content->kid = $id; $content->save(); $return = redirect("admin/new/contents"); echo $return; }