Top "Laravel-middleware" questions

HTTPl Middleware is a mechanism for filtering HTTP requests that are passing through your application.

Laravel 5 register middleware from in package service provider

I'm currently developing a package in/for Laravel 5. My package contains a custom middleware and I would like to add …

php package laravel-5 service-provider laravel-middleware
Laravel: Encode JSON responses in UTF-8

I want to encode the JSON responses of my API to UTF-8, but every time I make a response I …

json laravel utf-8 laravel-middleware
How to set the Laravel middleware order of execution?

The Laravel 5 documentation describes two ways of assigning Middleware: Assign middleware to the controller's route. Specify middleware within your controller's …

php laravel laravel-5 laravel-middleware
How to check user status while login in Laravel 5?

I have used Laravel Authentication (Quickstart). But I need to check the status of the user (approved/pending). If not …

laravel authentication middleware laravel-middleware
Auth::guest() returns true for both logged in and logged out users

I am new to laravel and so I was trying to create a small project for learning purpose. I have …

php laravel laravel-routing laravel-5.2 laravel-middleware
Laravel Middleware Auth for API

I am currently developing and application that has an API which I want to be accessible through middleware that will …

php laravel authentication laravel-5.1 laravel-middleware
How to send Authorization access_token to request header in Laravel using Middleware

I'm Bulid an API Authentication System. Everything I can check using Postman But I want to attach this mark portion (…

php laravel laravel-5 laravel-middleware laravel-response
Laravel grouping routes what is best prefix or middleware

When I start thinking grouping my routes and check the documentation. I lost there. There are too many things like …

laravel routing laravel-routing laravel-middleware
Laravel 419 Error - VerifyCsrfToken issue

I have multiple Laravel sites hosted on the same server. With the latest site I've created, the contact form refuses …

php laravel csrf-protection laravel-middleware
How can I specify a guard in middleware for route?

I have two routes as follow: Route::GET('admins/', 'UserController@index')->middleware('jwt.auth'); Route::GET('visitors', …

php laravel laravel-5 laravel-middleware jwt-auth