moving image to another folder

 // $request->validate([

        //     'slip' => 'required|image|mimes:jpeg,png,jpg,gif,svg|max:2048',
        // ]);

        // $imageName = time() . '.' . $request->slip->extension();

        // $request->slip->move(public_path('images'), $imageName);

        // return back()
        //     ->with('success', 'You have successfully uploaded the slip.')
        //     ->with('image', $imageName);

Comments

Popular posts from this blog

useCallback hook in React

Passing array from child to parent component

Enhance existing Laravel CRUD application with advanced search and filtering capabilities.