app/Http/Controllers/brandsController.php
/**
     * Store a newly created resource in storage.
     *
     * @param BrandDataRequest|Request $request
     * @return \Illuminate\Http\Response
     */
Store a newly created resource in storage.
@param BrandDataRequest|Request $request
@return \Illuminate\Http\Response
Store a newly created resource in storage . @param BrandDataRequest|Request $request @return \ Illuminate \ Http \ Response
public function store(BrandDataRequest $request)
    {
       $Brand=new Brands;
        $Brand->brandName=$request->get('brandName');
        $Brand->admin_id=$request->get('admin_id');
        $Brand->save();
        \Session::flash('flash_message','Created Successfully.'); 
        return redirect()->back();
      }
public function store ( BrandDataRequest $ request ) { $ Brand = new Brands ; $ Brand -> brandName = $ request -> get ( 'brandName' ) ; $ Brand -> admin_id = $ request -> get ( 'admin_id' ) ; $ Brand -> save ( ) ; \ Session :: flash ( 'flash_message' , 'Created Successfully.' ) ; return redirect ( ) -> back ( ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .
//<--FLASH MESSAGE