Skip to content

Instantly share code, notes, and snippets.

View aryadiahmad4689's full-sized avatar
🎯
Learning Every Day

Silver Bullet aryadiahmad4689

🎯
Learning Every Day
View GitHub Profile
<form>
<div class="form-group">
<input type="hidden" wire:model="post_id">
<label for="exampleFormControlInput1">Title</label>
<input type="text" class="form-control" wire:model="title" id="exampleFormControlInput1" placeholder="Enter Title">
@error('title') <span class="text-danger">{{ $message }}</span>@enderror
</div>
<div class="form-group">
<label for="exampleFormControlInput2">Description</label>
<input type="text" class="form-control" wire:model="description" id="exampleFormControlInput2" placeholder="Enter Description">
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Programmer Copas - Livewire/title>
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Nunito:200,600" rel="stylesheet">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.1/css/bootstrap.min.css">
<!-- Styles -->
<form>
<div class="form-group">
<label for="exampleFormControlInput1">Title</label>
<input type="text" class="form-control" id="exampleFormControlInput1" placeholder="Enter Title" wire:model="title">
@error('title') <span class="text-danger">{{ $message }}</span>@enderror
</div>
<div class="form-group">
<label for="exampleFormControlInput2">Description</label>
<input type="text" class="form-control" id="exampleFormControlInput2" wire:model="description" placeholder="Enter Description">
@error('description') <span class="text-danger">{{ $message }}</span>@enderror
<div>
{{-- Stop trying to control. --}}
@if($updateMode)
@include('livewire.update')
@else
@include('livewire.create')
@endif
<table class="table table-bordered mt-5">
<thead>
@aryadiahmad4689
aryadiahmad4689 / laravel-github-actions.yml
Last active May 24, 2022 03:28
laravel-github-actions
name: Laravel-github-action #nama pipeline bisa sesuai keinginan
on:
push:
branches: [ master ] # maksud dari ketiga kode diatas adalah dijalankan ketika ada push ke branch master
jobs: # pekerjaan yang akan dijalankan
laravel-tests: # nama pekerjaan
runs-on: ubuntu-latest # berjalan di os ubuntu
steps: # langkah-langkah yg dijalankan
FROM php:7.3-cli-alpine
# envirotmen variable
ENV \
APP_DIR="/app" \
APP_PORT="8001"
# memindahkan file atau folder ke direktori yang di inginkan di docker
COPY . $APP_DIR
COPY .env.example $APP_DIR/.env
{
"order_id" : "string",
"order_chanel": "string",
"area_code": "string",
"vehicle_class": "string",
"order_start_date": "2021-08-01",
"order_end_date": "2021-08-01",
"order_start_time": "00:00",
"order_end_time": "00:00",
}
<?php
// kita membuat interface autenticate
interface DocManager
{
public function authenticate($user, $pwd);
public function getDocuments($folderid);
public function getDocumentsByType($folderid, $type);
public function getFolders($folderid=null);
public function saveDocument($document);
<?php
interface Prototype {
public function clone(): Prototype;
}
class Pesawat implements Prototype{
private $mesin;
private $kursi;
<?php
interface BuilderRumah{
public function setJendela(int $jendela);
public function setAtap(string $atap);
public function setPintu(string $pintu);
public function build();
}
class RumahKayu implements BuilderRumah{