Skip to content

Instantly share code, notes, and snippets.

View alfelric's full-sized avatar
⛈️
It's rainy day

Alfredo Patricius Tarigan alfelric

⛈️
It's rainy day
  • LiTERASIA Edutekno Digital
  • Medan, North Sumatera
View GitHub Profile
@alfelric
alfelric / VerifyTokenMiddleware.php
Created November 27, 2021 04:08
Verify Token Middleware
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Http;
class VerifyTokenMiddleware
{
@alfelric
alfelric / Product.php
Created November 27, 2021 04:24
Get User Detail Attribute
<?php
use Illuminate\Support\Facades\Http;
class User extends Model
{
protected $appends = ['user_detail'];
public function getUserDetailAttribute()
{