This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class CreateUsersTable extends Migration | |
{ | |
/** | |
* Run the migrations. | |
* | |
* @return void | |
*/ | |
public function up() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use App\User; | |
use Illuminate\Http\Request; | |
class UsersController extends Controller | |
{ | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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": | |
[ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
font-family: Avenir, Futura, 'Open Sans', 'Gill Sans', 'Helvetica Neue', Ariel, sans-serif; | |
font-weight: bold; | |
font-size: 6vw; | |
margin: 0 1em; | |
background: radial-gradient(#c2c2c2 8%, transparent 8%), white; | |
background-position: 0 0, 25px 25px; | |
background-size: 25px 25px; | |
min-height: 100vh; | |
display: flex; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component } from 'react'; | |
import PropTypes from 'prop-types'; | |
const isNavigatorOnline = () => navigator.onLine || false; | |
export default class IsOnline extends Component { | |
static propTypes = { | |
OnlineComponent: PropTypes.oneOfType([PropTypes.object, PropTypes.string]), | |
OfflineComponent: PropTypes.oneOfType([PropTypes.object, PropTypes.string]), | |
onChange: PropTypes.func, |