From 609f0913ae432be7d46297954f974a75cb51b558 Mon Sep 17 00:00:00 2001 From: Herry Prasetyo Date: Mon, 18 Apr 2022 02:33:10 +0700 Subject: [PATCH 1/2] ribettanpassh --- app/Http/Controllers/CategoryController.php | 2 +- routes/web.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/CategoryController.php b/app/Http/Controllers/CategoryController.php index 735f384..b423115 100644 --- a/app/Http/Controllers/CategoryController.php +++ b/app/Http/Controllers/CategoryController.php @@ -14,7 +14,7 @@ class CategoryController extends Controller */ public function index() { - // + return '

CategoryController@index

'; } /** diff --git a/routes/web.php b/routes/web.php index b130397..8933517 100644 --- a/routes/web.php +++ b/routes/web.php @@ -16,3 +16,5 @@ Route::get('/', function () { return view('welcome'); }); + +Route::resource('categories', App\Http\Controllers\CategoryController::class); From 153f1709b25e9282403f3447103197c3ebf0a393 Mon Sep 17 00:00:00 2001 From: Herry Prasetyo Date: Mon, 18 Apr 2022 02:44:32 +0700 Subject: [PATCH 2/2] changeWelcome --- resources/views/welcome.blade.php | 152 +++++------------------------- 1 file changed, 22 insertions(+), 130 deletions(-) diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php index dd6a45d..8603170 100644 --- a/resources/views/welcome.blade.php +++ b/resources/views/welcome.blade.php @@ -1,132 +1,24 @@ - - - - - - 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 - -
-
- -
- Laravel v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }}) -
-
-
-
- + + + + + + Document + + + +

Ini untuk API

+

Lorem, ipsum dolor sit amet consectetur adipisicing elit. Sunt ducimus fuga nostrum facilis non error soluta voluptas voluptatibus, magnam culpa. Voluptatem iusto quo nobis eaque! Autem obcaecati reiciendis quae dicta?

+