Laravel 5 – Remove Public from URL

Rename server.php in your Laravel root folder to index.php
Copy the .htaccess file from /public directory to your Laravel root folder.

AND Protect your env file:


<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes

RewriteEngine On

# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

# Redirect Trailing Slashes If Not A Folder…
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]

# Handle Front Controller…
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

#Added env protect
RewriteCond %{THE_REQUEST} ^.*/\.
RewriteRule ^(.*)$ – [R=404]



More info


Laravel 5 change public_path()

public/ index.php :

$app->bind(‘path.public’, function() {
return __DIR__.’/../’;

(My uploads folder in application root/uploads )

Laravel and Sass

Laravel from Scratch #3 – Compile SASS with Laravel Mix

npm install

npm install -g cross-env

npm run watch


video: 13:38

How to use SASS to create new set of color styles in Bootstrap 4 ?

How to create new set of color styles in Bootstrap 4 with sass

Laravel Vue.js Auction site development /PHP Laravel 5.8, Vue.js, MySQL

Here is the Demo site:

VueJs and PHP Laravel 5.8 Auction is an E-Commerce multi-vendor program.
This is a PHP Laravel based software that let users sell goods or bid on other products after registration.

Server Requirements: PHP >= 7.1.3, MySQL, Apache webserver, .htaccess enabled.
The program is also working on shared hosting.

Vendors/sellers can create their own account, product, specify their own currency, upload product images.
User (vendor) can set the opening price, buy now price, currency, category.
User (vendor) can add 10 photos of the product by dragging on the page.
SuperAdmin user can moderate the auction and has full control of user, bid, auction.
Registered user (vendor) can create auction or bid auction.

TODO list: I have to solve the multi-lang in the Vue.js Under development

Vue.js VueI18n – Laravel Vue lang

It has the ability to send Laravel json translation files to the front end through a Artisan command.


Implementing i18n in Vue.js Using vue-i18n

Localization with Laravel and VueJS

How to Add Internationalization to a Vue App

Run artisan commands on shared hosting server (Laravel)

+ TODO delete logs shared hosting

1. Open the web.php file which is in the “route” folder of your project and paste the below code.
//Clear configurations:
Route::get(‘/config-clear’, function() {
$status = Artisan::call(‘config:clear’);
return ‘<h1>Configurations cleared</h1>’;

//Clear cache:
Route::get(‘/cache-clear’, function() {
$status = Artisan::call(‘cache:clear’);
return ‘<h1>Cache cleared</h1>’;

//Clear configuration cache:
Route::get(‘/config-cache’, function() {
$status = Artisan::call(‘config:Cache’);
return ‘<h1>Configurations cache cleared</h1>’;

Laravel Mail with Gmail and Mailtrap


ERROR solution: