app/Http/Controllers/Admin/front/EmpReportController.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(StoreEmpReportsRequest $request)
    {
        dd($request);
        $image = basename($request->imageFile->store("public"));
        $request['imageFile'] = $image;
        $s = EmpReport::create($request->all());
        Session::flash("msg","تمت اضافة التقرير بنجاح");
        redirect()->route('emp.index');
    }
public function store ( StoreEmpReportsRequest $ request ) { dd ( $ request ) ; $ image = basename ( $ request -> imageFile -> store ( " public " ) ) ; $ request [ 'imageFile' ] = $ image ; $ s = EmpReport :: create ( $ request -> all ( ) ) ; Session :: flash ( " msg " , " تمت اضافة التقرير بنجاح"); redirect ( ) -> route ( 'emp.index' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .