---
title: "Discussion on \"How To Solve Laravel 8 API Response that is returning welcome page instead of JSON\" | Hashnode"
description: "Discussion on \"How To Solve Laravel 8 API Response that is returning welcome page instead of JSON\". I created a dribble clone using Laravel 8 and Nuxt.js. Since I won't be using the web route, I decided to create a global JsonRequestMiddleware that accepts headers as application/json. This write-up aims to show you how I implemented that step by st..."
url: "https://hashnode.com/posts/how-to-solve-laravel-8-api-response-that-is-returning-welcome-page-instead-of-json/60f7ac4a3e181324dac71a03"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How To Solve Laravel 8 API Response that is returning welcome page instead of JSON](https://ife-adewunmi.hashnode.dev/how-to-solve-laravel-8-api-response-that-is-returning-welcome-page-instead-of-json?utm_source=hashnode&utm_medium=feed)

I created a dribble clone using Laravel 8 and Nuxt.js. Since I won't be using the web route, I decided to create a global JsonRequestMiddleware that accepts headers as application/json. This write-up aims to show you how I implemented that step by st...

Jul 21, 2021 · 1 min read · ife-adewunmi.hashnode.dev  
Updated Nov 6, 2022  
Read the article

-   [#laravel](https://hashnode.com/tag/laravel)
-   [#apis](https://hashnode.com/tag/apis)
-   [#json](https://hashnode.com/tag/json)
-   [#php](https://hashnode.com/tag/php)
-   [#rest-api](https://hashnode.com/tag/rest-api)

## Written by

[Ifeoluwa Adewunmi](https://hashnode.com/@ife-adewunmi)

@ife-adewunmi

  
[View profile](https://hashnode.com/@ife-adewunmi)

Software Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
