Blog

VSCode SFTP AWS EC2

User add awsec2 sftp with pem in vscode sftp Assistant To set up SFTP in Visual Studio Code (VSCode) for an AWS EC2 instance using a PEM key, follow these steps: 1. **Install the SFTP Extension**: – Open VSCode. – Go to the Extensions view by clicking on the Extensions icon in the Activity Bar […]

Laravel OnDelete Cascade Setup

User laravel relation ondelete cascade Assistant In Laravel, to set up a relationship with `onDelete` cascade functionality, you need to define the foreign key constraint in your migration file. This will ensure that when a record in the parent table is deleted, the related records in the child table are automatically deleted. Here's how you […]

AWS Free Tier EC2 Usage

User check aws free tier ec2 space and cpu usage Assistant To check the EC2 instance usage on the AWS Free Tier, including space and CPU usage, you can use the following methods: ### 1. **AWS Management Console** – **Log in to your AWS Management Console.** – **Navigate to the EC2 Dashboard**: – Select **Instances** […]

Host Laravel Vue AWS

User host larave uvue site in aws free tier Assistant To host a Laravel + Vue.js site on AWS Free Tier, you can use the following AWS services: 1. **EC2 (Elastic Compute Cloud)** – for hosting your application server. 2. **RDS (Relational Database Service)** – for hosting your MySQL database. 3. **S3 (Simple Storage Service)** […]

Add SSL to AWS EC2

User how to add ssl to aws ec2 free tier Assistant Adding SSL to an AWS EC2 Free Tier instance involves obtaining an SSL certificate and configuring your web server to use it. Here’s a step-by-step guide: — ### **1. Obtain a Free SSL Certificate** #### **Option 1: Use Let's Encrypt** Let's Encrypt offers free […]

EC2 Security Group Fix

User The solution to the issue was to check the security group associated with the EC2 instance and remove a TCP rule that allowed all ports to be open from 0 onwards. This was likely causing a security breach, which was preventing AWS from reaching the instance and resulted in the "Instance reachability check failed" […]

EC2 Instance Reachability Issues

User after setting yarn run dev auto run at amazon ec2 we find it frequently gives error of Instance reachability check failed Assistant The "Instance reachability check failed" error on your EC2 instance indicates that the AWS system is unable to communicate with your instance. This issue is unrelated to the `yarn run dev` command […]

Laravel Route Naming

User Route::resource('posts', FrontUserPostController::class); add userarea.posts.index Assistant To name a route in Laravel when using `Route::resource`, you can use the `names` option to provide a custom name for specific routes. Here's how you can name the `index` route as `userarea.posts.index`: ### Updated Code Route::resource('posts', FrontUserPostController::class)->names([ 'index' => 'userarea.posts.index', ]); ### Explanation – The `names` array lets […]

Gmail SMTP Laravel Setup

User use gmail smtp in laravel env Assistant To use Gmail SMTP for sending emails in your Laravel application, update your `.env` file with the following configuration: MAIL_MAILER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=587 MAIL_USERNAME=your_gmail_address@gmail.com MAIL_PASSWORD=your_gmail_app_password MAIL_ENCRYPTION=tls MAIL_FROM_ADDRESS=your_gmail_address@gmail.com MAIL_FROM_NAME="${APP_NAME}" ### Steps: 1. **Generate an App Password in Gmail:** – Ensure 2-step verification is enabled for your Google account. – […]

Run Queue Laravel Guide

User run queue laravel Assistant To run a queue in Laravel, follow these steps: — ### 1. **Set Up the Queue Driver** Ensure your `QUEUE_CONNECTION` in the `.env` file is set up. For example: – **Sync (default)**: Runs the job immediately. – **Database**: Stores jobs in the database for later processing. – **Redis, SQS, etc.**: […]