src/Media/Http/Controllers/MediaAdminController.php
public function postDelete($mediaId)
    {
        $media = Media::findOrFail($mediaId);
        $media->delete();

        return redirect($this->admin->currentUrl())->with('notifications_below_header', [['type' => 'success', 'icon' => 'check-circle', 'title' => 'Success!', 'message' => 'The Media was successfully deleted.', 'dismissable' => false]]);
    }
public function postDelete($mediaId)
    {
        $media = Media::findOrFail($mediaId);
        $media->delete();

        return redirect($this->admin->currentUrl())->with('notifications_below_header', [['type' => 'success', 'icon' => 'check-circle', 'title' => 'Success!', 'message' => 'The Media was successfully deleted.', 'dismissable' => false]]);
    }
public function postDelete ( $ mediaId ) { $ media = Media :: findOrFail ( $ mediaId ) ; $ media -> delete ( ) ; return redirect ( $ this -> admin -> currentUrl ( ) ) -> with ( 'notifications_below_header' , [ [ 'type' => 'success' , 'icon' => 'check-circle' , 'title' => 'Success!' , 'message' => 'The Media was successfully deleted.' , 'dismissable' => false ] ] ) ; }
Process Delete Media Request.

@param int $mediaId

@return \Illuminate\Http\RedirectResponse
Process Delete Media Request .