Skip to content

Instantly share code, notes, and snippets.


Helder Lucas hfalucas

  • Porto, Portugal
View GitHub Profile
hfalucas / [1] main.js
Last active Jul 10, 2020
[Vue.js] Authentication and Authorization
View [1] main.js
* 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'
hfalucas / [1] routes.php
Last active Aug 6, 2016
[Laravel] JWT Login and Refresh token
View [1] routes.php
$router->post('login', 'AuthenticationController@login');
$router->post('logout', 'AuthenticationController@logout');
$router->get('refresh-token', 'RefreshTokensController@refresh');
View Upload button styling
<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
You can’t perform that action at this time.