app/Http/Controllers/Admin/GraduetController.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)
    {
        $name = $request->input('name');
        $date = $request->input('date');
        $desc = $request->input('desc');
        Graduet::create([
            'graduet_name' => $name,
            'graduet_date' => $date,
            'graduet_desc' => $desc,
        ]);
        return redirect()->to('adminpages/graduet');
    }
public function store ( Request $ request ) { $ name = $ request -> input ( 'name' ) ; $ date = $ request -> input ( 'date' ) ; $ desc = $ request -> input ( 'desc' ) ; Graduet :: create ( [ 'graduet_name' => $ name , 'graduet_date' => $ date , 'graduet_desc' => $ desc , ] ) ; return redirect ( ) -> to ( 'adminpages/graduet' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .