F
F
Fedooot012021-12-05 22:47:12
Laravel
Fedooot01, 2021-12-05 22:47:12

Where to put duplicate code in a Laravel project used in middleware?

Hello.

Inside some middleware projects there are checks that are called with different parameters depending on the middleware. It would be great to put these checks into separate functions in some files. In what files is it better to put these functions? What directory should the files with these functions be in?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question