From b5afd40a49a2c2b061865a501103ea2a060f4997 Mon Sep 17 00:00:00 2001 From: Mateja Date: Mon, 2 Nov 2020 15:25:36 +0100 Subject: Standardized controllers to CRUD... --- app/Http/Controllers/NewsController.php | 92 +++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 app/Http/Controllers/NewsController.php (limited to 'app/Http/Controllers/NewsController.php') diff --git a/app/Http/Controllers/NewsController.php b/app/Http/Controllers/NewsController.php new file mode 100644 index 0000000..d44ebd9 --- /dev/null +++ b/app/Http/Controllers/NewsController.php @@ -0,0 +1,92 @@ +get(); + + //$data = ['news' => $news]; + //return view('pages.news')->with($data); + //return view('pages.news')->with('news', $news); + return view('pages.news', compact('news')); + } + + /** + * Show the form for creating a new resource. + * + * @return \Illuminate\Http\Response + */ + public function create() + { + // + } + + /** + * Store a newly created resource in storage. + * + * @param \Illuminate\Http\Request $request + * @return \Illuminate\Http\Response + */ + public function store(Request $request) + { + // + } + + /** + * Display the specified resource. + * + * @param int $id + * @return \Illuminate\Http\Response + */ + public function show($id) + { + // + } + + /** + * Show the form for editing the specified resource. + * + * @param int $id + * @return \Illuminate\Http\Response + */ + public function edit($id) + { + // + } + + /** + * Update the specified resource in storage. + * + * @param \Illuminate\Http\Request $request + * @param int $id + * @return \Illuminate\Http\Response + */ + public function update(Request $request, $id) + { + // + } + + /** + * Remove the specified resource from storage. + * + * @param int $id + * @return \Illuminate\Http\Response + */ + public function destroy($id) + { + // + } +} -- cgit v1.2.3