Skip to content

Instantly share code, notes, and snippets.

View tarikmanoar's full-sized avatar
🎯
Focusing On Web Development

Tarik Manoar tarikmanoar

🎯
Focusing On Web Development
View GitHub Profile
@tarikmanoar
tarikmanoar / DownCommand.php
Created August 20, 2024 02:03
Laravel php artisan down command
//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;
@tarikmanoar
tarikmanoar / laravel-server-setup.sh
Created September 21, 2024 15:47
This script help you to setup laravel prodcution ready by one click
#!/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
This file has been truncated, but you can view the full file.
-- 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
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
@tarikmanoar
tarikmanoar / github-ci-cd.yml
Last active April 9, 2025 03:34
This gist help you to deploy laravel application from github to your server using ssh
name: 🎉 Laravel Deploy
on:
push:
branches: [master]
workflow_dispatch: # Allow manual triggering
jobs:
deploy:
runs-on: ubuntu-latest
@tarikmanoar
tarikmanoar / github-ci-cd-using-ftp.yml
Created December 25, 2024 14:19
Deploy Laravel Project using Github action to shared hosing
name: 🚀 Deploy to cPanel
on:
push:
branches:
- main
jobs:
FTP-Deploy-Action:
name: 🎉 Deploy
runs-on: ubuntu-latest
@tarikmanoar
tarikmanoar / WebhookController.php
Created January 3, 2025 09:23
Courier Webhook Example
<?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