????
Current Path : /home/thenclexdoctor.com/public_html/app/Models/Api/Traits/ |
Current File : /home/thenclexdoctor.com/public_html/app/Models/Api/Traits/UploaderTrait.php |
<?php namespace App\Models\Api\Traits; trait UploaderTrait { public function storage( $file) { if (!$file ) { return null; } $fileName = $file->getClientOriginalName(); $path = apiAuth()->id; $storage_path = $file->storeAs($path, $fileName); return 'store/' . $storage_path; } }
Sorry, this page is not available...