How to upload Laravel to shared hosting - Cara upload laravel project ke hosting


For the first you must finished laravel project , after finished your project now you can upload to shared hosting. but how do this ??
*You must just compresed laravel project on .ZIP files.*
after compress upload on your cpanel hosting.

You can upload with 2 trick
1. Upload full laravel folders including public folder
2. Upload laravel project with move public folder on root.


You can follow instruction
1. Upload full laravel folders including public folder
For the first you must upload laravel folder .zip on cpanel hosting after upload extract it on root folder or sub folder , and for first you must create index.php files on root directori laravel project folder create new file and rename it with index.php and copy paste the code on index.php files <?php header(‘Location: public/’); ?> and save index.php files.
This tips for accsses and redirected laravel project with public folder for example like this https://laravel.com/public/helloworld

2. Upload laravel project with move public folder on root.
If you wana laravel project accsess full domain you can upload on your root folder on shared hosting, upload and extract .zip files, and move all files the public folder laravel on root folder.
After move all files,now you can edit on index.php files with this.

line 24 on index.php
standard on root folders
require __DIR__.'/../vendor/autoload.php';
if you upload in sub folder or not in root folder public_html so you must edited code like this
require __DIR__.'/../subfolder/vendor/autoload.php';

line 38 on index.php files
standard on root folders
$app = require_once __DIR__.'/../bootstrap/app.php';
if you upload in sub folder or not in root folder public_html so you must edited code like this
$app = require_once __DIR__.'/../subfolder/bootstrap/app.php';

and save index.php files.

Now you can test your laravel website or app projecton shared hosting. and viola..... congrats now your laravel project on the clouds.


and if you need web app or creative website call us for the best solutions.

Text Notes Update

Aplikasi
Temukan aplikasi toko,aplikasi restoran,aplikasi bengkel, aplikasi sekolah, aplikasi invoice , aplikasi akuntansi , aplikasi ekspedisi disini.

Bang Resto Aplikasi Restoran
Aplikasi restoran cafe rumah makan sangat lengkap include website integrasi ,waitrers, kitchen ,kasir, admin, qr code menu digital , whatsapp online order dalam satu app.

Pembuatan Website Cepat dan SEO
Saatnya kini kembangkan website super cepat tanpa database dengan dukungan SEO di dalam nya.

Typography Hockey Computindo
Mesin Kasir , aplikasi kasir , aplikasi toko, aplikasi restoran, aplikasi bengkel, aplikasi sekolah, pembuatan website terbaru.

Lava Aplikasi Toko Grosir dan Eceran.
Kebutuhan untuk penjualan eceran grosir maka menggunakan aplikasi toko lavaapp adalah pilihan terbaik untuk toko minimarket bisnis usaha mu.

Mesin Kasir
Mesin Kasir terbaru untuk toko minimarket dan mesin kasir restoran cafe rumah makan.

Mesin Kasir Restoran
Restoran cafe rumah makan wajib menggunakan mesin kasir ini, lengkap aplikasi software program restoran waiters kitchen kasir admin all in one.

Mesin Kasir Toko
Sempurna dengan barcode system dan touchscreen metode untuk mesin kasir toko minimarket retail shop.

Pembuatan website modern terbaru
Buat web modern bersama kami dengan react, next, remix, gatsby , angular, svelte , blazor wasm untuk solusi terbarik pengembangan site mu.

Mr.RestoPos Aplikasi Restoran
Aplikasi restoran cafe rumah makan super lengkap dengan kemampuan waiters , kitchen display, kasir dan admin dalam satu app integrasi website resto cafe rumah makan.

Explore Notes

Product & Services

Dukungan produk dan layanan kami untuk membantu memajukan bisnis usaha mu.

mesin kasir online

Mesin Kasir

Pilihan mesin kasir terbaik dengan hardware pilihan.

modern website

Website

Pengembangan website modern technology.

aplikasi kasir toko restoran

Applikasi

Aplikasi kerja untuk menunjang bisnis usaha mu.