Para usar React con Laravel 7 hay que intercambiar Vue por React siguiendo estos pasos:
Instalar el paquete ‘laravel/ui’
composer require laravel/ui
import React, {useState} from "react"; | |
import * as Yup from "yup"; | |
import InvalidFeedback from "../Components/InvalidFeedback"; | |
export default function Login({login}) { | |
const [formValues, setFormValues] = useState({ | |
'username': '', | |
'password': '', | |
}); | |
const [touched, setTouched] = useState([]); |
Si al usar la terminal de 'Visual Studio Code' con 'Git Bash' en Windows 10 te sale este error:
bash: warning: setlocale: LC_CTYPE: cannot change locale (es_419.UTF-8): No
such file or directory
Haz clic en File > Preferences > Settings (Menú superior)
Instalar Git para Windows https://gitforwindows.org/
Instalar Oh My Bash siguiendo las instrucciones de su README.md https://github.com/ohmybash/oh-my-bash
<?php | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
require_once 'vendor/autoload.php'; | |
use Dompdf\Dompdf; | |
use Fpdf\Fpdf; | |
use setasign\Fpdi\Fpdi; | |
use setasign\Fpdi\PdfReader; | |
class PDF_controller extends CI_Controller |