Categories
Laravel

Undocumented Laravel: Macros

Often in your controller actions or route closures, you may have come across situations where you want to send a JSON response with an HTTP status, especially when you’re working with REST APIs: Suddenly you realize that you’re using the same snippet across your application over and over again. Wouldn’t it be nice if you […]