deepu07's avatar
Level 11

Laravel storage files

Hi guys, below code is working fine if I upload Image but my requirement is I want to upload .css or .php or .js file and save in my local. How can I do that?

            $image = $request->file('sheet');
            $filename = auth()->user()->name . '.' . $image->getClientOriginalExtension();
            \Image::make($image)->save( public_path().'/uploads/' . $filename );
        }```
Thanks!
0 likes
1 reply

Please or to participate in this conversation.