1

my api work in PostMan but not in react and show this error

No application encryption key has been specified

fetch(URL, {
  method: 'post',
  headers: {
    Accept: 'application/json',
    'Content-Type': 'application/x-www-form-urlencoded',
    'Content-Language': 'en',      },
  body: formUrlEncoded(data),
})

1 Answers1

0

You can use :

php artisan key:generate
php artisan serve

or

php artisan key:generate --env=testing
Sacha Durand
  • 473
  • 1
  • 5
  • 11
  • This subject may interest you : https://stackoverflow.com/questions/44839648/no-application-encryption-key-has-been-specified?rq=1 – Sacha Durand Aug 24 '21 at 07:48