Skip to content

Instantly share code, notes, and snippets.

View AhsanAbrar's full-sized avatar

Muhammad Ahsan Abrar AhsanAbrar

View GitHub Profile
@AhsanAbrar
AhsanAbrar / 2014_10_12_000000_create_users_table.php
Created March 4, 2019 18:12
Laravel login with username, email and mobile
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
See Below Tables in Comment
@AhsanAbrar
AhsanAbrar / ImageUpload.vue
Last active April 6, 2018 13:34
vuejs image upload
<template>
<div class="container">
<input type="file" @change="onChange">
<div class="image">
<img :src="preview">
</div>
<div class="progress">
<div :style="{ width: uploadPercentage + '%' }"></div>