How to use GitLab CICD with GitHub Repository
Imagine that your all repos are hosted on GitHub but you wanna use GitLab's CI/CD for them instead of GitHub actions. So, in today's article, I am going to show you, how we can use GitLab CICD with GitHub Repository. Create GitHub Access Token To connect our GitHub Repositories with GitLab, we need to create a GitHub Access Token. You should have GitHub Owner Role to perfome this action To create a GitHub Access Token, follow the steps below: Go to your GitHub account and navigate to...
Laravel Passwordless Login
In this article, we are going to learn how to create a passwordless login system in Laravel. In here, we will use only the user's email address to register and login. In the registration, we will send a link to given email for email verification, while we will send login link everytime when user input email. Setting up the Project First you need to create a fresh laravel project by running below command in your terminal 1composer create-project laravel/laravel...
Laravel detect user device is Mobile, Dekstop or Tablet
Sometimes we need to know from which device user is logged in to out application and show different content to user based on their device. So in this tutorial we are going to learn how to detect user device is Mobile, Dekstop or Tablet and show the result based on the device. For this tutorial we are going to use a package called jenssegers/agent Setting up the Project First you need to create a new laravel project by running below command in your terminal 1composer create-project...
How to auto stop and auto start AWS EC2 instances using AWS Lambda
In our previous articles we learned how to create and launch and AWS EC2 instance and how we can connect it from your computer using the SSH protocol like PuTTY and how to assign Elastic IP to our EC2 instance. In this article we will learn how to automatically stop and start an AWS EC2 instance using AWS Lambda, we'll create Lambda function that stop and start your EC2 instances. This function will use Instance tags to identify which instances needs to be start and stop at intervals or...
How to assign an Elastic IP to EC2 instance
In our previous articles we learned how to create and launch and AWS EC2 instance and how we can connect it from your computer using the SSH protocol like PuTTY. But the problem is, every time you stop your EC2 instance and start it again, public IP of your instance changes. Now imagine if you are hosting your application on EC2 and the public IP changes. What is gonna happen? So one of the simplest solution is to attach an Elastic IP to your instance. So, in this tutorial, we are going to...
How to install Terraform on Windows
Terraform is infrastructure as code tool. With Terraform scripts we can automate the configuration of our infrastructure.In this tutorial, we are going to learn how to install Terraform on Windows. Download Terraform Firstly, you need to download Terraform from here. You can see the windows 32 bit and 64 bit source files. Download depends on your system here I am downloading 64 bit Terraform. It will be downloaded as zip file. Unzip the terraform package Create a directory called...
How to generate captcha in Laravel
In todays's tutorial, we are going to learn how to intergrade captcha with our Laravel application. When we considering about the security of our application, it's play a major role to enhance our application's security. Basically captcha is something like a text on image which can be readable by humans. So, in this tutorial, we are implement captcha validation using mews/captcha package. Install mews/captcha package Firstly, we need to install required Laravel package, which we are...
How to connect to AWS EC2 instance using PuTTY
When you have created and launched and AWS EC2 instance and now you need to connect it from your computer using the SSH protocol, PuTTY is a free SSH client that allows you to do this from local computer running Windows. Once the connection has been established, you can work with EC2 instance like you would on a local computer running Linux. So, in this tutorial, we are going to learn how to connect EC2 instance using PuTTY. You can find the video tutorial for this tutorial from here. ...
Create an EC2 Instance in AWS
In this tutorial, we are going to learn how to setup EC2 resources by choosing Amazon Machine Image (AMI), add storage, configure security groups, and create PEM key to access your instance using SSH. Prerequisites You need an Amazon Web Services Account. Choose Amazon Machine Image(AMI) You need to AWS console and navigate to Services -> EC2. Then Click on Instances on the left sidebar. After that click on Launch instance. Then you will redirect to a page where you can...
Laravel Fullcalendar with Create, Update, Delete Event Functions
In this tutorial, we are going to implement Fullcalendar in Laravel application with all the functionalities like add event, update event, delete event and drag event. Setting up the Project First you need to create a new laravel project by running below command in your terminal 1composer create-project laravel/laravel laravel-fullcalendar Then navigate to your project directory by using below command in your terminal 1cd laravel-fullcalendar Set up Database details Now you need to...