Ensure you're on the development
branch:
git checkout development
Fetch the latest changes from the remote (including the main branch):
git fetch origin
Ensure you're on the development
branch:
git checkout development
Fetch the latest changes from the remote (including the main branch):
git fetch origin
Open 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 ~/.zshrc
For 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 |
<?php | |
namespace App\Providers; | |
use Illuminate\Cache\RateLimiting\Limit; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Facades\RateLimiter; | |
use Illuminate\Support\ServiceProvider; | |
class AppServiceProvider extends ServiceProvider |