public static function part($name) { // $sectionTitle=Snippet::find($name); $section_id = Snippet::whereTitle($name)->get(); foreach ($section_id as $value) { $id = $value['id']; } $section = Snippet::find($id); //return $section->content; eval('?' . '>' . $section->content); }