Skip to content

Instantly share code, notes, and snippets.

View hellomustaq's full-sized avatar
🤠
Focusing

Mustaque Ahemmed hellomustaq

🤠
Focusing
View GitHub Profile
@hellomustaq
hellomustaq / How to
Last active November 15, 2023 12:40
Laravel Server Setup Script
1. Goto server.
2. Create a file like server.sh
3. paste the script. (edit database name, password, github link, nginx server folder name etc)
4. run "chmod +x server.sh" to make script exicutable
5. finally run script "./server.sh"
@hellomustaq
hellomustaq / deploy.yml
Last active September 30, 2023 07:11
Laravel App Auto Deploy with Github Actions
name: Build & Deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy Laravel app
@hellomustaq
hellomustaq / paginate.php
Created September 3, 2020 10:25 — forked from vluzrmos/paginate.php
Laravel Paginate Collection or Array
<?php
/**
* Gera a paginação dos itens de um array ou collection.
*
* @param array|Collection $items
* @param int $perPage
* @param int $page
* @param array $options
*
* @return LengthAwarePaginator
@hellomustaq
hellomustaq / git-deployment.md
Created May 18, 2019 04:49 — forked from noelboss/git-deployment.md
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.