\App\Http\Controllers\AdminArticleController

Summary

Methods
Properties
Constants
__construct()
index()
create()
store()
show()
edit()
update()
destroy()
getArticles()
uploadImage()
No public properties found
No constants found
saveImageInfo()
$articleRepositoryEloquent
$imageUpload
$imageRepositoryEloquent
$articleCateTag
N/A
No private methods found
No private properties found
N/A

Properties

$articleRepositoryEloquent

$articleRepositoryEloquent : 

Type

$imageUpload

$imageUpload : 

Type

$imageRepositoryEloquent

$imageRepositoryEloquent : 

Type

$articleCateTag

$articleCateTag : 

Type

Methods

__construct()

__construct(\App\Repositories\Eloquent\ArticleRepositoryEloquent  $articleRepositoryEloquent, \App\Services\ImageUpload  $imageUpload, \App\Repositories\Eloquent\ImageRepositoryEloquent  $imageRepositoryEloquent, \App\Services\ArticleCateTag  $articleCateTag) 

Parameters

\App\Repositories\Eloquent\ArticleRepositoryEloquent $articleRepositoryEloquent
\App\Services\ImageUpload $imageUpload
\App\Repositories\Eloquent\ImageRepositoryEloquent $imageRepositoryEloquent
\App\Services\ArticleCateTag $articleCateTag

index()

index() : \Illuminate\Http\Response

文章列表

Returns

\Illuminate\Http\Response

create()

create() : \Illuminate\Http\Response

创建文章

Returns

\Illuminate\Http\Response

store()

store(\App\Http\Requests\ArticlePost  $request) : \Illuminate\Http\Response

保存文章

Parameters

\App\Http\Requests\ArticlePost $request

Returns

\Illuminate\Http\Response

show()

show(integer  $id) : \Illuminate\Http\Response

Display the specified resource.

Parameters

integer $id

Returns

\Illuminate\Http\Response

edit()

edit(integer  $id) : \Illuminate\Http\Response

Show the form for editing the specified resource.

Parameters

integer $id

Returns

\Illuminate\Http\Response

update()

update(\App\Http\Requests\ArticlePost  $request, integer  $id) : \Illuminate\Http\Response

Update the specified resource in storage.

Parameters

\App\Http\Requests\ArticlePost $request
integer $id

Returns

\Illuminate\Http\Response

destroy()

destroy(integer  $id) : \Illuminate\Http\Response

Remove the specified resource from storage.

Parameters

integer $id

Returns

\Illuminate\Http\Response

getArticles()

getArticles() 

uploadImage()

uploadImage(  $request) : mixed

MKDown 图片上传

Parameters

$request

Request 上传请求

Returns

mixed

saveImageInfo()

saveImageInfo(  $file_arr) : string

保存图片信息到数据库

Parameters

$file_arr

array

Returns

string —

插入ID