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
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | |
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | |
/*!40101 SET NAMES utf8mb4 */; | |
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | |
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | |
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | |
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | |
CREATE TABLE `citas` ( |
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 Classes; | |
use PHPMailer\PHPMailer\PHPMailer; | |
class Email { | |
public $email; | |
public $nombre; |
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
const { src, dest, watch, parallel } = require('gulp'); | |
// css | |
const sass = require('gulp-sass')(require('sass')); | |
const plumber = require('gulp-plumber'); | |
// img | |
const cache = require('gulp-cache'); | |
const imagemin = require('gulp-imagemin'); | |
const webp = require('gulp-webp'); |
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
const { src, dest, watch, parallel } = require('gulp'); | |
// CSS | |
const sass = require('gulp-sass')(require('sass')); | |
const plumber = require('gulp-plumber'); | |
const autoprefixer = require('autoprefixer'); | |
const cssnano = require('cssnano'); | |
const postcss = require('gulp-postcss'); | |
const sourcemaps = require('gulp-sourcemaps'); |
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
public function olvide(OlvideRequest $request) | |
{ | |
$data = $request->validated(); | |
$user = User::where('email', $data['email'])->first(); | |
if($user) { | |
$user->recoveryToken = Str::random(30); | |
$user->save(); | |
Mail::send('emails.recovery', ['token' => $user->recoveryToken, 'nombre' => $user->name], function ($message) use ($user) { |
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
const productos = [ | |
{ | |
nombre: "Café Caramel con Chocolate", | |
precio: 59.9, | |
imagen: "cafe_01", | |
categoria_id: 1, | |
id: 1 | |
}, | |
{ | |
nombre: "Café Frio con Chocolate Grande", |
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; | |
class Propiedad | |
{ | |
//Base de datos | |
protected static $db; | |
/* protected static $columnasDB = [ |
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
Recetas cocteles | |
https://www.thecocktaildb.com/ | |
Recetas Comidas | |
https://www.themealdb.com/ | |
https://undraw.co/illustrations?fbclid=IwAR1L5IGumrG6MpeeSdZz7d6iV2wY9LKObizS9qdK21gvwJ5HnbnUAXl8juw |
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
// Variables | |
const btnEnviar = document.querySelector('#enviar'); | |
const btnReset = document.querySelector('#resetBtn'); | |
const formulario = document.querySelector('#enviar-mail'); | |
// Variables para campos | |
const email = document.querySelector('#email'); | |
const asunto = document.querySelector('#asunto'); | |
const mensaje = document.querySelector('#mensaje'); | |
const er = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; |
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
// crea un nuevo registro | |
public function crear() { | |
// Sanitizar los datos | |
$atributos = $this->sanitizarAtributos(); | |
// Insertar en la base de datos | |
$query = " INSERT INTO " . static::$tabla . " ( "; | |
$query .= join(', ', array_keys($atributos)); | |
$query .= " ) VALUES ('"; | |
$query .= join("', '", array_values($atributos)); |
NewerOlder