aboutsummaryrefslogtreecommitdiff
path: root/app/Http/Controllers/PagesController.php
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-11-02 15:25:36 +0100
committerMateja <mail@matejamaric.com>2020-11-02 15:25:36 +0100
commitb5afd40a49a2c2b061865a501103ea2a060f4997 (patch)
tree64b8ced33431c908442881ff3e63b898023f3c3e /app/Http/Controllers/PagesController.php
parentcd8cfe9d6a0b786e03142ae492b2d0d52f92e4f8 (diff)
downloadyota-laravel-b5afd40a49a2c2b061865a501103ea2a060f4997.tar.gz
yota-laravel-b5afd40a49a2c2b061865a501103ea2a060f4997.zip
Standardized controllers to CRUD...
Diffstat (limited to 'app/Http/Controllers/PagesController.php')
-rw-r--r--app/Http/Controllers/PagesController.php26
1 files changed, 0 insertions, 26 deletions
diff --git a/app/Http/Controllers/PagesController.php b/app/Http/Controllers/PagesController.php
index ac7abab..5ca01c7 100644
--- a/app/Http/Controllers/PagesController.php
+++ b/app/Http/Controllers/PagesController.php
@@ -5,9 +5,6 @@ namespace App\Http\Controllers;
use Illuminate\Http\Request;
use function dd;
-use App\Models\Post;
-use App\Models\Reservation;
-
class PagesController extends Controller
{
public function index(Request $request)
@@ -15,16 +12,6 @@ class PagesController extends Controller
return view('pages.index');
}
- public function news(Request $request)
- {
- $news = Post::orderBy('created_at', 'desc')->get();
-
- //$data = ['news' => $news];
- //return view('pages.news')->with($data);
- //return view('pages.news')->with('news', $news);
- return view('pages.news', compact('news'));
- }
-
public function gallery(Request $request)
{
return view('pages.gallery');
@@ -34,17 +21,4 @@ class PagesController extends Controller
{
return view('pages.sponsoring');
}
-
- public function activities(Request $request)
- {
- $activities = Reservation::where('approved', '1')->get();
- //$activities = Reservation::addSelect([
- //'specialCall' => SpecialCall::select('sign')
- ////->whereColumn('reservations.specialCall', 'special_calls.id')
- //->whereColumn('specialCall', 'id')
- //->limit(1)
- //])->get();
-
- return view('pages.activities', compact('activities'));
- }
}