Skip to content

Instantly share code, notes, and snippets.

@hugoaf
hugoaf / shopify-sortable-livewire-3
Created August 17, 2023 22:54
How to implement Shopify Sortable with livewire 3
// This procedure is just for simple ordering, while the https://github.com/livewire/sortable gets updated to LW3.
// install Shopify Draggable
npm install @shopify/draggable --save
// import in app.js
import { Sortable } from '@shopify/draggable';
@hugoaf
hugoaf / laravel_in_shared_hosting.md
Last active August 30, 2021 21:08
Install Laravel in a Shared Hosting

This scenario will make the Laravel app to run in a shared hosting, the Laravel code will be outisde of public directory and could be updated later via git.

GET THE CODE

  1. Upload from local to github

  2. Get into the server using ssh

  3. Clone in server directory outside of public ie. /home/myuser/mylaravelapp


title: Productos menu: portfolios portfolios: - title: Deli layout: default modalid: 1 date: 1405641600 img: dreams.png

<section id="portfolio" class="bg-light-gray">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
{{ content|raw }}
</div>
</div>
<div class="row">
{% for portfolio in page.header.portfolios %}
<div class="col-md-4 col-sm-6 portfolio-item">
@hugoaf
hugoaf / Joomla Component Development Gitignore
Created June 22, 2019 04:53
A git ignore file for Joomla component development, including frontend, backend, media and template
#adding backend component
!/administrator/components/
/administrator/components/*
!/administrator/components/com_mycomponent/
!/administrator/components/com_mycomponent/*
#adding frontend component
!/components/
/components/*
!/components/com_mycomponent/