How to create laravel dusk test from Login page?
create laravel LoginTest class using below artisan command: Now run below command to test the test cases:
How to create laravel dusk test from Login page? Read More »
create laravel LoginTest class using below artisan command: Now run below command to test the test cases:
How to create laravel dusk test from Login page? Read More »
create laravel RegisterTest class using below artisan command: Now run below command:
How to create laravel dusk test from registration page? Read More »
This error is encountered if you try to run php artisan dusk command To fix this error you will need to update .env file APP_URL parameter to your local server url
When you call a remote server there is always some extra latency. Transients cache the response which comes through the remote API calls and is stored in the WordPress database. This saves API calls being made to the remote servers which helps in eaching API throttling limits. API call always has limit on how many
Website slow due to autoload yes – transient data in tables wordpress Read More »
Laravel Dusk provides an easy-to-use browser automation using chromedriver installation. Install composer dependency for your application Now execute below artisan command Set the APP_URL env variable in the .env file. This value should match the URL you use to access your application in a browser. Create a test Run test This will run the test
How to install laravel dusk to do browser testing for your application? Read More »
Find the longest string in an array of strings in Javascript
Longest string in an array of strings in Javascript Read More »
Check if brackets are balanced or not in javascript
Check if brackets are balanced or not in javascript Read More »
Javascript program to check Armstrong number
Check if given number is Armstrong number in Javascript Read More »
How to add elements at the start of an array in javascript? let list1 = [‘b’, ‘c’]; //using spread operator console.log([‘a’, …list1]); //Or using unshift method list1.unshift(‘a’); console.log(list1); How to add elements at the end of an array in javascript? let list2 = [‘a’, ‘b’]; //using spread operator console.log([…list2, ‘c’]); //or push method list2.push(‘c’); console.log(list2);
Basic array operations in Javascript Read More »
What is async attribute in script tag in javascript? <script src=”test.js” async></script> If async attribute is present in script tag then script is executed asynchronously. async attribute is a Boolean attribute. What is the difference between async and defer? If async is present the file gets downloaded asynchronously and then executed as soon as it’s
What is async attribute in script tag in javascript? Read More »
Useful Resources for AWS Cloud Certifications Recently I passed my AWS Certified Cloud Practitioner, AWS Certified Developer – Associate and AWS Certified Solution Architect – Associate certifications. Here is the list of resources which I used to prepare for these AWS Certification exams: Stephane Maarek courses from Udemy Neal Davis courses from Digital Cloud Training
How to prepare for AWS Certifications Read More »
file_put_contents(): write of 1847 bytes failed with errno=13 Permission denied in Laravel If you get above error, follow below steps to resolve this: 1) Change permissions of the storage directory chmod -R 777 storage 2)Run below command composer dump-autoload
Here is the list of most commonly used docker commands: docker –version This is used to check the version of the current installed docker. docker pull image_name This is used to pull images from the docket repository – hub.docker.com docker push image_name This is used to push an image to the docker repository at hub.docker.com
Most commonly used commands for Docker Read More »
#Check if script is run as root user whoami will give the name of the current user
Check if script is run as root user Read More »