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/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?

+ 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);