Skip to content

Instantly share code, notes, and snippets.

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

Muh Ghazali Akbar muhghazaliakbar

🏠
Working from home
View GitHub Profile
<div>
<p>Paragraf</p>
<p>Paragraf</p>
<p>Paragraf</p>
<div>komponen div ini mau dihapus</div>
<p>Paragraf</p>
<p>Paragraf</p>
</div>
import React from 'react'
interface AvatarProps {
username: string
initials?: string
size?: number
src?: string
rounded?: boolean
classes?: string
}
@muhghazaliakbar
muhghazaliakbar / AlphaDashDotRule.php
Created February 27, 2020 05:53
Laravel validation to validate alpha, dash, and dot.
<?php
namespace App\Rules;
use Illuminate\Contracts\Validation\Rule;
class AlphaDashDot implements Rule
{
/**
* Determine if the validation rule passes.
@muhghazaliakbar
muhghazaliakbar / Tag.php
Created November 9, 2018 06:45
Nova/Tag.php
<?php
namespace App\Nova;
use Illuminate\Http\Request;
use Laravel\Nova\Fields\ID;
use Laravel\Nova\Fields\Number;
use Laravel\Nova\Fields\Text;
use Laravel\Nova\Http\Requests\NovaRequest;
<?php
namespace AMS\RegistrasiSuratMagang;
use AMS\Models\SuratMasuk;
use Illuminate\Http\Request;
use AMS\Models\BodySuratKeluarMagang;
use AMS\Models\HeaderSuratKeluarMagang;
class RegistrasiSuratMagang
<h1 id=\"natusveletiurevelitseddolores\">Natus vel et iure velit sed dolores.</h1>\n<p>Facilis non qui quibusdam numquam impedit quia quos. Necessitatibus iure enim et similique laboriosam nobis laborum.Est enim voluptas qui dolor perferendis sint. Id est libero ipsam eos voluptatem. Debitis officiis et nam voluptates molestias. Molestiae eum nihil neque sapiente ea sunt provident.</p>\n<p><strong>Facilis non qui quibusdam numquam impedit quia quos. Necessitatibus iure enim et similique laboriosam nobis laborum.Est enim voluptas qui dolor perferendis sint. Id est libero ipsam eos voluptatem. Debitis officiis et nam voluptates molestias. Molestiae eum nihil neque sapiente ea sunt provident.</strong></p>\n<p><img src=\"https://1.bp.blogspot.com/-Nyzsf0y4nJI/V8dKpy1jEMI/AAAAAAAABYo/NZp5U-4HxaM79-wqgTMCIVOs2Rac97C_gCLcB/s1600/nabilah-1.jpg\" alt=\"Tes Gambar\" /></p>\n<p><em>Facilis non qui quibusdam numquam impedit quia quos. Necessitatibus iure enim et similique laboriosam nobis laborum.Est enim voluptas qui do
<?php
namespace App\Http\Controllers;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
class Controller extends BaseController
public function (WoodModel $wood) {
return $wood->load('karakter');
}