i try to call in my view to {{env(‘APP_URL’)}}
but is didnt work
and when i try
public function mount(){
dd(env('APP_URL'));
}
still didnt work
whats wrong?
i try to call in my view to {{env(‘APP_URL’)}}
but is didnt work
and when i try
public function mount(){
dd(env('APP_URL'));
}
still didnt work
whats wrong?
Don’t use env in your code. Always use config helper. This is a Laravel recommendation not specfic to Livewire.
public function mount(){
dd(config('app.url'));
}