app/Http/Controllers/EventController.php
/**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
Store a newly created resource in storage.
Store a newly created resource in storage .
public function store(Request $request)
    {
        $event = Event::create($request->all());
        return redirect()->route('events.index')->with('success', 'событие созданно!');
    }
public function store ( Request $ request ) { $ event = Event :: create ( $ request -> all ( ) ) ; return redirect ( ) -> route ( 'events.index' ) -> with ( 'success' , 'событие созданно!'); }
Store a newly created resource in storage.
Store a newly created resource in storage .