-
When you developing an API using laravel It is easier to debug api requests if you have a way to see api request and response parameters. We can simply do that using a middleware. You can create new middleware using artisan command php artisan make:middleware LogRequests And add below code to the file created. <?php…
-
Laravel mix is the default assets compilation package comes with laravel 5.4. It use webpack to compile assets. Using Mix you can define simple webpack build steps without going deep into webpack configrations. You can also use laravel mix in your other projects with some little tweaks. Your laravel installation should have following structure /webpack.mix.js…