/** * Get all models. * * @return Illuminate\Support\Collection */ public function all() { return $this->model->all(); }
public function collection() { $col = self::$model->all()->toArray(); self::response($col); }