Hostma – Laravel Modern Web Hosting Template

Dashboard
Welcome to Hostma – Laravel Modern Web Hosting Template
  • Created Date : 01/March/2023
  • Author : Spruko
  • Company : Spruko Technologies Private Limited

Thank you for showing interest towards our admin template. Feel free to contact us any time. We have a dedicated team to provide you the best support. If you want any queries open support ticket https://support.spruko.com/.

Introduction
Welcome to Hostma – Laravel Modern Web Hosting Template

Hostma - Laravel Modern Web Hosting Template, With these template formats, it's very easy to create a presence and grab someone's attention around the web page Because the template is built using HTML5, CSS3, Bootstrap 5 framework and with Sass. So please before you start working with the template take a quick look on the documentation so that you can easily built your website.

If You Love Our Template Design Please don't forgot to rate it. Thank you so much! 😊

Template Description

Hostma is a Modern Web Hosting Template using modern and minimal design. It is fully flexible user-friendly and responsive. Hostma Modern template is powered with HTML 5, SASS, & Bootstrap 5 which looks great on Desktops, Tablets, and Mobile Devices. This Template Includes 40+ blade.php Pages . No Need to do hard work for this template customization. We already designed it and you can easily design your website just how you like it. This template using Bootstrap 5 framework. After Purchased this template you will get All PHP files,CSS, Scss and JS Files.

It has super clean flat user interface admin Backend design, easy customizable components and widgets.The Template comes with a awesome unique design also we ensure you can easily design template.

It is a fully responsive layout for all type of devices. Works on all major web browsers, Desktop, iPhone, iPad, Tablet and all other smart phone devices

Once you Purchase Hostma is a Modern Web Hosting Template, you will be able to get free download of all future updates.

Theme Features :

Light Theme

Dark Theme

LTR Version

RTL Version

Fullwidth & Boxed

Template Features
Dark Theme Ready RTL Version Boxed Layout
40+ blade.php Pages Easy to Customize Bootstrap 5 Responsive Framework
24 * 7 Professional Company Support Error Page Under Construction Page
Color Theme Support (Primary and Background) Neat, clean and simple design W3C Validated
Minimum Requirements

  • PHP >= 8.1 or Newer
  • Laravel/Framework >= 10.0 or Newer
  • Livewire >= 2.11
  • BCMath PHP Extension
  • Ctype PHP Extension
  • DOM PHP Extension
  • OpenSSL PHP Extension
  • Fileinfo PHP extension
  • PDO PHP Extension
  • Mbstring PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension
  • JSON PHP Extension
Installation Process of Composer

Note: The clear documentation of PDF is given on How To Run Laravel Project In Localhost - For Beginners. Please Check out the PDF before running the project.

In order to run Laravel we need to install composer by the following steps

Steps to Download & Installation of Composer


Step1: Please visit the Official Web Site of the Composer www.getcomposer.org

Step2:Click on the Download option

Step3: Click on the Composer-Setup.exe you are done with download

Step4: Now Right click on the Composer-Setup.exe file and select Run as administrator click on Yes

Step5: You'll be getting two options click as per your choice

Step6: I choose Recommended option here and if your developer you can check the box of the Developer Mode

Step7: And click on the Next button please make sure of installation path and then click Next

Step8: You'll be asked to enter proxy url please skip the step and click on the Next button

Step9: Please make sure with the PHP Version it should not be less than 8.0v, here we used 8.1.12 Version and then click on the next button

Step10: To confirm that Composer is installed in your system then type Composer in command prompt (if you are using XAMPP then go to C:\xampp\htdocs location and type composer)

Installation Process Of Laravel
Here we are using "Composer" to download "Laravel" packages

Note : This installation is shown based on XAMPP server..

  1. Open command prompt, find the path of your XAMPP that is installed in your system.
  2. Go to Example:C:\xampp\htdocs> path in command prompt.
  3. Now type the following command line composer create-project laravel/laravel my-project and hit enter to install the Laravel Packages in your "htdocs" folder.
  4. Now your downloading is started please wait for sometime to download all the necessary packages
  5. Once you are redirected to the C:\xampp\htdocs> path then you are sucessfully installed laravel

  6. Note: If you have any further queries in installation please refer to the official websites Click here

