0
votes

I am using Laravel 8 with Livewire. My Laravel Livewire application URL is like http://localhost/myproject.

My Laravel Livewire admin panel url is like http://localhost/myproject/admin.

I am fetching problem with anchor tag. When I change the page in pagination the View button URL in Livewire add public is automatically.

My View button code as below:

<a href="{{route('manage-product',$resdata->id)}}" class="btn btn-primary">View</a>

but, link is showing like http://localhost/myproject/public/admin/manage-product/15. That View button link in public is automatically added by Livewire.

How i can remove public from url('/') function?

I attached a screen shot, please check. screen shot

1
Check the APP_URL in your .env, that's probably why.Qirel

1 Answers

0
votes

Dont forget to add entry point to your project in server settings. and in .env file you should write "APP_URL=http://localhost".