Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View khanalpride's full-sized avatar

Santosh Khanal khanalpride

View GitHub Profile
<?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">
<button
type="button"
class="px-4 py-2 bg-red-600 hover:bg-red-700 text-white rounded w-full"
@khanalpride
khanalpride / HasLinks.php
Created June 22, 2020 21:23 — forked from tanthammar/HasLinks.php
No more controllers! Only Laravel LiveWire SPA routes and a handy Eloquent Model trait.
@khanalpride
khanalpride / Laravel PHP7 LEMP AWS.md
Created June 19, 2017 03:51 — forked from santoshachari/Laravel PHP7 LEMP AWS.md
Laravel 5.x on Ubuntu 16.x, PHP 7.x, Nginx 1.9.x

#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