PHP Class REBELinBLUE\Deployer\Http\Controllers\Admin\ProjectController

Inheritance: extends REBELinBLUE\Deployer\Http\Controllers\Resources\ResourceController
Show file Open project: rebelinblue/deployer

Public Methods

Method Description
__construct ( REBELinBLUE\Deployer\Contracts\Repositories\ProjectRepositoryInterface $repository ) ProjectController constructor.
index ( REBELinBLUE\Deployer\Contracts\Repositories\TemplateRepositoryInterface $templateRepository, REBELinBLUE\Deployer\Contracts\Repositories\GroupRepositoryInterface $groupRepository, Illuminate\Http\Request $request ) : Illuminate\View\View Shows all projects.
store ( StoreProjectRequest $request ) : Model Store a newly created project in storage.
update ( integer $project_id, StoreProjectRequest $request ) : Model Update the specified project in storage.

Method Details

__construct() public method

ProjectController constructor.
public __construct ( REBELinBLUE\Deployer\Contracts\Repositories\ProjectRepositoryInterface $repository )
$repository REBELinBLUE\Deployer\Contracts\Repositories\ProjectRepositoryInterface

index() public method

Shows all projects.
public index ( REBELinBLUE\Deployer\Contracts\Repositories\TemplateRepositoryInterface $templateRepository, REBELinBLUE\Deployer\Contracts\Repositories\GroupRepositoryInterface $groupRepository, Illuminate\Http\Request $request ) : Illuminate\View\View
$templateRepository REBELinBLUE\Deployer\Contracts\Repositories\TemplateRepositoryInterface
$groupRepository REBELinBLUE\Deployer\Contracts\Repositories\GroupRepositoryInterface
$request Illuminate\Http\Request
return Illuminate\View\View

store() public method

Store a newly created project in storage.
public store ( StoreProjectRequest $request ) : Model
$request REBELinBLUE\Deployer\Http\Requests\StoreProjectRequest
return Illuminate\Database\Eloquent\Model

update() public method

Update the specified project in storage.
public update ( integer $project_id, StoreProjectRequest $request ) : Model
$project_id integer
$request REBELinBLUE\Deployer\Http\Requests\StoreProjectRequest
return Illuminate\Database\Eloquent\Model