What is Difference between store() and storeAs() function in Laravel?

Forums LaravelWhat is Difference between store() and storeAs() function in Laravel?
Staff asked 2 years ago

Answers (1)

Add Answer
Staff answered 2 years ago

The distinction is that the store function takes two parameters and creates a unique id for saving the image, but the storeAs method takes three parameters and stores the image with a user-generated name. They both save images in the public folder.

/storage/app/public

 

Subscribe

Select Categories