Skip to content

Instantly share code, notes, and snippets.

View syofyanzuhad's full-sized avatar
🏳️
I'm not superman

Syofyan Zuhad syofyanzuhad

🏳️
I'm not superman
View GitHub Profile
@syofyanzuhad
syofyanzuhad / auth.php
Created April 28, 2020 09:21
Laravel Validation bahasa Indonesia
<?php
return [
/*
|--------------------------------------------------------------------------
| Baris-baris bahasa untuk autentifikasi
|--------------------------------------------------------------------------
|
| Baris bahasa berikut digunakan selama proses autentifikasi untuk beberapa pesan
| yang perlu kita tampilkan ke pengguna. Anda bebas untuk memodifikasi
@syofyanzuhad
syofyanzuhad / pagination.php
Created April 28, 2020 09:23
Laravel Validation bahasa Indonesia
<?php
return [
/*
|---------------------------------------------------------------------------------------
| Baris Bahasa untuk Penomoran Halaman
|---------------------------------------------------------------------------------------
|
| Baris bahasa berikut meggunakan pustaka penomoran untuk membuat
| tautan yang sederhana. Anda bebas untuk mengubahnya kapan pun yang Anda
@syofyanzuhad
syofyanzuhad / passwords.php
Created April 28, 2020 09:26
Laravel Validation bahasa Indonesia
<?php
return [
/*
|---------------------------------------------------------------------------------------
| Baris Bahasa untuk Pengingat Kata Sandi
|---------------------------------------------------------------------------------------
|
| Baris bahasa berikut adalah baris standar yang cocok dengan alasan yang diberikan
| oleh pembongkar kata sandi yang telah gagal dalam upaya pembaruan kata
@syofyanzuhad
syofyanzuhad / validation.php
Created April 28, 2020 09:30
Laravel Validation bahasa Indonesia
<?php
return [
/*
|---------------------------------------------------------------------------------------
| Baris Bahasa untuk Validasi
|---------------------------------------------------------------------------------------
|
| Baris bahasa berikut ini berisi standar pesan kesalahan yang digunakan oleh
| kelas validasi. Beberapa aturan mempunyai banyak versi seperti aturan 'size'.

How to install Laravel globally in Ubuntu

===================================================================

Open your terminal using Ctrl+Alt+T and type the following commands

Step 1: Install Laravel

composer global require "laravel/installer"
@syofyanzuhad
syofyanzuhad / FormRequest.php
Last active September 12, 2021 20:55 — forked from jamesmills/FormRequest.php
change your default extends FormRequest to your customize FormRequest (API ONLY)
<?php
namespace App\Http\Requests\Api;
use Illuminate\Http\Request;
use Illuminate\Http\JsonResponse;
use Illuminate\Contracts\Validation\Validator;
use Illuminate\Validation\ValidationException;
use Illuminate\Http\Exceptions\HttpResponseException;
use Illuminate\Foundation\Http\FormRequest as LaravelFormRequest;
@syofyanzuhad
syofyanzuhad / Response.php
Created April 17, 2021 22:12 — forked from jeffochoa/Response.php
Laravel HTTP status code
<?php
// This can be found in the Symfony\Component\HttpFoundation\Response class
const HTTP_CONTINUE = 100;
const HTTP_SWITCHING_PROTOCOLS = 101;
const HTTP_PROCESSING = 102; // RFC2518
const HTTP_OK = 200;
const HTTP_CREATED = 201;
const HTTP_ACCEPTED = 202;
@syofyanzuhad
syofyanzuhad / .php-cs-fixer.php
Created June 4, 2021 09:43
PHP CS FIXER Configuration for Laravel 8 and PHP 8
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$rules = [
'array_syntax' => ['syntax' => 'short'],
'blank_line_after_namespace' => true,
'blank_line_after_opening_tag' => true,
@syofyanzuhad
syofyanzuhad / README.md
Created June 11, 2021 08:45 — forked from gbraad/README.md
Buy me a coffee

Buy me a coffee

Using inlined HTML

Buy Me A Coffee

<a href="https://www.buymeacoffee.com/gbraad" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;" ></a>
@syofyanzuhad
syofyanzuhad / smoothScrolling.js
Created June 30, 2021 08:50
smoothScrolling jquery for bootstrap
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
// Add smooth scrolling to all links
$("a.nav-link").on('click', function(event) {
// Make sure this.hash has a value before overriding default behavior
if (this.hash !== "") {
// Prevent default anchor click behavior
event.preventDefault();