Skip to content

Instantly share code, notes, and snippets.

View phpfact's full-sized avatar
🎯
Focusing

Sachin Sharma phpfact

🎯
Focusing
View GitHub Profile
/* One Table to Another Table Update :: Mysql Query */
/* Other Database to Another Table Update */
UPDATE countries.countries,mainsato_sathoshifxo.country SET mainsato_sathoshifxo.country.continent=countries.countries.continent WHERE mainsato_sathoshifxo.country.nicename=countries.countries.name;
/* Other Table to Other Table COlumn Update */
<?php
namespace App\Http\Requests;
use App\Model\User\VerificationDetails;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Support\Facades\Auth;
use Illuminate\Contracts\Validation\Validator;
use Illuminate\Http\JsonResponse;
// Class Finder Class Selector Class Finder Class Common Class Selector Error Class Error Class Laravel Error Class Finder span error_ _error class finder
//Prefix Class Name
$('span[class*=" error_"]').text(''); or $('span[class*="error_"]').text('');
<span class="error_email">11111</span>
<span class="error_fname">11111</span>
<span class="error_lname">11111</span>
<span class="error_password">11111</span>
<script>
// Ajax in Headers Set Every 15 Seconds
setTimeout(function() {
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
Post unchecked html checkboxes | always get checkbox post value
//URL: https://stackoverflow.com/questions/1809494/post-unchecked-html-checkboxes
<div>
<input type="hidden" name="checkboxName[]" value="0"><input type="checkbox" onclick="this.previousSibling.value=1-this.previousSibling.value">
</div>
Master Password | Master Password | Password Master | More More Example
https://csshint.com/jquery-password-strength-meter
/* Solution */
php artisan passport:install
// File Path
app\Exceptions\Handler.php
<?php
# Interview Question Advance Basic
# Solve Bellow Problem
-3 What is vHost (Virtual hosting) : 1 Server pr miltiple domain setup yaa fir 1 server pr multiple folder k sath single domain but multiple id address.
-2. APNs vs FCM (Apple Push Notification Service (APNs) is a service that allows third-party app developers to send notifications to Apple devices.) vs (Firebase Cloud Messaging (FCM) is a service that allows developers to send notifications to their users. FCM can be used to notify a client app that new data is available to sync, such as new email. )
-1. firebase cloud firestore vs firebase realtime database (kon database kis project k lye use krte hai)
0. mere pass table hai kis user ne subscription purchase kiya hua hai. and table m column hai subscription_expiry_at and data type hai timestamp. too kya m 100 years baad ki date story kr skta hu? (Solution: timestamp 2038 k baad ka timestamp saved nhi ho skta. ye solution k lye DATETIME data type choose krna hoga. DATETIME 9999 year tk ka