Blog

Create Admin User Programmatically

User create admin user programatcally Assistant To create an admin user programmatically in Laravel, you can use Laravel's Eloquent model to insert a new user into the database. Assuming you have an `Admin` model and a guard or user role setup for admins, here’s an example: ### Example Code Add this to your Laravel project […]

Get WordPress Admin URL

User how to get admin url wordpress Assistant To get the WordPress admin URL programmatically or through a browser, here are some methods: ### **1. Browser Access** The default WordPress admin URL is: https://yourdomain.com/wp-admin/ Replace `yourdomain.com` with your website's domain. — ### **2. Programmatically in PHP** Use the following PHP functions to retrieve the admin […]

DDEV phpMyAdmin Fixed Port

User ddev phpmyadmin generate same port for each project phpmyadmin Assistant By default, DDEV assigns dynamic ports to services like phpMyAdmin to avoid port conflicts when multiple projects are running. If you want the phpMyAdmin service to use the same port across all your projects, you can configure it explicitly in each project's `.ddev/config.yaml`. Here’s […]

EC2 Deployment Exclusions

User name: Deploy to EC2 on: push: branches: – master # Trigger on push to master branch jobs: deploy: runs-on: ubuntu-latest steps: – name: Checkout code uses: actions/checkout@v2 – name: Set up SSH env: PEM_FILE: ${{ secrets.PEM_FILE }} # Store your PEM file content in GitHub secrets run: | echo "$PEM_FILE" > key.pem chmod 600 […]

Rsync Permission Errors Fix

User rsync: [generator] failed to set times on "/var/www/shareyourthoughts/storage": Operation not permitted (1) rsync: [generator] failed to set times on "/var/www/shareyourthoughts/storage/app": Operation not permitted (1) rsync: [generator] failed to set times on "/var/www/shareyourthoughts/storage/app/private": Operation not permitted (1) rsync: [generator] failed to set times on "/var/www/shareyourthoughts/storage/app/public": Operation not permitted (1) rsync: [generator] failed to set times […]

Add Cookie Consent GTM

User add below in wordpress website header Cookie Consent: <script> </script> GTM: <script> (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-N2WK2N2P'); </script> Assistant To add the Cookie Consent and Google Tag Manager (GTM) code to your WordPress website header, you can follow these steps: 1. **Edit the `header.php` File:** – Go to your WordPress dashboard. – […]

Laravel Breeze Event Broadcasting

User larave breeze blade broadcast event Assistant To broadcast an event in a Laravel Breeze application, you can integrate Laravel's **event broadcasting** system. Here’s a step-by-step guide on broadcasting and handling events in Laravel Breeze with Blade views: — ### **1. Set Up Event Broadcasting** #### **Install and Configure Pusher or Laravel Websockets** 1. **Install […]

Laravel Broadcast Admin Notification

User Notify admin to if anyone post a new post laravel broadcast Assistant To notify the admin when a new post is created in your Laravel application using broadcasting, follow these steps: — ### 1. **Setup Laravel Broadcasting** Ensure Laravel broadcasting is configured correctly: 1. Install Pusher or Redis (or any broadcasting driver you prefer). […]

Private Broadcast Route Admin

User create broadcast route private channel for different admin table laravel Assistant To create a private broadcast route for a different admin table in Laravel, you need to follow these steps: ### 1. **Setup Laravel Echo and Broadcasting** Ensure that Laravel broadcasting is properly configured. In `config/broadcasting.php`, set up your default broadcaster (e.g., Pusher, Redis, […]

AUD Currency Display Issue

User I’ve checked the issue and found that AUD currency is always showing. Whether discount coupon apply or not Could you please provide me more detail about the issue like any video if possible to understand the issue in more detail Correct above sentence? Assistant Here's a corrected version of your sentence: "I've checked the […]