After installation run following command to get laravel development server
php artisan serve
How to install Livewire
  1. Basic requirements to install Livewire
    • --> PHP 8.0.2 or higher
    • --> Laravel 9.19 or higher
  2. Install LiveWire using composer.
  3. Set your project root path in your console or terminal and type below command line.
  4. composer require livewire/livewire
  5. To create component using LiveWire set your project root path in your console and type below command line.
  6. php artisan make:livewire example
  7. Now two new files were created in your project: referral link LiveWire Component
    • app/Http/Livewire/example.php is the Component file and resources/views/livewire/example.blade.php is the View file
  8. Here we used Livewire to create Components and View files (i.e example.php and example.blade.php files).
  9. Note:There are total 100+ php and blade.php files created by Livewire.

The Basic Structure Of Laravel Project
 
			
					β”œβ”€β”€ app
					β”œβ”€β”€ bootstrap
					β”œβ”€β”€ config
					β”œβ”€β”€ database
					β”œβ”€β”€ lang
					β”œβ”€β”€ public
					β”œβ”€β”€ resources
					β”œβ”€β”€ routes
					β”œβ”€β”€ storage
					β”œβ”€β”€ tests
					β”œβ”€β”€ vendor
					β”œβ”€β”€ .editorconfig
					β”œβ”€β”€ .env
					β”œβ”€β”€ .env.example
					β”œβ”€β”€ .gitattributes
					β”œβ”€β”€ .gitignore
					β”œβ”€β”€ .htaccess
					β”œβ”€β”€ artisan.File
					β”œβ”€β”€ composer.json
					β”œβ”€β”€ composer.lock
					β”œβ”€β”€ package-lock.json
					β”œβ”€β”€ package.json
					β”œβ”€β”€ phpunit.xml
					β”œβ”€β”€ README.md
					β”œβ”€β”€ server.php
					└── vite.config.js
			
		
How to Use Laravel Vite
In order to use laravel Vite you need to install Node.js in your system

Recommended LTS (long term support) version of Node.js.

Download latest version of node.js from nodejs.org

Install Node.js using .exe downloaded file.

To check your node version, run node -v in a terminal/console window (cmd)

Now you need to install Node Modules in your project folder

1. Go to your project folder and there you will find a file called package.json.

2. Open the file in your editor and make sure that all the dependencies are correct as shown below

  • "axios": "^1.1.2",
  • "laravel-vite-plugin": "^0.7.2",
  • "lodash": "^4.17.21",
  • "postcss": "^8.4.21",
  • "sass": "^1.58.3",
  • "vite": "^4.0.0",
  • "vite-plugin-static-copy": "^0.13.0"

3. And now set your project root path in terminal or command prompt Example: cd C:\Users\Admin\Desktop\my-project and type the below command line.

npm install

4. Wait until all the dependencies are downloaded to your project folder.

5. Now you can see the downloaded folder with the name of node_modules in your project folder.

6. Now in order to Compile Assets (Vite) first, you need to run development mode.

7. Set your project root path and type the below command line.

npm run dev

8. Once the development mode starts you can customize your assets

9. Once you completed with the customization work you need to run your project in Production Mode in order to run Production Mode run the below command line

npm run build

Assets Folder Structure

			
				β”œβ”€β”€ public/
				|   β”œβ”€β”€ build/
				|   |   β”œβ”€β”€ assets/
				|   |   |   β”œβ”€β”€ icon-fonts
				|   |   |   β”œβ”€β”€ images
				|   |   |   └── libs
				|   |   └── manifest.json
				|   β”œβ”€β”€ .htaccess
				|   β”œβ”€β”€ favicon.ico
				|   β”œβ”€β”€ index.php
				|   └── robots.txt
				β”œβ”€β”€ resources/
				|   β”œβ”€β”€ assets
				|   |   β”œβ”€β”€ css
				|   |   β”œβ”€β”€ icon-fonts
				|   |   β”œβ”€β”€ images
				|   |   β”œβ”€β”€ js
				|   |   β”œβ”€β”€ libs
				|   |   └── scss
				|   β”œβ”€β”€ css
				|   β”œβ”€β”€ js
				|   β”œβ”€β”€ sass
				|   β”œβ”€β”€ views
				|   |   β”œβ”€β”€ layouts/
				|   |   |   β”œβ”€β”€ components/
				|   |   |   β”œβ”€β”€ app.blade.php
				|   |   |   β”œβ”€β”€ custom-app.blade.php
				|   |   |   β”œβ”€β”€ custom-app2.blade.php
				|   |   |   β”œβ”€β”€ custom-app3.blade.php
				|   |   |   └── switcher-app.blade.php
				|   |   └── livewire/ (40+ blade.php files)
				
			
		
Installation Instructions For both CPANEL’S and FTP
Installation Instructions

Upload the Project that you have purchased in below directory based on your server

