E-commerce Laravel – Demo Laravel 7 Application

In simple words, e-commerce is buying and selling of goods through internet means. There has been vast development in e-commerce since its introduction in the market. Buying and selling of goods has been a lot easier because of it.

E-commerce laravel was developed using latest Laravel 7. This project is simple yet very educational. It uses MVC as it’s base architecture for development. As a result, it’s coding architecture is clean and simple to understand.

It has almost every important features that a good ecommerce website should have. Some of those features are here below:

Users can view all added products according to categories
It also has add to cart and checkout feature
Users can also saved items for later
Online payment system using Stripe

https://laravelproject.com/e-commerce-laravel-demo-laravel-7-application/

https://github.com/SanishGrg/Laravel7-ecommerce

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
</IfModule>

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]

</IfModule>

 

More info

https://stackoverflow.com/questions/28364496/laravel-5-remove-public-from-url

+++

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

_hero.scss

video: 13:38

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

https://www.geeksforgeeks.org/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

https://stackoverflow.com/questions/39382588/how-to-create-new-set-of-color-styles-in-bootstrap-4-with-sass

https://www.codeply.com/go/7qDwaKnBzc/bootstrap-4-sass-add-custom-color

Formatting Laravel Blade code – Visual Studio Code editor

Please make sure you are using the latest version and “Laravel Blade Snippets” Extension installed.

In “User settings” > “Extensions” > “Blade Configaration” check the option Enable format blade file.

Restart

https://stackoverflow.com/questions/46268211/how-to-format-laravel-blade-codes-in-visual-studio-code

Laravel Blade Snippets https://marketplace.visualstudio.com/items?itemName=onecentlin.laravel-blade