app/Http/Controllers/News/CategoryController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Models\Category  $category
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit(Category $category)
    {
    	if($category->id === 2) {
			dd($category->news);
		}
		return view('news.categories.edit', ['category' => $category]);
    }
public function edit ( Category $ category ) { if ( $ category -> id === 2 ) { dd ( $ category -> news ) ; } return view ( 'news.categories.edit' , [ 'category' => $ category ] ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .