How do i change in vue to prodation?

|
jeyapratha_0710 2020-02-10 16:15:45
skys215 2020-02-10 16:09:16
check if APP_KEY is set on .env

noo it’s set like base64:xxx

skys215 2020-02-10 16:16:40
jeyapratha_0710 2020-02-10 16:15:45
noo it’s set like base64:xxx

yeah, then it is set then

PHP Begginer 2020-02-10 16:16:48
laravel_discuss-26211.jpg

PHP Begginer 2020-02-10 16:16:57
laravel_discuss-26212.jpg

skys215 2020-02-10 16:17:02
jeyapratha_0710 2020-02-10 16:15:45
noo it’s set like base64:xxx

have you tried refresh the page and login again?

PHP Begginer 2020-02-10 16:17:07
laravel_discuss-26214.jpg

2020-02-10 16:17:49
jeyapratha_0710 2020-02-10 16:08:14

maybe i can help you

skys215 2020-02-10 16:18:36
PHP Begginer 2020-02-10 16:16:48

take a screenshot of the result of route:list not route/web.php
I think the result of command line is more reliable

skys215 2020-02-10 16:18:49
btw, are there any route starts with cart?
if yes, please show me those
PHP Begginer 2020-02-10 16:19:41
laravel_discuss-26218.jpg

jeyapratha_0710 2020-02-10 16:19:44
skys215 2020-02-10 16:17:02
have you tried refresh the page and login again?

done byt x changes

skys215 2020-02-10 16:26:36
PHP Begginer 2020-02-10 16:19:41

I assumed that cart/checkout is conflicted with cart/{product}
move the Route::get(/cart/product) above the /cart/{product}

skys215 2020-02-10 16:28:30
zmtrn 2020-02-09 22:01:44
Hi there,
Iโ€™m working with laravel 6
Have the session restart issue: it will start through each request!
So I cannot use even simple post request since the csrf token works with sessions..

Need help ๐Ÿ™๐Ÿ™

have you enabled startSession middleware?

skys215 2020-02-10 16:28:36
jeyapratha_0710 2020-02-10 16:19:44
done byt x changes

still same error?

jeyapratha_0710 2020-02-10 16:29:03
skys215 2020-02-10 16:28:36
still same error?

yup

skys215 2020-02-10 16:30:41
jeyapratha_0710 2020-02-10 16:29:03
yup

have you added @csrf?

jeyapratha_0710 2020-02-10 16:30:53
at wer sir
jeyapratha_0710 2020-02-10 16:30:56
not yet
skys215 2020-02-10 16:31:21
is it a POST request?
2020-02-10 16:31:50
skys215 2020-02-10 16:30:41
have you added @csrf?

yeah I think the same. his application version is 5.7

zmtrn 2020-02-10 16:32:56
skys215 2020-02-10 16:28:30
have you enabled startSession middleware?

What do you mean by enabling ? itโ€™s in middleware group by default.. and when I tracked the code, it did run but always out of the if condition

If( ! $this->sessionConfigured() )
{
return $next($request);
}

skys215 2020-02-10 16:34:36
zmtrn 2020-02-10 16:32:56
What do you mean by enabling ? itโ€™s in middleware group by default.. and when I tracked the code, it did run but always out of the if condition

If( ! $this->sessionConfigured() )
{
return $next($request);
}

is your route using web middleware group?

zmtrn 2020-02-10 16:34:48
Yeas
skys215 2020-02-10 16:35:54
is middleware AddQueuedCookiesToResponse also enabled?
zmtrn 2020-02-10 16:39:36
skys215 2020-02-10 16:35:54
is middleware AddQueuedCookiesToResponse also enabled?

Yes

skys215 2020-02-10 17:01:56
zmtrn 2020-02-10 16:39:36
Yes

itโ€™s a bit weird
Iโ€™ve faced same problem, but I forgot how did I solved it

