app/Http/Controllers/NewsController.php
/**
     * Store a newly created resource in storage.
     *
     * @param \Illuminate\Http\Request $request
     * @return \Illuminate\Http\RedirectResponse
     */
Store a newly created resource in storage.
Store a newly created resource in storage .
public function store(NewsRequest $request)
    {
        News::create($request->only(['title', 'content', 'publish_date']));
        return redirect()->route('news.index');
    }
public function store ( NewsRequest $ request ) { News :: create ( $ request -> only ( [ 'title' , 'content' , 'publish_date' ] ) ) ; return redirect ( ) -> route ( 'news.index' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .