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