프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$attachment | |||
$attachmentService | |||
$pageRepo |
메소드 | 설명 | |
---|---|---|
__construct ( |
AttachmentController constructor. | |
attachLink ( Illuminate\Http\Request $request ) : mixed | Attach a link to a page. | |
delete ( $attachmentId ) : mixed | Delete a specific attachment in the system. | |
get ( $attachmentId ) : Illuminate\Contracts\Routing\ResponseFactory | Illuminate\Http\RedirectResponse | |
Get an attachment from storage. | |
listForPage ( $pageId ) : mixed | Get the attachments for a specific page. | |
sortForPage ( $pageId, Illuminate\Http\Request $request ) : mixed | Update the attachment sorting. | |
update ( $attachmentId, Illuminate\Http\Request $request ) : |
Update the details of an existing file. | |
upload ( Illuminate\Http\Request $request ) : Illuminate\Contracts\Routing\ResponseFactory | Illuminate\Http\JsonResponse | |
Endpoint at which attachments are uploaded to. | |
uploadUpdate ( integer $attachmentId, Illuminate\Http\Request $request ) : mixed | Update an uploaded attachment. |
public __construct ( |
||
$attachmentService | ||
$attachment | ||
$pageRepo |
public attachLink ( Illuminate\Http\Request $request ) : mixed | ||
$request | Illuminate\Http\Request | |
리턴 | mixed |
public get ( $attachmentId ) : Illuminate\Contracts\Routing\ResponseFactory | Illuminate\Http\RedirectResponse | |
||
$attachmentId | ||
리턴 | Illuminate\Contracts\Routing\ResponseFactory | Illuminate\Http\RedirectResponse | |
public listForPage ( $pageId ) : mixed | ||
$pageId | ||
리턴 | mixed |
public sortForPage ( $pageId, Illuminate\Http\Request $request ) : mixed | ||
$pageId | ||
$request | Illuminate\Http\Request | |
리턴 | mixed |
public upload ( Illuminate\Http\Request $request ) : Illuminate\Contracts\Routing\ResponseFactory | Illuminate\Http\JsonResponse | |
||
$request | Illuminate\Http\Request | |
리턴 | Illuminate\Contracts\Routing\ResponseFactory | Illuminate\Http\JsonResponse | |
public uploadUpdate ( integer $attachmentId, Illuminate\Http\Request $request ) : mixed | ||
$attachmentId | integer | |
$request | Illuminate\Http\Request | |
리턴 | mixed |