zmtrn 2020-02-10 17:02:40
skys215 2020-02-10 17:01:56
itโ€™s a bit weird
Iโ€™ve faced same problem, but I forgot how did I solved it

๐Ÿคฆ๐Ÿปโ€โ™€๏ธ๐Ÿ™

faskt95 2020-02-10 17:05:16
skys215 2020-02-10 16:26:36
I assumed that cart/checkout is conflicted with cart/{product}
move the Route::get(/cart/product) above the /cart/{product}

Just add one more route string, it will work, the product is being processed has the placeholder

skys215 2020-02-10 17:10:04
faskt95 2020-02-10 17:05:16
Just add one more route string, it will work, the product is being processed has the placeholder

yes, thatโ€™s what i mean

PHP Begginer 2020-02-10 17:14:49
faskt95 2020-02-10 17:05:16
Just add one more route string, it will work, the product is being processed has the placeholder

i have changed the route as u said .Works

Ujjaval Vaishnav 2020-02-10 18:06:47
How to allow cors in laravel
Ujjaval Vaishnav 2020-02-10 18:06:55
Any suggestions?
skys215 2020-02-10 18:09:31
use cors package
Ujjaval Vaishnav 2020-02-10 18:18:47
I have created a middleware
But it’s not working
skys215 2020-02-10 18:50:28
use package
skys215 2020-02-10 18:51:34
Ujjaval Vaishnav 2020-02-10 18:18:47
I have created a middleware
But it’s not working

use this:
https://github.com/fruitcake/laravel-cors

GitHub – fruitcake/laravel-cors: Adds CORS (Cross-Origin Resource Sharing) headers support in your Laravel applicationGitHub
Adds CORS (Cross-Origin Resource Sharing) headers support in your Laravel application – GitHub – fruitcake/laravel-cors: Adds CORS (Cross-Origin Resource Sharing) headers support in your Laravel ap…
zmtrn 2020-02-10 19:42:41
zmtrn 2020-02-09 22:01:44
Hi there,
Iโ€™m working with laravel 6
Have the session restart issue: it will start through each request!
So I cannot use even simple post request since the csrf token works with sessions..

Need help ๐Ÿ™๐Ÿ™

Iโ€™m still searching for this one

skys215 2020-02-10 20:10:04
have you disabled cookie?
skys215 2020-02-10 20:25:56
add csrf
Marvixino 2020-02-10 21:16:42
Did anybody use aurora serverless? what is the cost & how is the performance?
2589 2020-02-10 21:50:30
how do i change in vue to prodation?
. 2020-02-10 21:51:27
share your form
2589 2020-02-10 22:02:54
You are running Vue in development mode.
Make sure to turn on production mode when deploying for production.
See more tips at https://vuejs.org/guide/deployment.html

Production Deployment โ€” Vue.jsv2.vuejs.org
Vue.js – The Progressive JavaScript Framework
2589 2020-02-10 22:03:16
how to remove this
StanleyMasinde 2020-02-10 22:05:06
No csrf token in the post request.

Token mismatch means the token you submitted does not match that on the server.

Token lifetime is the same as your session lifetime.

In blade just add @csrf in your form.

@csrf is compled to input with name _token

StanleyMasinde 2020-02-10 22:06:22
2589 2020-02-10 22:03:16
how to remove this

Npm run production

StanleyMasinde 2020-02-10 22:06:44
2589 2020-02-10 22:03:16
how to remove this

It’s not an error

2589 2020-02-10 22:09:00
StanleyMasinde 2020-02-10 22:06:22
Npm run production

same

2020-02-10 22:34:18
2589 2020-02-10 22:02:54
You are running Vue in development mode.
Make sure to turn on production mode when deploying for production.
See more tips at https://vuejs.org/guide/deployment.html

laravel_discuss-26264.jpg
Open file app.js and add the next code
Vue.config.productionTip = false

Samvel Shamamyan 2020-02-10 22:36:10
Ok
|