FTP Uploading Process
    Access FTP:
  1. Login to your FTP server using your login credentials provided by your hosting provider.
  2. Upload Project Files:
  3. Now extract the project folder that you have received, in any of your directories
  4. Now navigate to that directory using FTP panel and upload the project in Path: public_html/ directory in your FTP server .
  5. Once the uploading completes you can access your domain Example: www.example.com
cPanel Uploading Process
    Access cPanel:
  1. Login to your cPanel server using your login credentials provided by your hosting provider.
  2. Upload Project Files:
  3. Once you successfully accessed your cPanel dashboard, navigate and click on File Manager
  4. Now open public_html and click on Upload
  5. Here you can select your zipped project folder or you can simply drag and drop your zipped project folder, once the uploading is completed go back to the public_html folder
  6. In the public_html folder, you will find your zipped project folder now you need to extract that project folder
  7. Once the extraction is completed you can access your domain Example: www.example.com
How to Upgrade Larvel Version

If you want to Upgrade laravel version, Please follow the below steps, if not you can skip this procedure.

Step 1:

Replace below Dependency versions in composer.json file which is placed in root directory

  • php:- ^8.1
  • guzzlehttp/guzzle:- ^7.2
  • laravel/framework:- ^10.0
  • nunomaduro/collision:- ^7.0
  • phpunit/phpunit:- ^10.0
  • laravel/tinker:- ^2.8
  • "livewire/livewire": "^2.11"
Step 2:

Delete vendor folder

Step 3:

Set your project root path in command prompt and run the following command line in command prompt.

Composer update
How to Run Laravel Project in localhost

If you have installed XAMPP on your machine then please follow the below steps

Step:1 Quick view of Installations

1. Download and Install the Composer from official site https://getcomposer.org/

2. Install Laravel by using Composer as mentioned in the installation process above.

Step:2 Run project

1. Extract the zip folder of the laravel project in the path: EX: C:\xampp\htdocs\ that you have received after purchase.

2. Once the extraction is completed, type the localhost url in the browser to access the project. Example: http://localhost/my-project/

3. Another process for accessing the laravel project, open command prompt or terminal and set your project root path: Example: C:\Users\my-project

4. Now run the below commands in the terminal to get the output of the project.

  • npm install to get the node_modules install.
  • npm run build to get the build assets of the project.
  • And run the command line: php artisan serve
  • Laravel development server started: http://127.0.0.1:8000, now type the url in the browser to access the project.
Version
  • php:- ^8.1.12
  • laravel/framework:- ^10.0.3
  • "livewire/livewire": "^2.11"
  • guzzlehttp/guzzle:- ^7.2
  • laravel/tinker:- ^2.8
  • phpunit/phpunit:- ^10.0
Over All Folder Structure
			
				β”œβ”€β”€ app/
				|   β”œβ”€β”€ Console
				|   β”œβ”€β”€ Exceptions
				|   β”œβ”€β”€ Http
				|   |   β”œβ”€β”€ Controllers
				|   |   β”œβ”€β”€ Livewire (40+ php files)						
				|   |   β”œβ”€β”€ Middleware
				|   |   └── Kernel.php
				|   β”œβ”€β”€ Models
				|   └── Providers
				β”œβ”€β”€ bootstrap/
				β”œβ”€β”€ config/
				β”œβ”€β”€ database/
				β”œβ”€β”€ lang/
				β”œβ”€β”€ public/
				|   β”œβ”€β”€ build/
				|   |   β”œβ”€β”€ assets/
				|   |   |   β”œβ”€β”€ icon-fonts
				|   |   |   β”œβ”€β”€ images
				|   |   |   └── libss
				|   |   └── manifest.json
				|   β”œβ”€β”€ .htaccess
				|   β”œβ”€β”€ favicon.ico
				|   └── robots.txt
				β”œβ”€β”€ resources/
				|   β”œβ”€β”€ assets/
				|   β”œβ”€β”€ css/
				|   β”œβ”€β”€ js/
				|   β”œβ”€β”€ sass/
				|   └── views/
				|       β”œβ”€β”€ layouts/
				|       |   β”œβ”€β”€ components/
				|       |   |   β”œβ”€β”€ accept-cookie.blade.php
				|       |   |   β”œβ”€β”€ custom-scripts.blade.php
				|       |   |   β”œβ”€β”€ footer.blade.php
				|       |   |   β”œβ”€β”€ header.blade.php
				|       |   |   β”œβ”€β”€ sidebar.blade.php
				|       |   |   β”œβ”€β”€ scripts.blade.php
				|       |   |   β”œβ”€β”€ switcher-icon.blade.php
				|       |   |   β”œβ”€β”€ switcher-scripts.blade.php
				|       |   |   └── switcher.blade.php
				|       |   β”œβ”€β”€ app.blade.php 
				|       |   β”œβ”€β”€ custom-app.blade.php
				|       |   β”œβ”€β”€ custom-app2.blade.php
				|       |   β”œβ”€β”€ custom-app3.blade.php
				|       |   └── switcher-app.blade.php    
				|       └── livewire/ (40+ blade.php files) 
				β”œβ”€β”€ routes/
				|   β”œβ”€β”€ api.php
				|   β”œβ”€β”€ channels.php
				|   β”œβ”€β”€ console.php
				|   └── web.php
				β”œβ”€β”€ storage
				β”œβ”€β”€ tests
				β”œβ”€β”€ vendor
				β”œβ”€β”€ .editorconfig
				β”œβ”€β”€ .env
				β”œβ”€β”€ .env.example
				β”œβ”€β”€ .gitattributes
				β”œβ”€β”€ .gitignore
				β”œβ”€β”€ .htaccess
				β”œβ”€β”€ artisan.php
				β”œβ”€β”€ composer.json
				β”œβ”€β”€ composer.lock					
				β”œβ”€β”€ package-lock.json
				β”œβ”€β”€ package.json
				β”œβ”€β”€ phpunit.xml
				β”œβ”€β”€ README.md
				β”œβ”€β”€ server.php
				└── vite.config.js
			
		
Blade View

Blade is a simple, yet powerful templating engine provided with Laravel.

--------Imports master file--------

@extends('layouts.app')


@section('styles')

 --------created a section called content--------

@endsection


@section('content')

 --------created a section called content--------

@endsection


--------get content data into master file--------

@yield('content')


@section('scripts')

 --------created a section called content--------

@endsection


SWITCHER?

If you want to add switcher to your template follow the below process.

FAQ'S

1) How to Change Font Style ?

Step 1:

Go To _fonts.scss (resources/assets/scss/style.scss )

if you want to change another font-family Go to the site Google Fonts And Select One font Family and import In to style.css file

How to Select font Family

Example:

Step 2:

And paste Your Selected font-family in _style.scss

Example:

Step 3:

And add the Your Selected font-family in _customs.scss(resources/assets/scss/custom/_customs.scss)

Example:

	body {
		font-size: 1rem;
		font-family: "Hind Siliguri", sans-serif;
		font-weight: 400;
		color: #{$color};
		background-color: #{$background};
		line-height: 1.5;
		text-align: start;
		overflow-x: clip;
		padding: 0;
		margin: 0;
	}
		
	
NOTE: You must perform npm run dev command after changing or modifying the content in assets folder, otherwise those changes you've made will not be applied to your template.

2) How to Change Logo ?

Go To "resources/assets/images/brand" folder and replace your logo with Previous Logos within in image size. note: Please don't increase logo sizes. Replace your logo within given image size. otherwise the logo will not fit in particular place it disturbs the template design.

3) How to change Menu icons ?

By default menu icons are Bootstrap icons if you want to change icons please follow below steps
Step 1 :

To change Menu icons, resources/views/layouts/components/sidebar.php page open and go through sidebar section, in that section you will find Bootstrap icons of menu in i tag, there you can replace previous icon with your icon. Example as shown in below

			
				
			
		

4) How to Enable RTL Version?

Please follow the below steps to enable RTL Version
Step 1 :

To enable RTL Version you have to open custom-switcher.js (resources/assets/js/custom-switcher.js) file and remove comments for rtl as shown in below



	//RTL

	if (!localStorage.getItem("hostmartl")) {
		// html.setAttribute("dir" , "rtl") // for rtl version 
	}

	
Step 2 :
Remove the comments to enable rtl as shown below


	//RTL

	if (!localStorage.getItem("hostmartl")) {
		html.setAttribute("dir" , "rtl") // for rtl version 
	}

	
NOTE: You must perform npm run dev command after changing or modifying the content in assets folder, otherwise those changes you've made will not be applied to your template.

5) How to Enable Dark Theme?

Please follow the below steps to enable Dark Theme
Step 1 :

To enable Dark Theme you have to open custom-switcher.js (resources/assets/js/custom-switcher.js) file and remove comments for dark-mode as shown in below



	//Dark Theme Style
	if (!localStorage.getItem("hostmadarktheme")) {
		// html.setAttribute("data-theme-mode" , "dark") // for dark theme 
	}

	
Step 2 :
Remove the comments to enable dark-mode as shown below


	//Dark Theme Style
	if (!localStorage.getItem("hostmadarktheme")) {
		html.setAttribute("data-theme-mode" , "dark") // for dark theme 
	}

	
