app/Http/Controllers/StudentController.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)
    {
         dd($request->all());
        $student = new Student;
        $student->name = $request->name;
        $student->email = $request->email;
        $student->fb = $request->facebook;
        $student->mobile = $request->mobile;
        $student->save();
        return redirect('/');
    }
public function store ( Request $ request ) { $ student = new Student ; $ student -> name = $ request -> name ; $ student -> email = $ request -> email ; $ student -> fb = $ request -> facebook ; $ student -> mobile = $ request -> mobile ; $ student -> save ( ) ; return redirect ( '/' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .
// // dd($request->all());