Skip to content

Instantly share code, notes, and snippets.

View jonathanjd's full-sized avatar
🏠
Working from home

Jonathan David jonathanjd

🏠
Working from home
View GitHub Profile
{
"compilerOptions": {
"outDir": "./public/",
"noImplicitAny": true,
"module": "es6",
"target": "es5",
"jsx": "react",
"allowJs": true
},
"exclude": [
composer require tymon/jwt-auth:dev-develop --prefer-source
@jonathanjd
jonathanjd / Builder.php
Created September 12, 2018 15:22
ErrorException in Builder.php
I have same problem. Laravel 5.2, php 7.2
If change error Line 1185 in 'vendor\laravel\framework\src\Illuminate\Database\Eloquent\Builder.php' to:
$originalWhereCount = is_array($query->wheres) ? count($query->wheres) : 0;
error will be fix, but I am new in Laravel.
.m-none { margin: 0; }
.p-none { padding: 0; }
.m-t-none { margin-top: 0; }
.p-t-none { padding-top: 0; }
.m-r-none { margin-right: 0; }
.p-r-none { padding-right: 0; }
.m-b-none { margin-bottom: 0; }
.p-b-none { padding-bottom: 0; }
.m-l-none { margin-left: 0; }
.p-l-none { padding-left: 0; }
@jonathanjd
jonathanjd / index.php
Last active June 30, 2018 02:29
public_path() Change (Hosting Compartido)
<?php
/**
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
* @author Taylor Otwell <taylor@laravel.com>
*/
define('LARAVEL_START', microtime(true));
// Large Devices
@media (min-width:1200px) {
#home-heading {
h3 {
color: blue;
}
}
}
//Medium Devices
@jonathanjd
jonathanjd / .eslintrc
Created June 24, 2018 05:42 — forked from elijahmanor/.eslintrc
Add Prettier & ESLint to VS Code with a Create React App
{
"extends": ["react-app", "plugin:prettier/recommended"]
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<div id="app">
@jonathanjd
jonathanjd / laravel.log
Created February 9, 2018 22:14
Limpiar Log Laravel
truncate -s 0 storage/logs/laravel.log
@jonathanjd
jonathanjd / ModuloStudentController.php
Last active February 3, 2018 03:31
Confirmar Pago con Paypal
public function studentPlanPaymentStore(Request $request)
{
# code...
$payment = PaypalPayment::getById($request->paymentId, PaypalPayment::apiContext());
$execution = PaypalPayment::PaymentExecution()->setPayerId($request->PayerID);
$payment = $payment->execute($execution, PaypalPayment::apiContext());
dd($payment);