Ensure you're on the development branch:
git checkout developmentFetch the latest changes from the remote (including the main branch):
git fetch origin| <?php | |
| // Run: php artisan make:command DevResource | |
| namespace App\Console\Commands\Dev; | |
| use Illuminate\Console\Command; | |
| use Illuminate\Support\Str; | |
| class DevResource extends Command |
| <?php | |
| // Add this code inside themes' functions.php | |
| add_filter('woocommerce_checkout_fields', 'hide_email_address_field'); | |
| function hide_email_address_field($fields) | |
| { | |
| unset($fields['billing']['billing_email']); | |
| return $fields; | |
| } |
Ensure you're on the development branch:
git checkout developmentFetch the latest changes from the remote (including the main branch):
git fetch originOpen terminal
Type: echo $SHELL
If the output is /bin/zsh, you're using Zsh (default on macOS Catalina and later). Otherwise, you might be using Bash.
For Zsh:
nano ~/.zshrcFor Bash:
First check at cPanel SSH Access there should not be any key if there is any delete this than generate new key from terminal ssh-keygen -t rsa -b 2048 -f ~/.ssh/id_rsa
After generating key Go to .ssh directory and open .pub file and copy SSH Key Add this SSH Key into GITHUB REPO - Setting - Deploy Keys
Backup all files from public_html to _backup directory e.g. /home/_backup
| <?php | |
| // Create file inside Services folder | |
| // php artisan make:class Services/ServerMonitor | |
| namespace App\Services; | |
| use Symfony\Component\Process\Exception\ProcessFailedException; | |
| use Symfony\Component\Process\Process; | |
| class ServerMonitor | |
| { |
| SLACK_BOT_USER_OAUTH_TOKEN= | |
| SLACK_BOT_USER_DEFAULT_CHANNEL= |
| // .vscode/extensions.json | |
| { | |
| "recommendations": [ | |
| "rangav.vscode-thunder-client", | |
| "bmewburn.vscode-intelephense-client", | |
| "donjayamanne.githistory", | |
| "DavidAnson.vscode-markdownlint", | |
| "eamodio.gitlens", | |
| "GitHub.vscode-pull-request-github", | |
| "PKief.material-icon-theme", |
| <?php | |
| // routes/api.php | |
| use Illuminate\Support\Facades\Route; | |
| Route::prefix('v1')->group(base_path('routes/api/v1.php')); | |
| Route::prefix('v2')->group(base_path('routes/api/v2.php')); |
| // In your livewire blade | |
| @php | |
| // Get the current page number, default to 1 if not set | |
| $currentPage = $dataSet->currentPage(); | |
| // Get the number of items per page | |
| $perPage = $dataSet->perPage(); | |
| // Calculate the starting index | |
| $i = ($currentPage - 1) * $perPage + 1; | |
| @endphp |