From bbd270805f1020a313d6125e362dfa2309c89ef5 Mon Sep 17 00:00:00 2001 From: Mateja Date: Wed, 7 Oct 2020 21:41:24 +0200 Subject: Basic blade templates... --- app/Http/Controllers/PagesController.php | 6 +- resources/views/about.blade.php | 13 --- resources/views/layouts/app.blade.php | 11 +++ resources/views/pages/index.blade.php | 6 ++ resources/views/welcome.blade.php | 132 ------------------------------- 5 files changed, 20 insertions(+), 148 deletions(-) delete mode 100644 resources/views/about.blade.php create mode 100644 resources/views/layouts/app.blade.php create mode 100644 resources/views/pages/index.blade.php delete mode 100644 resources/views/welcome.blade.php diff --git a/app/Http/Controllers/PagesController.php b/app/Http/Controllers/PagesController.php index c30392a..37faffb 100644 --- a/app/Http/Controllers/PagesController.php +++ b/app/Http/Controllers/PagesController.php @@ -8,16 +8,16 @@ class PagesController extends Controller { public function index() { - return view('about'); + return view('pages.index'); } public function services() { - return view('about'); + return view('pages.index'); } public function about() { - return view('about'); + return view('pages.index'); } } diff --git a/resources/views/about.blade.php b/resources/views/about.blade.php deleted file mode 100644 index a448fac..0000000 --- a/resources/views/about.blade.php +++ /dev/null @@ -1,13 +0,0 @@ - - - - About Laravel - - - - -
-

Mama ti je gej!

-
- - diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php new file mode 100644 index 0000000..f684765 --- /dev/null +++ b/resources/views/layouts/app.blade.php @@ -0,0 +1,11 @@ + + + + + + Main page + + + @yield('content') + + diff --git a/resources/views/pages/index.blade.php b/resources/views/pages/index.blade.php new file mode 100644 index 0000000..8d377b2 --- /dev/null +++ b/resources/views/pages/index.blade.php @@ -0,0 +1,6 @@ +@extends('layouts.app') + +@section('content') +

Index

+

Something...

+@endsection diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php deleted file mode 100644 index 58d1467..0000000 --- a/resources/views/welcome.blade.php +++ /dev/null @@ -1,132 +0,0 @@ - - - - - - - Laravel - - - - - - - - - - -
- @if (Route::has('login')) - - @endif - -
-
- - - - - -
- -
-
-
- - -
-
- Laravel has wonderful, thorough documentation covering every aspect of the framework. Whether you are new to the framework or have previous experience with Laravel, we recommend reading all of the documentation from beginning to end. -
-
-
- -
-
- - -
- -
-
- Laracasts offers thousands of video tutorials on Laravel, PHP, and JavaScript development. Check them out, see for yourself, and massively level up your development skills in the process. -
-
-
- -
-
- - -
- -
-
- Laravel News is a community driven portal and newsletter aggregating all of the latest and most important news in the Laravel ecosystem, including new package releases and tutorials. -
-
-
- -
-
- -
Vibrant Ecosystem
-
- -
-
- Laravel's robust library of first-party tools and libraries, such as Forge, Vapor, Nova, and Envoyer help you take your projects to the next level. Pair them with powerful open source libraries like Cashier, Dusk, Echo, Horizon, Sanctum, Telescope, and more. -
-
-
-
-
- -
-
-
- - - - - - Shop - - - - - - - - Sponsor - -
-
- -
- Build v{{ Illuminate\Foundation\Application::VERSION }} -
-
-
-
- - -- cgit v1.2.3