csesumonpro's avatar

How to storage link laravel project in live server

I have already upload a laravel project in live server using subdomain. How to storage link laravel project in live server.

0 likes
3 replies
aurawindsurfing's avatar

You need to connect to it via ssh, then run php artisan storage:link from terminal.

jlrdw's avatar

First, what "live server"?

Services like D.O., AWS, etc it will be no problem.

If however shared host why are you concerned about it, I just put assets and images in public, but it doesn't have to have name public.

See this image:

https://i.imgur.com/Oo6k4Fp.jpg

Main laravel is above htdocs

See where larave54 is thats public.

I have a folder in that

assets\upload\imgdogs

To diaplay an image:

<img src="{{ asset('assets/upload/imgdogs') . '/' . $row->dogpic }}" alt="" class="image">

It is really that simple.

Please or to participate in this conversation.