From ab89fada8380c1ba9fe38ea2b8f59fe72a63e8df Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Thu, 4 Jan 2018 19:33:47 -0600 Subject: [PATCH] Added supporting Resources and Helpers --- app/Facades/RestHelper.php | 10 ++++++++++ app/Http/Resources/AcarsLog.php | 25 +++++++++++++++++++++++++ app/Http/Resources/AcarsRoute.php | 26 ++++++++++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 app/Facades/RestHelper.php create mode 100644 app/Http/Resources/AcarsLog.php create mode 100644 app/Http/Resources/AcarsRoute.php diff --git a/app/Facades/RestHelper.php b/app/Facades/RestHelper.php new file mode 100644 index 00000000..04462093 --- /dev/null +++ b/app/Facades/RestHelper.php @@ -0,0 +1,10 @@ + $this->id, + 'name' => $this->name, + 'log' => $this->log, + 'lat' => $this->lat, + 'lon' => $this->lon, + ];*/ + } +} diff --git a/app/Http/Resources/AcarsRoute.php b/app/Http/Resources/AcarsRoute.php new file mode 100644 index 00000000..a1795f16 --- /dev/null +++ b/app/Http/Resources/AcarsRoute.php @@ -0,0 +1,26 @@ + $this->id, + 'name' => $this->name, + 'order' => $this->order, + 'nav_type' => $this->nav_type, + 'lat' => $this->lat, + 'lon' => $this->lon, + ];*/ + } +}