PHP Class App\Http\Controllers\RecipesController

Inheritance: extends Controller
Mostrar archivo Open project: ngmy/webloyer

Protected Properties

Property Type Description
$recipe
$recipeForm

Public Methods

Method Description
__construct ( App\Repositories\Recipe\RecipeInterface $recipe, RecipeForm $recipeForm ) : void Create a new controller instance.
create ( ) : Response Show the form for creating a new resource.
destroy ( Recipe $recipe ) : Response Remove the specified resource from storage.
edit ( Recipe $recipe ) : Response Show the form for editing the specified resource.
index ( Illuminate\Http\Request $request ) : Response Display a listing of the resource.
show ( Recipe $recipe ) : Response Display the specified resource.
store ( Illuminate\Http\Request $request ) : Response Store a newly created resource in storage.
update ( Illuminate\Http\Request $request, Recipe $recipe ) : Response Update the specified resource in storage.

Method Details

__construct() public method

Create a new controller instance.
public __construct ( App\Repositories\Recipe\RecipeInterface $recipe, RecipeForm $recipeForm ) : void
$recipe App\Repositories\Recipe\RecipeInterface
$recipeForm App\Services\Form\Recipe\RecipeForm
return void

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 ( Recipe $recipe ) : Response
$recipe app\models\Recipe
return Response

edit() public method

Show the form for editing the specified resource.
public edit ( Recipe $recipe ) : Response
$recipe app\models\Recipe
return Response

index() public method

Display a listing of the resource.
public index ( Illuminate\Http\Request $request ) : Response
$request Illuminate\Http\Request
return Response

show() public method

Display the specified resource.
public show ( Recipe $recipe ) : Response
$recipe app\models\Recipe
return Response

store() public method

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

update() public method

Update the specified resource in storage.
public update ( Illuminate\Http\Request $request, Recipe $recipe ) : Response
$request Illuminate\Http\Request
$recipe app\models\Recipe
return Response

Property Details

$recipe protected_oe property

protected $recipe

$recipeForm protected_oe property

protected $recipeForm