/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { RssNewsFeeds::destroy($id); return redirect('rssnewsfeeds'); }
/** * @param $rssId * @return mixed */ public function getMaxDate($rssId) { return $this->rssNewsFeeds->where('rss_id', $rssId)->max('post_date'); }