blizzerand / laravel5.5_and_react_demo Goto Github PK
View Code? Open in Web Editor NEWAn application built using Laravel and React
An application built using Laravel and React
development
cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules
--config=node_modules/laravel-mix/setup/webpack.config.js
'cross-env' n’est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
i have shared hosting and i want to have this e.g myapp.com how can i run it without port etc
thank you
Installing like this:
git clone [email protected]:blizzerand/Laravel5.5_And_React_demo.git react
cd react
composer install
yarn && yarn run dev
# edited .env with database details
php artisan migrate --seed
php artisan key:generate
I am running on laravel valet so should be good to go at react.dev
But I get:
app.js:10445 CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token
More specifically thats this section
var token = document.head.querySelector('meta[name="csrf-token"]');
if (token) {
window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content;
} else {
console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token');
}
Did I miss something?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.