Laravel storage files

Posted 1 month ago by deepu07

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!

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.