app/Http/Controllers/InfopraktisController.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)
    {
        $this->validate($request,[
            'tips' => 'required|',
            ]);
        $info = new Infopraktis;
        $info->tips = $request->tips;
        $info->save();
        return redirect()->route('info.index');
    }
public function store ( Request $ request ) { $ this -> validate ( $ request , [ 'tips' => 'required|' , ] ) ; $ info = new Infopraktis ; $ info -> tips = $ request -> tips ; $ info -> save ( ) ; return redirect ( ) -> route ( 'info.index' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .