git config --global alias.lazy '!f() { git add -A && git commit -m "$@" && git push; }; f'
and use this command for add, and commit
#############blade | |
<!-- Modal edit--> | |
<div id="modal-edit" class="modal fade" role="dialog"> | |
<div class="modal-dialog"> | |
<!-- Modal content--> | |
<div class="modal-content"> | |
<div class="modal-header"> | |
<button type="button" class="close" data-dismiss="modal">×</button> |
@extends('index') | |
@section('contentheader_title','Master Produk') | |
@section('customcss') | |
<link rel="stylesheet" href="{{ asset('/plugins/datatables/dataTables.bootstrap.css') }}"> | |
<link rel="stylesheet" href="{{ asset('/plugins/datatables/jquery.dataTables.min.css') }}"> | |
@endsection | |
@section('content') |
@extends('index') | |
@section("contentheader_title") | |
Detail Produk {{ ucfirst($product->product) }} | |
@endsection | |
@section('customcss') | |
<link rel="stylesheet" href="{{ asset('/plugins/datatables/dataTables.bootstrap.css') }}"> | |
<link rel="stylesheet" href="{{ asset('/plugins/datatables/jquery.dataTables.min.css') }}"> |
error: function (xhr) { | |
console.log(xhr); | |
if (xhr.readyState === 4) { | |
if (xhr.status === 404) { | |
swal({ | |
type: 'error', | |
title: 'Oops...', | |
text: xhr.responseJSON.error, | |
}); | |
} else { |
//Controller | |
public function edit($id) | |
{ | |
$data = User::where('id',$id)->first()->toJson(); //only model can use toJson() | |
return view('admin/pencatatan/form',[ 'data' => $data]); | |
} | |
//js-view | |
var data = {!! $data !!} |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Tugas Pertama HTML</title> | |
</head> | |
<style> | |
#register-form{ | |
margin: 0 auto; | |
width: 350px; |
#Use SCP, make sure you have installed it or installed it now | |
`sudo apt install openssh-client` or `sudo apt-get install openssh-client` | |
1. Open Terminal | |
2. command: `scp -r localpath/* user@ip:/path/to/upload` | |
Note: | |
`-r` meaning a recursive get all files and sub folder | |
`localpath` is a local folder on your computer, and user `/*` get only files, subfolders |
--GENERATE PLAN LINK200600807 FOR COLUMN 'ordersn' | |
--USED MAX NOT COUNT | |
--TESTED IN POSTGRESQL | |
-- FUNCTION ONLY POSTGRES | |
-- 1. '||' FOR CONCAT | |
-- 2. 'TO_CHAR' FOR GENERATE DATE FORMAT | |
-- 3. '::TEXTT' FOR CASTING | |
SELECT 'LINK' || to_char(CURRENT_DATE, 'YYMMDD') || |
#Heading 1 ##Heading 2 ###Heading 3 ####Heading 4 #####Heading 5 ######Heading 6
Paragraph