PHP Class App\Http\Controllers\Backend\AlbumController

Inheritance: extends BaseController
Afficher le fichier Open project: qloog/laravel5-backend

Protected Properties

Свойство Type Description
$album
$manage

Méthodes publiques

Méthode 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 méthode

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

create() public méthode

Show the form for creating a new resource.
public create ( ) : Response
Résultat Response

destroy() public méthode

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

edit() public méthode

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

index() public méthode

Display a listing of the resource.
public index ( )

photos() public méthode

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

show() public méthode

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

store() public méthode

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

storePhoto() public méthode

保存图片
public storePhoto ( )

update() public méthode

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

Property Details

$album protected_oe property

protected $album

$manage protected_oe property

protected $manage