Exemple #1
0
 public function getLastContent()
 {
     $input = \Request::all();
     $content_arr = [];
     if (isset($input['type']) && isset($input['limit'])) {
         $type = $input['type'];
         $limit = $input['limit'];
         $content_arr = Content::getLastContent($type, $limit);
     }
     return $content_arr;
 }