Skip to content

Instantly share code, notes, and snippets.

🔥
working on Hulli

Brandon Sueur brandonsueur

🔥
working on Hulli
Block or report user

Report or block brandonsueur

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 keybase.md

Keybase proof

I hereby claim:

  • I am brandonsueur on github.
  • I am brandonsueur (https://keybase.io/brandonsueur) on keybase.
  • I have a public key ASAe02DV9hBFmtgH78QHF0V_gxKBuj4cmAJk3hz8M_Ozjwo

To claim this, I am signing this object:

@brandonsueur
brandonsueur / test.vue
Last active Sep 18, 2019
is-online.vue
View test.vue
<template>
<span v-if="users == this.$props.id" class="pulse-online"></span>
<span v-else class="pulse-disconnected"></span>
</template>
<style>
.pulse-online {
width: 10px;
height: 10px;
border-radius: 50%;
View controller.php
<?php
protected function create(array $data)
{
$user = User::create([
'first_name' => $data['first_name'],
'last_name' => $data['last_name'],
'username' => strtolower($data['first_name'] . $data['last_name']),
'phone' => $data['phone'],
'email' => $data['email'],
'verified' => false,
View UsersController.php
<?php
namespace App\Http\Controllers;
use App\User;
use Illuminate\Support\Facades\Auth;
use App\Http\Requests\UserAddRequest;
use App\LogActivity;
use Illuminate\Support\Facades\Hash;
View auth.js
import decode from 'jwt-decode';
export default class AuthService {
constructor(domain) {
this.domain = domain || 'http://localhost:8080'
this.fetch = this.fetch.bind(this)
this.login = this.login.bind(this)
this.getProfile = this.getProfile.bind(this)
}
View auth.js
import decode from 'jwt-decode';
export default class AuthService {
constructor(domain) {
this.domain = domain || 'http://localhost:8080'
this.fetch = this.fetch.bind(this)
this.login = this.login.bind(this)
this.getProfile = this.getProfile.bind(this)
}
View RegisterController.php
<?php
namespace App\Http\Controllers\Auth;
use App\User;
use App\Http\Controllers\Controller;
use Illuminate\Auth\Events\Registered;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
View gist:8d11178b31cc976d95e30fa7403cea06
<?php
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
View UsersController.php
<?php
namespace App\Http\Controllers;
use App\User;
use Illuminate\Http\Request;
class UsersController extends Controller
{
/**
View gist:951e4e12b421cd39457d9d88c64e34ed
{
"animation_enabled": false,
"block_caret": true,
"color_scheme": "Packages/Theme - One Dark/Widget - One Dark.tmTheme",
"detect_indentation": true,
"draw_white_space": "selection",
"enable_tab_scrolling": false,
"fold_buttons": false,
"folder_exclude_patterns":
[
You can’t perform that action at this time.