Skip to content

Instantly share code, notes, and snippets.

View fryctze's full-sized avatar
:octocat:
At home

Fikry C. Farenza fryctze

:octocat:
At home
  • Student at Ma Chung University
  • Malang, Indonesia
View GitHub Profile
@ewilan-riviere
ewilan-riviere / UploadFile.php
Last active February 5, 2024 18:31
Upload file Blade component for Laravel with FilePond, ready for Livewire.
<?php
namespace App\View\Components\Field;
use Illuminate\View\Component;
use Illuminate\View\View;
class UploadFile extends Component
{
public function __construct(
@jeffochoa
jeffochoa / Response.php
Last active May 22, 2024 04:06
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;