First Install Custom CSS and JS Loader
"vscode_custom_css.imports": [
"file:///home/ds/vscode.css",
"file:///home/ds/vscode.js"
]| <?php | |
| namespace App\Http\Controllers\Api\V2; | |
| use App\Models\Order; | |
| use Illuminate\Http\Request; | |
| use App\Http\Controllers\Controller; | |
| use App\Actions\Order\DeliveryStatus; | |
| class WebhookController extends Controller |
| name: 🚀 Deploy to cPanel | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| FTP-Deploy-Action: | |
| name: 🎉 Deploy | |
| runs-on: ubuntu-latest |
| name: 🎉 Laravel Deploy | |
| on: | |
| push: | |
| branches: [master] | |
| workflow_dispatch: # Allow manual triggering | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest |
| -- phpMyAdmin SQL Dump | |
| -- version 5.2.1 | |
| -- https://www.phpmyadmin.net/ | |
| -- | |
| -- Host: localhost | |
| -- Generation Time: Oct 15, 2024 at 02:18 PM | |
| -- Server version: 10.6.7-MariaDB-2ubuntu1.1 | |
| -- PHP Version: 8.2.7 | |
| #!/bin/bash | |
| # Colors for output | |
| GREEN='\033[0;32m' | |
| NC='\033[0m' | |
| # Function to update and upgrade system | |
| update_system() { | |
| echo -e "${GREEN}Updating and upgrading the system...${NC}" | |
| sudo apt update -y && sudo apt upgrade -y |
| //vendor/laravel/framework/src/Illuminate/Foundation/Console/DownCommand.php | |
| <?php | |
| namespace Illuminate\Foundation\Console; | |
| use App\Http\Middleware\PreventRequestsDuringMaintenance; | |
| use Exception; | |
| use Illuminate\Console\Command; | |
| use Illuminate\Foundation\Events\MaintenanceModeEnabled; |
First Install Custom CSS and JS Loader
"vscode_custom_css.imports": [
"file:///home/ds/vscode.css",
"file:///home/ds/vscode.js"
]| // .htaccess for park main domain to a dir | |
| RewriteEngine on | |
| RewriteCond %{HTTP_HOST} ^(www.)?domain.com$ | |
| RewriteCond %{REQUEST_URI} !^/dir/ | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteRule ^(.*)$ /dir/$1 | |
| RewriteCond %{HTTP_HOST} ^(www.)?domain.com$ | |
| RewriteRule ^(/)?$ dir/ [L] |
| Install Latest "intervention/image": "3.5.0", | |
| composer require intervention/image 3.5.0 |
| For generating refresh token | |
| https://developers.google.com/oauthplayground | |
| for any help | |
| https://www.youtube.com/watch?v=OPDkQ3V4Goo&ab_channel=ImranicShow | |
| composer require spatie/laravel-backup [docs: https://spatie.be/docs/laravel-backup/v8/installation-and-setup] | |
| eta dia config file publish korben | |
| php artisan vendor:publish --provider="Spatie\Backup\BackupServiceProvider" | |