Skip to content

Instantly share code, notes, and snippets.

View takdw's full-sized avatar
🏠
Working from home

Tamrat Assefa Kessito takdw

🏠
Working from home
View GitHub Profile
@takdw
takdw / output.txt
Created February 23, 2021 18:43
vagrant destroy && vagrant up
homestead: Are you sure you want to destroy the 'homestead' VM? [y/N] y
==> homestead: Forcing shutdown of VM...
==> homestead: Destroying VM and associated drives...
Bringing machine 'homestead' up with 'virtualbox' provider...
==> homestead: Importing base box 'laravel/homestead'...
==> homestead: Matching MAC address for NAT networking...
==> homestead: Checking if box 'laravel/homestead' version '9.7.2' is up to date...
==> homestead: Setting the name of the VM: homestead
==> homestead: Fixed port collision for 3306 => 33060. Now on port 2200.
==> homestead: Clearing any previously set network interfaces...
@takdw
takdw / MultiUploader.vue
Last active February 28, 2020 11:07
A simple multi file uploader for Laravel using Vue
<template>
<div class="bg-white w-full max-w-3xl rounded overflow-hidden shadow">
<input ref="photoUploadInput" class="hidden" type="file" multiple @change="handleFileSelect">
<div class="pt-6 px-6">
<div class="flex justify-between items-center mb-6">
<div class="leading-tight">
<h2 class="text-gray-600 font-semibold text-2xl">Photos</h2>
<p>{{ photos.length }} selected</p>
</div>
<button @click="clickInput" type="button" class="px-6 py-2 text-white bg-indigo-500 font-semibold rounded hover:bg-indigo-600">Select Photos</button>