aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-11-06 17:25:22 +0100
committerMateja <mail@matejamaric.com>2020-11-06 17:25:22 +0100
commit7af18c65418027a4cc1cb9fe71f11489029c3912 (patch)
treeec86b4b0590fa2603c7d5384ebc6ded003d9b5fe /app
parent8503bedc8475543e8b20b40fe4c43576d151ae05 (diff)
downloadyota-laravel-7af18c65418027a4cc1cb9fe71f11489029c3912.tar.gz
yota-laravel-7af18c65418027a4cc1cb9fe71f11489029c3912.zip
GalleryController, better news, using Bootstrap.
Diffstat (limited to 'app')
-rw-r--r--app/Http/Controllers/GalleryController.php84
-rw-r--r--app/Http/Controllers/PagesController.php5
-rw-r--r--app/Providers/AppServiceProvider.php3
3 files changed, 86 insertions, 6 deletions
diff --git a/app/Http/Controllers/GalleryController.php b/app/Http/Controllers/GalleryController.php
new file mode 100644
index 0000000..efbb55f
--- /dev/null
+++ b/app/Http/Controllers/GalleryController.php
@@ -0,0 +1,84 @@
+<?php
+
+namespace App\Http\Controllers;
+
+use Illuminate\Http\Request;
+
+class GalleryController extends Controller
+{
+ /**
+ * Display a listing of the resource.
+ *
+ * @return \Illuminate\Http\Response
+ */
+ public function index()
+ {
+ return view('pages.gallery');
+ }
+
+ /**
+ * Show the form for creating a new resource.
+ *
+ * @return \Illuminate\Http\Response
+ */
+ public function create()
+ {
+ //
+ }
+
+ /**
+ * Store a newly created resource in storage.
+ *
+ * @param \Illuminate\Http\Request $request
+ * @return \Illuminate\Http\Response
+ */
+ public function store(Request $request)
+ {
+ //
+ }
+
+ /**
+ * Display the specified resource.
+ *
+ * @param int $id
+ * @return \Illuminate\Http\Response
+ */
+ public function show($id)
+ {
+ //
+ }
+
+ /**
+ * Show the form for editing the specified resource.
+ *
+ * @param int $id
+ * @return \Illuminate\Http\Response
+ */
+ public function edit($id)
+ {
+ //
+ }
+
+ /**
+ * Update the specified resource in storage.
+ *
+ * @param \Illuminate\Http\Request $request
+ * @param int $id
+ * @return \Illuminate\Http\Response
+ */
+ public function update(Request $request, $id)
+ {
+ //
+ }
+
+ /**
+ * Remove the specified resource from storage.
+ *
+ * @param int $id
+ * @return \Illuminate\Http\Response
+ */
+ public function destroy($id)
+ {
+ //
+ }
+}
diff --git a/app/Http/Controllers/PagesController.php b/app/Http/Controllers/PagesController.php
index 5ca01c7..2721fda 100644
--- a/app/Http/Controllers/PagesController.php
+++ b/app/Http/Controllers/PagesController.php
@@ -12,11 +12,6 @@ class PagesController extends Controller
return view('pages.index');
}
- public function gallery(Request $request)
- {
- return view('pages.gallery');
- }
-
public function sponsoring(Request $request)
{
return view('pages.sponsoring');
diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php
index ee8ca5b..d1f5496 100644
--- a/app/Providers/AppServiceProvider.php
+++ b/app/Providers/AppServiceProvider.php
@@ -3,6 +3,7 @@
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
+use Illuminate\Pagination\Paginator;
class AppServiceProvider extends ServiceProvider
{
@@ -23,6 +24,6 @@ class AppServiceProvider extends ServiceProvider
*/
public function boot()
{
- //
+ Paginator::useBootstrap();
}
}