last changes since 6-2023
This commit is contained in:
parent
561c5875a7
commit
c1c613a4b9
53 changed files with 1351 additions and 93 deletions
|
|
@ -77,6 +77,15 @@ class FileRepository extends BaseRepository {
|
|||
return $this->response();
|
||||
}
|
||||
|
||||
public function storeReturnFile( $content )
|
||||
{
|
||||
$this->makeFilename();
|
||||
$this->store($content);
|
||||
$this->size = Storage::disk($this->disk)->size($this->dir.$this->allowed_filename);
|
||||
$this->save();
|
||||
return $this->returnFile();
|
||||
}
|
||||
|
||||
public function store($content){
|
||||
if(!Storage::disk($this->disk)->exists( $this->dir )){
|
||||
Storage::disk($this->disk)->makeDirectory($this->dir); //creates directory
|
||||
|
|
@ -88,6 +97,11 @@ class FileRepository extends BaseRepository {
|
|||
|
||||
}
|
||||
|
||||
public function returnFile(){
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function response(){
|
||||
return Response::json([
|
||||
'error' => false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue