app/Http/Controllers/News/NewsController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
    	$news = News::where('status', 'published')->Orwhere('status', 'draft')->paginate(10);
        return view('news.index', ['news' => $news]);
    }
public function index ( ) { $ news = News :: where ( 'status' , 'published' ) -> Orwhere ( 'status' , 'draft' ) -> paginate ( 10 ) ; return view ( 'news.index' , [ 'news' => $ news ] ) ; }
Display a listing of the resource.
Display a listing of the resource .