Skip to content

Instantly share code, notes, and snippets.


Santosh Khanal khanalpride

  • Sainamaina-10, Saljhandi, Rupandehi
View GitHub Profile
View abortable-button.blade.php
<?php /** @var Illuminate\View\ComponentAttributeBag $attributes */ ?>
<?php /** @var Illuminate\Support\HtmlString $slot */ ?>
<?php /** @var int $delay */ ?>
<?php /** @var string $callback */ ?>
<div x-data="abortableButton()" x-init="delay = {{ $delay ?? 5000 }}; callback = () => { {{ $callback }} };" class="w-1/2">
<template x-if="!clicked">
class="px-4 py-2 bg-red-600 hover:bg-red-700 text-white rounded w-full"
khanalpride / HasLinks.php
Created Jun 22, 2020 — forked from tanthammar/HasLinks.php
No more controllers! Only Laravel LiveWire SPA routes and a handy Eloquent Model trait.
View HasLinks.php
khanalpride / Laravel PHP7 LEMP
Created Jun 19, 2017 — forked from santoshachari/Laravel PHP7 LEMP
Laravel 5.x on Ubuntu 16.x, PHP 7.x, Nginx 1.9.x
View Laravel PHP7 LEMP

#Steps to install latest Laravel, LEMP on AWS Ubuntu 16.4 version. This tutorial is the improvised verision of this tutorial on Digitalocean based on my experience.

Install PHP 7 on Ubuntu

Run the following commands in sequence.

sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install zip unzip