__construct()
__construct()
Controller for Posts This includes the Upload, showing/editing posts and zip download
uploadPost(\Illuminate\Http\Request $request) : \Illuminate\Contracts\View\Factory|\Illuminate\View\View
Create a Post with title, description, owner
\Illuminate\Http\Request | $request | sent from the frontend |
list of posts
update( $id, \Illuminate\Http\Request $request) : \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector
Uodate a specific Post with a title, description, tags and files
$id | of the post |
|
\Illuminate\Http\Request | $request | containing the new Post information |
deletePost( $idToDelete, \Illuminate\Http\Request $request) : \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector
Delete a specific Post
$idToDelete | of the post |
|
\Illuminate\Http\Request | $request |
to the List of posts view
getZipDownload(\App\Post $post) : \Symfony\Component\HttpFoundation\BinaryFileResponse
Downloads all the files from a post into a zip.
\App\Post | $post | to download as a zip |
zip download file