Installation SaaSWeb


Requirements

SaaSWeb has been crafted with Laravel 5.8 and vue, which have a few server requirements before installing. you will need to make sure your server meets the following requirements:

  • PHP >= 7.2.0
  • BCMath PHP Extension
  • Ctype PHP Extension
  • JSON PHP Extension
  • Mbstring PHP Extension
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension
  • Node.js & NPM

Downloading SaasWeb

Before you can install SaaSWeb, you will need to download the latest version from codecanyon on your dashboard. Buy SaaSWeb now

{warning} In order to download a copy of SaaSWeb you have to buy it from Codecanyon.com.

After downloading the latest version of SaaSWeb, extract the zip file and rename it.

Great ! you are ready to begin the installation.

1. Regenerate your application key

For security measures you may regenerate your application key, be sure to run the following command below:

php artisan key:generate


2. Create a New Database

Create a new MySQL database and save the credentials, you will need them to fill your .env file.

3. Duplicate & Rename the .env.example file

Make sure to specify your Environment variables for your great saas application. Duplicate .env.example, and rename it to .env.

Then, open up the .env file and update your DB_DATABASE, DB_USERNAME, and DB_PASSWORD in the appropriate fields. You will also want to update the APP_URL to the URL of your application.

APP_URL=http://your-url.com

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=saasweb
DB_USERNAME=root
DB_PASSWORD=



4. Install or Update Composer Dependencies

Install all the composer dependencies by running the following command:

composer install



5. Run Migrations and Seeds

Migrate the database by runing :

php artisan migrate

Next seed the database with the following command: :

php artisan db:seed

Next, you should run the passport:install command. This command will create the encryption keys needed to generate secure access tokens.

php artisan passport:install



6. Linking The Storage Directory

you should link the public/storage directory to your storage/app/public directory. Otherwise, user profile photos stored on the local disk will not be available:

php artisan storage:link

🎉 Congratulations! You will now be able to visit your URL and see your new SaaS application up and running.


7. Create a new user

You can go to http://your-domaine.com/register to create a new user


8. Assign user a role

You can now create and assign the newly created user a super / root admin role. To so run this command:

php artisan admin:assign-role youremail@example.org admin-root

{warning} youremail@example.org with an existing user email. admin-root is the default root Admin role.


7. Setup Queue to send email

Saas Web use laravel queue system, Queues allow you to defer the processing of a time consuming task, such as sending an email, until a later time. Deferring these time consuming tasks drastically speeds up web requests to your application.

php artisan queue:work

Running this command will instruct Laravel to create an instance of your application and start executing jobs like sending emails etc , this instance will stay alive indefinitely which means the action of starting your Laravel application happens only once when the command was run & the same instance will be used to execute your jobs, that means the following:

You save server resources by avoiding booting up the whole app on every job. You have to manually restart the worker to reflect any code change you made in your application.

{warning} The emails will not send if you don't run the queue:work command.