1 | <?php |
||
11 | class BlockController extends AdminBaseController |
||
12 | { |
||
13 | /** |
||
14 | * @var BlockRepository |
||
15 | */ |
||
16 | private $block; |
||
17 | |||
18 | public function __construct(BlockRepository $block) |
||
24 | |||
25 | /** |
||
26 | * Display a listing of the resource. |
||
27 | * |
||
28 | * @return Response |
||
29 | */ |
||
30 | public function index() |
||
36 | |||
37 | /** |
||
38 | * Show the form for creating a new resource. |
||
39 | * |
||
40 | * @return Response |
||
41 | */ |
||
42 | public function create() |
||
46 | |||
47 | /** |
||
48 | * Store a newly created resource in storage. |
||
49 | * |
||
50 | * @param CreateBlockRequest $request |
||
51 | * @return Response |
||
52 | */ |
||
53 | public function store(CreateBlockRequest $request) |
||
60 | |||
61 | /** |
||
62 | * Show the form for editing the specified resource. |
||
63 | * |
||
64 | * @param Block $block |
||
65 | * @return Response |
||
66 | */ |
||
67 | public function edit(Block $block) |
||
71 | |||
72 | /** |
||
73 | * Update the specified resource in storage. |
||
74 | * |
||
75 | * @param Block $block |
||
76 | * @param UpdateBlockRequest $request |
||
77 | * @return Response |
||
78 | */ |
||
79 | public function update(Block $block, UpdateBlockRequest $request) |
||
91 | |||
92 | /** |
||
93 | * Remove the specified resource from storage. |
||
94 | * |
||
95 | * @param Block $block |
||
96 | * @return Response |
||
97 | */ |
||
98 | public function destroy(Block $block) |
||
105 | } |
||
106 |