NOTE: You must perform npm run dev command after changing or modifying the content in assets folder, otherwise those changes you've made will not be applied to your template.

6) How to Enable Boxed?

Please follow the below steps to enable Boxed
Step 1 :

To enable Boxed you have to open custom-switcher.js (resources/assets/js/custom-switcher.js) file and remove comments for layout-boxed as shown in below


	if (!localStorage.getItem("hostmaboxed")) {
		// html.setAttribute("data-width" , "boxed") // for boxed style
	}
	
Step 2 :
Remove the comments to enable boxed as shown below

	if (!localStorage.getItem("hostmaboxed")) {
		html.setAttribute("data-width" , "boxed") // for boxed style
	}
	
NOTE: You must perform npm run dev command after changing or modifying the content in assets folder, otherwise those changes you've made will not be applied to your template.
Local Storage

How to clear LocalStorage (cookie)?

Step1:

Open custom-switcher.js file resources/assets/js/custom-switcher.js

To clear LocalStorage loading functions you need to remove localStorageBackup() function in custom-switcher.js as shown below


		
			function localStorageBackup() {
				// if there is a value stored, update color picker and background color
				// Used to retrive the data from local storage
				if (localStorage.primaryRGB) {
					if (document.querySelector('.theme-container-primary')) {
						document.querySelector('.theme-container-primary').value = localStorage.primaryRGB;
					}
					document.querySelector('html').style.setProperty('--primary-rgb', localStorage.primaryRGB);
				}
				if (localStorage.bodyBgRGB) {
					if (document.querySelector('.theme-container-background')) {
						document.querySelector('.theme-container-background').value = localStorage.bodyBgRGB;
					}
					document.querySelector('html').style.setProperty('--body-bg-rgb', localStorage.bodyBgRGB);
					let html = document.querySelector('html');
					html.setAttribute('theme-mode', 'dark');
					document.querySelector('#switcher-dark-theme').checked = true;
				}
				if (localStorage.hostmadarktheme) {
					let html = document.querySelector('html');
					html.setAttribute('theme-mode', 'dark');
				}
				if (localStorage.hostmartl) {
					let html = document.querySelector('html');
					html.setAttribute('dir', 'rtl');
					rtlFn();
				}
				if (localStorage.hostmaboxed) {
					let html = document.querySelector('html');
					html.setAttribute('width', 'boxed');
				}
				if(localStorage.hostmaltr){
					ltrFn()
				}
			}
		
		
Step2:

To remove complete LocalStorage saving you need to remove all localstorage related calling functions in custom-switcher.js resources/assets/js/custom-switcher.js files.

LocalStorage related functions like localStorage.setItem, localStorage.removeItem, localStorage.getItem, localStorage.clear. Below are the some examples to find out.


			localStorage.setItem("hostmadarktheme", true);
			localStorage.removeItem("hostmalighttheme");
			localStorage.getItem('hostmaboxed')
			localStorage.clear();
			localStorageBackup();
		
Theme Styles
Primary Color

How to Change Primary Color?

Please follow the below steps to change Primary Color
Step 1 :

To change Primary Color you have to open _variables.scss file and replace what color you want as shown in below

Rootpath : _variables.scss (resources/assets/scss/_variables.scss )

NOTE: You must perform npm run dev command after changing or modifying the content in assets folder, otherwise those changes you've made will not be applied to your template.
Dark Theme Style

If you want to change Dark Theme color you need to follow the below process.

How to Change Dark body Color?

Please follow the below steps to change Dark body Color
Step 1 :

To change Dark body Color you have to open _variables.scss file and replace what color you want as shown in below

Rootpath : _variables.scss (resources/assets/scss/_variables.scss )

NOTE: You must perform npm run dev command after changing or modifying the content in assets folder, otherwise those changes you've made will not be applied to your template.
Sources
Plugins Versions URL
Bootstrap v5.2.2 https://www.npmjs.com/package/bootstrap
Choices js v7.0.0 https://www.npmjs.com/package/choices.js
Swiper js v8.4.4 https://www.npmjs.com/package/swiper
Icons References
Font Awesome https://fontawesome.com/v4.7.0/icons/
Feather Icons https://feathericons.com/
Tabler Icons https://tabler-icons.io/
Bootstrap Icons https://icons.getbootstrap.com/
Images References
Vecteezy https://www.vecteezy.com/
Iconscount https://iconscout.com/
Unsplash https://unsplash.com/
Bootstrap Icons https://icons.getbootstrap.com/
Font Used

Google fonts are used in the template. They are as follows: Google Fonts

THANK YOU!