\App\Http\Controllers\AdminPictureController

Summary

Methods
Properties
Constants
__construct()
index()
uploadImage()
destroy()
editFilename()
No public properties found
No constants found
saveImageInfo()
destroyImage()
$imageUpload
$imageRepositoryEloquent
N/A
No private methods found
No private properties found
N/A

Properties

$imageUpload

$imageUpload : 

Type

$imageRepositoryEloquent

$imageRepositoryEloquent : 

Type

Methods

index()

index() 

uploadImage()

uploadImage(\Illuminate\Http\Request  $request) 

Parameters

\Illuminate\Http\Request $request

destroy()

destroy(  $id) 

删除图片

Parameters

$id

editFilename()

editFilename(  $id, \Illuminate\Http\Request  $request) 

Parameters

$id
\Illuminate\Http\Request $request

saveImageInfo()

saveImageInfo(  $file_arr) : string

保存图片信息到数据库

Parameters

$file_arr

array

Returns

string —

插入ID

destroyImage()

destroyImage(  $image_info) 

Parameters

$image_info