all media edit and show page

This commit is contained in:
cuneytsenturk
2019-02-02 14:02:26 +03:00
parent 18e381f095
commit d4b5861120
16 changed files with 196 additions and 218 deletions

View File

@ -34,9 +34,14 @@ class Uploads extends Controller
* @param $id
* @return mixed
*/
public function show($id)
public function show($id, Request $request)
{
$file = false;
$column_name = 'attachment';
if ($request->has('column_name')) {
$column_name = $request->get('column_name');
}
$media = Media::find($id);
@ -53,7 +58,7 @@ class Uploads extends Controller
$file = $media;
$html = view('partials.media.file', compact('file'))->render();
$html = view('partials.media.file', compact('file', 'column_name'))->render();
return response()->json([
'success' => true,