PHP Class App\Http\Controllers\Backend\UploadController

Inheritance: extends App\Http\Controllers\Controller
Mostrar archivo Open project: qloog/laravel5-backend

Protected Properties

Property Type Description
$manager

Public Methods

Method Description
__construct ( UploadsManager $manager )
createFolder ( App\Http\Requests\Backend\UploadNewFolderRequest $request ) Create a new folder
deleteFile ( Illuminate\Http\Request $request ) Delete a file
deleteFolder ( Illuminate\Http\Request $request ) Delete a folder
destroy ( integer $id ) : Illuminate\Http\Response Remove the specified resource from storage.
edit ( integer $id ) : Illuminate\Http\Response Show the form for editing the specified resource.
index ( Illuminate\Http\Request $request ) : Illuminate\Http\Response Show page of files / subfolders
show ( integer $id ) : Illuminate\Http\Response Display the specified resource.
store ( ) : Illuminate\Http\Response Store a newly created resource in storage.
update ( integer $id ) : Illuminate\Http\Response Update the specified resource in storage.
uploadFile ( App\Http\Requests\Backend\UploadFileRequest $request ) Upload new file
uploadImage ( ) : Illuminate\Http\Response common upload image with js

Method Details

__construct() public method

public __construct ( UploadsManager $manager )
$manager App\services\UploadsManager

createFolder() public method

Create a new folder
public createFolder ( App\Http\Requests\Backend\UploadNewFolderRequest $request )
$request App\Http\Requests\Backend\UploadNewFolderRequest

deleteFile() public method

Delete a file
public deleteFile ( Illuminate\Http\Request $request )
$request Illuminate\Http\Request

deleteFolder() public method

Delete a folder
public deleteFolder ( Illuminate\Http\Request $request )
$request Illuminate\Http\Request

destroy() public method

Remove the specified resource from storage.
public destroy ( integer $id ) : Illuminate\Http\Response
$id integer
return Illuminate\Http\Response

edit() public method

Show the form for editing the specified resource.
public edit ( integer $id ) : Illuminate\Http\Response
$id integer
return Illuminate\Http\Response

index() public method

Show page of files / subfolders
public index ( Illuminate\Http\Request $request ) : Illuminate\Http\Response
$request Illuminate\Http\Request
return Illuminate\Http\Response

show() public method

Display the specified resource.
public show ( integer $id ) : Illuminate\Http\Response
$id integer
return Illuminate\Http\Response

store() public method

Store a newly created resource in storage.
public store ( ) : Illuminate\Http\Response
return Illuminate\Http\Response

update() public method

Update the specified resource in storage.
public update ( integer $id ) : Illuminate\Http\Response
$id integer
return Illuminate\Http\Response

uploadFile() public method

Upload new file
public uploadFile ( App\Http\Requests\Backend\UploadFileRequest $request )
$request App\Http\Requests\Backend\UploadFileRequest

uploadImage() public method

common upload image with js
public uploadImage ( ) : Illuminate\Http\Response
return Illuminate\Http\Response

Property Details

$manager protected_oe property

protected $manager