Skip to content

Commit

Permalink
Fixing Upload Image and File
Browse files Browse the repository at this point in the history
  • Loading branch information
bachtiarpanjaitan committed Dec 17, 2023
1 parent b69594a commit d6281a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions file/src/Traits/Upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ trait Upload {
* - rules: string - Laravel validation format
* @return array Image Attributes
*/
public function uploadImage(Request $req,array $options){
public static function uploadImage(Request $req,array $options){
try {
$imageProp = [];
$_imageValidationRules = isset($options['rules'])? $options['rules']:'image|mimes:jpg,png,jpeg,svg|max:1024';
Expand Down Expand Up @@ -67,7 +67,7 @@ public function uploadImage(Request $req,array $options){
* - permission: string - set permission folder of destination path, default: 777,
* @return array Image Attributes
*/
public function uploadFile(Request $request, array $options){
public static function uploadFile(Request $request, array $options){
try {
$fileProp = [];
$path = $options['path'];
Expand Down

0 comments on commit d6281a9

Please sign in to comment.