Skip to content

Instantly share code, notes, and snippets.

View mdsohelmia's full-sized avatar
🎯
Focusing

Sohel mdsohelmia

🎯
Focusing
View GitHub Profile
public function test(Request $request)
{
try {
$this->validate($request, [
"phone_number" => "required|regex:/^\+?(88)?0?1[3456789][0-9]{8}\b/"
]);
} catch (ValidationException $e) {
dd($e->errors());
@mdsohelmia
mdsohelmia / List.md
Created December 29, 2019 16:20 — forked from msurguy/List.md
List of open source projects made with Laravel

Other people's projects:

My projects (tutorials are on my blog at http://maxoffsky.com):

@mdsohelmia
mdsohelmia / List.md
Created December 29, 2019 16:20 — forked from msurguy/List.md
List of open source projects made with Laravel

Other people's projects:

My projects (tutorials are on my blog at http://maxoffsky.com):

@mdsohelmia
mdsohelmia / List.md
Created December 29, 2019 16:20 — forked from msurguy/List.md
List of open source projects made with Laravel

Other people's projects:

My projects (tutorials are on my blog at http://maxoffsky.com):

@mdsohelmia
mdsohelmia / cloudSettings
Last active July 16, 2020 03:02
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-07-16T03:01:55.833Z","extensionVersion":"v3.4.3"}
@mdsohelmia
mdsohelmia / GitCommitEmoji.md
Created December 14, 2020 10:06 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
<template>
<div>
<div v-for="video in vidoes" :key="video.id" class="bg-gray-100 h-48 mt-4">
{{ video.title }}
</div>
</div>
</template>
<script>
export default {
@mdsohelmia
mdsohelmia / A Nuxt.js VPS production deployment.md
Created September 15, 2021 07:34 — forked from zmts/A Nuxt.js VPS production deployment.md
Deployment manual for a real-world project built with nuxt.js + koa + nginx + pm2

Example of deployment process which I use in my Nuxt.js projects. I usually have 3 components running per project: admin-panel SPA, nuxt.js renderer and JSON API.

This manual is relevant for VPS such as DigitalOcean.com or Vultr.com. It's easier to use things like Now for deployment but for most cases VPS gives more flexebillity needed for projects bigger then a landing page.

UPD: This manual now compatible with nuxt@2.3. For older versions deployment, see revision history.


Let's assume that you have entered fresh installation of Ubuntu instance via SSH. Let's rock: