Skip to content

Instantly share code, notes, and snippets.

View heinthanth's full-sized avatar
🏠
Working from home

Hein Thant heinthanth

🏠
Working from home
View GitHub Profile
@heinthanth
heinthanth / .env
Created July 21, 2019 07:14
Laravel Social Login
APP_NAME='Social Login'
APP_ENV=local
APP_KEY=base64:BspNdmtQ8Z4qR7uL+bSiZQzKaMVPYjnUnq9LBn6jkSo=
APP_DEBUG=true
APP_URL=http://localhost
LOG_CHANNEL=errorlog
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
@heinthanth
heinthanth / services.php
Created July 21, 2019 07:41
Services.php
<?php
return [
/*
|--------------------------------------------------------------------------
| Third Party Services
|--------------------------------------------------------------------------
|
| This file is for storing the credentials for third party services such
@heinthanth
heinthanth / create_users_table.php
Last active July 21, 2019 08:00
create_users_table
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
<?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
@heinthanth
heinthanth / SocialLoginController.php
Last active July 21, 2019 08:35
SocialLoginController
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\User;
use Socialite;
class SocialLoginController extends Controller
{
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">{{ __('Login') }}</div>
<div class="card-body">
@heinthanth
heinthanth / html-structure.html
Created August 31, 2019 09:46
html-structure
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
</body>
</html>
@heinthanth
heinthanth / unix-directory.txt
Last active August 31, 2019 10:53
Unix Directory
|---/
|--- .
|--- ..
|--- file1
|--- file2
|--- folder1 /
|--- .
|--- ..
|--- file3
@heinthanth
heinthanth / alt-a.html
Created August 31, 2019 11:17
Anchor Alternative Tags
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<img src="heinthanth.jpg" alt="Photo of Hein Thanth">
</body>
</html>