Need one help from anyone.
How to get environment variable which is defined under the .env file in Laravel project and i want to access this environment in vuejs component.
.env file
SECREAT_KEY=<My secreat key here>
And i want to access same variable under the login components
export default {
name: 'login',
data () {
return {
login: {
username: '',
password: '',
grant_type: 'password',
client_id: <client id>,
client_secret: <SECREAT_KEY I want access here>
},
submitted: false
}
}
}