Skip to content

Instantly share code, notes, and snippets.


Elihu A. Cruz ea2305

Block or report user

Report or block ea2305

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View auth_controller.js
'use strict'
const Env = use('Env')
const Logger = use('Logger')
class AuthController {
* Login user controller
* @param {Object} request : HTTP Request
* @param {Object} response : HTTP Request
# Crear controlador
adonis make:controller Auth
View adonis_test_login_user.js
'use strict'
// Importamos test y trait para poder realizar consultas a la api
const { test, trait } = use('Test/Suite')('User Login')
// Models
const User = use('App/Models/User')
// user template
# Creamos prueba funcional
adonis make:test UserLogin --unit
View sample.vue
<h1>¡Hola mundo! Nuxt app</h1>
View configurationVcodeESlint.js
* Access to user configuration: CMD + "," (MacOs)
* Add de follow keys
"eslint.options": {
"configFile": "./.eslintrc.json"
"eslint.validate": [
You can’t perform that action at this time.