1 | <?php |
||
13 | class PagesMediaController extends AuthorizedController |
||
14 | { |
||
15 | /** |
||
16 | * {@inheritdoc} |
||
17 | */ |
||
18 | protected $resource = Page::class; |
||
19 | |||
20 | /** |
||
21 | * {@inheritdoc} |
||
22 | */ |
||
23 | public function authorizeResource($model, $parameter = null, array $options = [], $request = null): void |
||
39 | |||
40 | /** |
||
41 | * List all page media. |
||
42 | * |
||
43 | * @param \Cortex\Foundation\DataTables\MediaDataTable $mediaDataTable |
||
44 | * @param \Cortex\Pages\Models\Page $page |
||
45 | * |
||
46 | * @return \Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse |
||
47 | */ |
||
48 | public function index(Page $page, MediaDataTable $mediaDataTable) |
||
57 | |||
58 | /** |
||
59 | * Store new page media. |
||
60 | * |
||
61 | * @param \Cortex\Foundation\Http\Requests\ImageFormRequest $request |
||
62 | * @param \Cortex\Pages\Models\Page $page |
||
63 | * |
||
64 | * @return void |
||
65 | */ |
||
66 | public function store(ImageFormRequest $request, Page $page): void |
||
74 | |||
75 | /** |
||
76 | * Destroy given page media. |
||
77 | * |
||
78 | * @param \Cortex\Pages\Models\Page $page |
||
79 | * @param \Spatie\MediaLibrary\Models\Media $media |
||
80 | * |
||
81 | * @return \Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse |
||
82 | */ |
||
83 | public function destroy(Page $page, Media $media) |
||
92 | } |
||
93 |
This function has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed from the class and what other function to use instead.