Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to undefined method Illuminate\Foundation\Application::middleware() #47

Open
solarsoft0 opened this issue Apr 19, 2018 · 1 comment

Comments

@solarsoft0
Copy link

solarsoft0 commented Apr 19, 2018

Steps to reproduce

  1. include the middleware in app/http/kernel.php

Expected behaviour

i expect the middleware to be registered as described in the readme

Tell us what should happen

Actual behaviour

middleware not recognise

Server configuration

Operating system:

**Web server:apache

**Database:php

**PHP version:7.2

Client configuration

**Browser:chrome

**Operating system:windows

Logs

Web server error log


Fatal error: Uncaught Error: Call to undefined method Illuminate\Foundation\Application::middleware() in C:\Users\SOLARSOFT\PhpstormProjects\lifetv\bootstrap\app.php:44
Stack trace:
#0 C:\Users\#####\PhpstormProjects\###\artisan(20): require_once()
#1 {main}
  thrown in C:\Users\#########\PhpstormProjects\####\bootstrap\app.php on line 44


@joelcollyer
Copy link

joelcollyer commented Jun 21, 2018

Instead of adding middleware to bootstrap/app.php, have you tried adding EllipseSynergie\ApiResponse\Laravel\ResponseServiceProvider::class, to the array of providers in your config/app.php file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants