app/Http/Controllers/SuggestionController.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)
    {
        $suggestion = new Suggestion();
        $suggestion->suggestion = $request->input('suggestion');
        $suggestion->ip = $request->getClientIp();
        $suggestion->save();
        return redirect('/')->with('message', 'Ihr Vorschlag wurde aufgenommen.');
    }
public function store ( Request $ request ) { $ suggestion = new Suggestion ( ) ; $ suggestion -> suggestion = $ request -> input ( 'suggestion' ) ; $ suggestion -> ip = $ request -> getClientIp ( ) ; $ suggestion -> save ( ) ; return redirect ( '/' ) -> with ( 'message' , 'Ihr Vorschlag wurde aufgenommen.' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .