Redirect Image

js

Thursday, January 23, 2025

PHP code to clear laravel 5.5 config

 <?php
require __DIR__ . '/vendor/autoload.php';
$app = require_once __DIR__ . '/bootstrap/app.php';

$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);

try {
    echo "Clearing config cache...\n";
    $kernel->call('config:clear');

    echo "Clearing route cache...\n";
    $kernel->call('route:clear');

    echo "Clearing view cache...\n";
    $kernel->call('view:clear');

    echo "Clearing cache...\n";
    $kernel->call('cache:clear');

    echo "Regenerating JWT secret...\n";
    $kernel->call('jwt:secret', ['--force' => true]); // Regenerate JWT secret

    echo "All cache and JWT configurations cleared successfully!\n";
} catch (Exception $e) {
    echo "An error occurred: " . $e->getMessage() . "\n";
}

Monday, January 6, 2025

Importent softwares to install for Developers after installing UBUNTU

PHP
sudo apt install php libapache2-mod-php

MYSQL
sudo apt install mysql-server


Install .deb file in ubuntu
sudo dpkg -i package-name.deb

Wednesday, January 1, 2025

Printer sharing Windows 11

 

Sharing a printer in Windows 11 involves configuring the printer to be accessible to other users on your network. Here's how you can do it:


Step 1: Enable Printer Sharing

  1. Open Settings:

    • Press Windows + I to open the Settings app.
  2. Go to Network & Sharing Settings:

    • Navigate to Network & Internet > Advanced network settings.
    • Under "More settings," click Advanced sharing settings.
  3. Turn on Network Discovery and File/Printer Sharing:

    • Expand Private network (or your current network profile) and enable Network discovery and File and printer sharing.
    • Repeat the steps for Public network if required, but it’s safer to keep sharing on private networks only.

Step 2: Share the Printer

  1. Access Printer Properties:

    • Press Windows + S, type Control Panel, and open it.
    • Go to Hardware and Sound > Devices and Printers.
    • Right-click the printer you want to share and select Printer properties.
  2. Enable Sharing:

    • Go to the Sharing tab.
    • Check the box Share this printer.
    • Optionally, specify a Share name (keep it simple and unique).
  3. Install Additional Drivers (Optional):

    • If other devices on the network use different operating systems, click Additional Drivers and install the required drivers.

Step 3: Connect the Printer on Another Device

  1. Find the Shared Printer:

    • On another device, press Windows + S, type \[YourComputerName], and hit Enter.
    • Replace [YourComputerName] with the name of the computer sharing the printer. (Find this in Settings > System > About > Device name.)
  2. Add the Printer:

    • The shared printer should appear. Right-click it and choose Connect.
    • If prompted, install the printer driver.

Step 4: Test the Printer

  • Print a test page from another computer to ensure everything is working correctly.

If you encounter any issues, ensure:

  • Both devices are on the same network.
  • The printer is powered on and connected.
  • Firewalls or antivirus software aren’t blocking the connection.

মুদ্ৰা আৰু বেংক ব্যৱস্থা সম্পূৰ্ণ প্ৰশ্ন উত্তৰ

মুদ্ৰা আৰু বেংক ব্যৱস্থা সম্পূৰ্ণ প্ৰশ্ন উত্তৰ মুদ্ৰা আৰু বেংক ব্যৱস্থা MCQ 1. ১৭৭০ চনত ভাৰতবৰ্ষত স্থাপন কৰা বেংকটোৰ নাম কি আছি...