I have been working on Laravel from the past 6 years and only used Xdebug a couple of times. This was when I was fairly new to the project I am working on, and I had …
Category: Technical
If you are working with a huge Laravel project, at some point you will have a bloated web.php or api.php file with lots of routes, Although this works fine, but you may want to organize your …
In this tutorial we will go over on how we can implement a multi-language website in Laravel using Laravel Localization and also create a simple language switcher to change the default language. 1. Create New Laravel …
Compared to the previous version of Laravel where Bootstrap Framework was the default pre-installed frontend option. In the latest version there have been a lot of changes in the Laravel Framework wherein you have to perform …
If you have upgraded Composer on your machine to the latest version i.e. version 2 and if you are working on the project that still uses some old packages which are dependent on Composer 1, you …
If you have some part of your code which you want to execute only if a certain environment variable exists in the .env file. Here is how you can check the existence of environment variable in …
When you are working with Laravel Dusk and running the tests on a CI like Travis or Heroku. It gets tricky to get out of the screenshots of failed tests. Here is how I configured my …
If you are using Laravel Dusk and getting the following issue in running your dusk tests. Facebook\WebDriver\Exception\WebDriverCurlException: Curl error thrown for http POST to /session with params: {"desiredCapabilities":{"browserName":"chrome","platform":"ANY","chromeOptions":{"w3c":false,"binary":""}}} Connection timed out after 30001 milliseconds These are …
Here is how you can get access to the Faker Instance in the Artisan tinker $faker = Faker\Factory::create(); That’ it. That’s the post. …
This is a quick article on how you can remove a composer dependency from the Laravel project. Open the terminal / command-prompt and navigate to the project root directory and execute the following command. composer remove …