app/Http/Controllers/PostController.php
/**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
Show the form for creating a new resource.
@return \Illuminate\Http\Response
Show the form for creating a new resource . @return \ Illuminate \ Http \ Response
public function create()
    {
        $list_berita = Kategori::all()->pluck('nama_kategori','id');
        $list_tag = Tag::all()->pluck('nama_tag','id');
        return view('news.create',compact('list_berita','list_tag'));
    }
public function create ( ) { $ list_berita = Kategori :: all ( ) -> pluck ( 'nama_kategori' , 'id' ) ; $ list_tag = Tag :: all ( ) -> pluck ( 'nama_tag' , 'id' ) ; return view ( 'news.create' , compact ( 'list_berita' , 'list_tag' ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .