This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function update(Request $request, $id) | |
{ | |
$this->validate($request, [ | |
'number' => 'required', | |
'client_id' => 'required', | |
'location_id' => 'required', | |
'priority_id' => 'required', | |
'status_id' => 'required', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function athdata_get_companies( WP_REST_Request $request ) { | |
$draw = $request['draw']; | |
$start = $request['start']; //Start is the offset | |
$length = $request['length']; //How many records to show | |
$column = $request['order'][0]['column']; //Column to orderBy | |
$dir = $request['order'][0]['dir']; //Direction of orderBy | |
$searchValue = $request['search']['value']; //Text search value | |
$args = [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: mit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var sass = require('gulp-sass'); | |
var watch = require('gulp-watch'); | |
var browserSync = require('browser-sync'); | |
var csso = require('gulp-csso'); | |
var uglify = require('gulp-uglify'); | |
var postcss = require('gulp-postcss'); | |
var autoprefixer = require('autoprefixer'); | |
var postcssAnt = require('postcss-ant'); | |
var webpack = require('webpack'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function api_register_user( WP_REST_Request $request ) { | |
$username = sanitize_text_field( trim( $request['username'] ) ); | |
$email = sanitize_email( trim( $request['email'] ) ); | |
$password = sanitize_text_field( trim( $request['password'] ) ); | |
$confirm_password = sanitize_text_field( trim( $request['confirm_password'] ) ); | |
$captcha = $request['captcha']; | |
$errors = []; | |
if( ! $captcha ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import '../scss/admin.scss'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import '../scss/admin.scss'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Helper function for getting the exif data. | |
function base64ToArrayBuffer (base64) { | |
base64 = base64.replace(/^data\:([^\;]+)\;base64,/gmi, ''); | |
var binaryString = atob(base64); | |
var len = binaryString.length; | |
var bytes = new Uint8Array(len); | |
for (var i = 0; i < len; i++) { | |
bytes[i] = binaryString.charCodeAt(i); | |
} | |
return bytes.buffer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Console\Commands; | |
use Aws\S3\MultipartUploader; | |
use Aws\Exception\MultipartUploadException; | |
use Illuminate\Console\Command; | |
use Storage; | |
class BackupCRM extends Command |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var invoicesTable = $('table.invoices-table').DataTable({ | |
processing: true, | |
serverSide: true, | |
lengthChange: true, | |
rowId: 'id', | |
"ajax": { | |
"url": '/invoices', | |
"dataSrc": "data.data", | |
data: function ( d ) { | |
var dateType = $('#dateType').val(); |