PHP 클래스 App\Http\Controllers\Backend\AlbumController

상속: extends BaseController
파일 보기 프로젝트 열기: qloog/laravel5-backend

보호된 프로퍼티들

프로퍼티 타입 설명
$album
$manage

공개 메소드들

메소드 설명
__construct ( App\Contracts\Repositories\AlbumRepository $album, UploadsManager $manager )
create ( ) : Response Show the form for creating a new resource.
destroy ( integer $id ) Remove the specified resource from storage.
edit ( integer $id ) : Illuminate\Contracts\View\Factory | Illuminate\View\View Show the form for editing the specified resource.
index ( ) Display a listing of the resource.
photos ( $id ) : Illuminate\Contracts\View\Factory | Illuminate\View\View 上传图片
show ( integer $id ) Display the specified resource.
store ( Illuminate\Http\Request $request ) : Illuminate\Http\RedirectResponse Store a newly created resource in storage.
storePhoto ( ) 保存图片
update ( Illuminate\Http\Request $request, integer $id ) : Illuminate\Http\RedirectResponse Update the specified resource in storage.

메소드 상세

__construct() 공개 메소드

public __construct ( App\Contracts\Repositories\AlbumRepository $album, UploadsManager $manager )
$album App\Contracts\Repositories\AlbumRepository
$manager App\services\UploadsManager

create() 공개 메소드

Show the form for creating a new resource.
public create ( ) : Response
리턴 Response

destroy() 공개 메소드

Remove the specified resource from storage.
public destroy ( integer $id )
$id integer

edit() 공개 메소드

Show the form for editing the specified resource.
public edit ( integer $id ) : Illuminate\Contracts\View\Factory | Illuminate\View\View
$id integer
리턴 Illuminate\Contracts\View\Factory | Illuminate\View\View

index() 공개 메소드

Display a listing of the resource.
public index ( )

photos() 공개 메소드

上传图片
public photos ( $id ) : Illuminate\Contracts\View\Factory | Illuminate\View\View
$id
리턴 Illuminate\Contracts\View\Factory | Illuminate\View\View

show() 공개 메소드

Display the specified resource.
public show ( integer $id )
$id integer

store() 공개 메소드

Store a newly created resource in storage.
public store ( Illuminate\Http\Request $request ) : Illuminate\Http\RedirectResponse
$request Illuminate\Http\Request
리턴 Illuminate\Http\RedirectResponse

storePhoto() 공개 메소드

保存图片
public storePhoto ( )

update() 공개 메소드

Update the specified resource in storage.
public update ( Illuminate\Http\Request $request, integer $id ) : Illuminate\Http\RedirectResponse
$request Illuminate\Http\Request
$id integer
리턴 Illuminate\Http\RedirectResponse

프로퍼티 상세

$album 보호되어 있는 프로퍼티

protected $album

$manage 보호되어 있는 프로퍼티

protected $manage