Skip to content

Instantly share code, notes, and snippets.

View hfalucas's full-sized avatar

Helder Lucas hfalucas

View GitHub Profile
//html
<label for="upload-btn" id="your-label-id"> Upload </label>
<input type="file" id="upload-btn" class="hidden">
// css
#your-label-id {
// do whatever you want
}
@hfalucas
hfalucas / [1] routes.php
Last active August 6, 2016 11:00
[Laravel] JWT Login and Refresh token
<?php
$router->post('login', 'AuthenticationController@login');
$router->post('logout', 'AuthenticationController@logout');
$router->get('refresh-token', 'RefreshTokensController@refresh');
@hfalucas
hfalucas / [1] main.js
Last active March 13, 2024 05:49
[Vue.js] Authentication and Authorization
/**
* Think of this "main.js" file as your application bootstrap.
*/
import Vue from 'vue'
import Resource from 'vue-resource'
import VueRouter from 'vue-router'
import routes from './routes'
import middleware from './middleware'