app/Http/Controllers/HallController.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)
    {
        $request->validate([
            'name'  => 'required', 
        ]);
        Hall::create([
            'name' => ucwords($request->name),
        ]);
        return redirect()->back()->with('success', 'Hall has been added successfully');
    }
public function store ( Request $ request ) { $ request -> validate ( [ 'name' => 'required' , ] ) ; Hall :: create ( [ 'name' => ucwords ( $ request -> name ) , ] ) ; return redirect ( ) -> back ( ) -> with ( 'success' , 'Hall has been added successfully' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .