PHP Class App\Http\Controllers\Backend\AlbumController

Inheritance: extends BaseController
Mostra file Open project: qloog/laravel5-backend

Protected Properties

Property Type Description
$album
$manage

Public Methods

Method Description
__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.

Method Details

__construct() public method

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

create() public method

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

destroy() public method

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

edit() public method

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

index() public method

Display a listing of the resource.
public index ( )

photos() public method

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

show() public method

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

store() public method

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

storePhoto() public method

保存图片
public storePhoto ( )

update() public method

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

Property Details

$album protected_oe property

protected $album

$manage protected_oe property

protected $manage