Skip to content

Instantly share code, notes, and snippets.

View phpfact's full-sized avatar
🎯
Focusing

Sachin Sharma phpfact

🎯
Focusing
View GitHub Profile
#Javascript
document.body.contentEditable = true
@phpfact
phpfact / index.html
Last active February 25, 2022 11:04
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
/* ============== View :: HTML ============== */
<form class="form-sectn_demo" id="tradingAcForm" method="POST" action="{{ route('UserTradingProcess') }}">
<div class="form-groupr">
<h2>Create Account</h2>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label for="modetype">Mode <span>*</span></label>
#Laravel
1. Laravel 8 tutorial | Ajax Form validation and display errors on blade without page refresh
https://youtu.be/Pij6bn0ebLo
2. Laravel 8 - Insert Data using Ajax
https://youtu.be/SMJucWMfo7w
<?php
public function getAllStudents() {
$students = Student::get()->toJson(JSON_PRETTY_PRINT);
return response($students, 200);
}
public function getStudent($id) {
<?php
$hash = bcrypt(12345);
$aaa = password_verify('12345', $hash);
dd($aaa);

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"
@phpfact
phpfact / cors.js
Last active February 3, 2022 12:44
/*
CORS Error Check Just Change URL and Copy and Paste into Console.log in Browser and Go to network Section in Console
Cors error checker sample code just change your url and copy and paste into console in browser and got o network section
*/
fetch('http://swatantrafoundation.com/backend/api/job-add',{
method:"post",
NODE_ENV = local
PORT = 4220
IP = 192.***.**.**
BASE_URL = http://${IP}:${PORT}/
PROFILE_UPLOAD = ${BASE_URL}
POST_UPLOAD = ${BASE_URL}/uploads/discussion/
COMPANY_UPLOAD = ${BASE_URL}/uploads/company/
ITEM_UPLOAD = ${BASE_URL}/uploads/item/
GROUP_UPLOAD = ${BASE_URL}/uploads/group/
/* Website Visitor count image */
/* Create your own image start with zero */
https://www.freecounterstat.com/step_3.php#afficher