Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

SagorIslam's avatar

How to upload laravel project in Cpanel without changing public files

Hello everyone,

I want to upload a laravel project in Cpanel without changing public files. And all of my project images are connected via storage:link. And linked images in blade files like that: {{ asset('storage/public/site-info/' . $data->logo) }}.

NOTE: Everythings is okay in the local server.

I hope you guys will help me to deploy my project successfully in Cpanel(live server).

Thanks.

0 likes
3 replies
EdithBratt's avatar

Basically I've started a project from scratch, and I'm kinda stumbling on what to do first or if I should be making multiple things at the same time. This is the order in which I do things:

Design the database where I'll store my data, obviously this is one of the most important steps because how the data will be organized is one of the most important things, because you will be reaching for that data all the time. So I started with the migrations.

Create the relationships between the models.

Creating factories and seeding data (faker package) to make sure all relationships work as expected, including the foreign keys.

Create the controllers in the order the user access to the website, lets say first I create the HomeController and it's views (with basic css to make sure it shows well), and start from there. If a user can access a Category from the home page, create https://omegle.onl/ https://xender.vip/ the CategoryController and its views/components, and expand to all the website from there.

Refactor everything to prevent code duplications, use of traits, create middleware, authentication.

Make a design of the website and think about how I want it to look like, and starting working with the styling.

And there comes my problem, I can't get a page to look great, some flex classes not working, color palette and design looking like a school project, it feels like a 2000 website.

Should I start styling the same time I'm creating the views? Should I use a external program/platform to design the views and then translate it into css?

Deep inside I feel like a back-end developer who can't design a view without looking disfigured. Am I alone in this feeling, is it normal?

tallaljamshed's avatar

put the content of laravel public folder in public_html... rest of the content goes out of the public_html folder.... lets say make a new folder laravel_project right beside public_html... it will work fine just use ur domain

Please or to participate in this conversation.