Laravel Installation

Steps to install the Frest Laravel on your system🧑‍💻


To migrate latest version of laravel, follow steps of Migrate Laravel Steps and then go ahead with installation.

Installing and running Frest is super easy, please follow below steps and you will be ready to rock 🤘

  1. Open the terminal in your root directory of Frest Laravel.
  2. Use following command to install composer
  3. composer install
  4. Optional: (if not having .env file) Find .env.example file at root folder and rename it to .env by running below command Or also can manually rename it:
  5. For Windows:

    ren .env.example .env
    For Mac OS and Ubuntu:
    mv .env.example .env
  6. Run the following command to generate the key
  7. php artisan key:generate
  8. By running the following command, you will be able to get all the dependencies in your node_modules folder:
  9. yarn
  10. To run the project, you need to run following command in the project directory. It will compile JavaScript and Styles.
  11. yarn dev
  12. To serve the application, you need to run the following command in the project directory
  13. php artisan serve
  14. Now navigate to the given address, you will see your application is running.🥳

To change the port address, run the following command:

php artisan serve --port=8080 // For port 8080

Watching for changes: If you want to watch all the changes, you make in JavaScript and Styles files then run the following command in the root directory:

yarn watch

Building for Production: If you want to run the project and make the build in the production mode then run the following command in the root directory, by default the project will continue to run in the development mode:

yarn prod
Required Permissions

If you are facing any issues regarding the permissions, then you need to run the following command in your project directory:

sudo chmod -R o+rw bootstrap/cache
sudo chmod -R o+rw storage
JetStream Authentication

Please follow our JetStream installation steps to use Authentication in our template.

To integrate with database migrations:

  1. You must have a database or create a new database to proceed further. Find more about database connection here
  2. You have to set your database credentials in .env file.
  3. DB_CONNECTION = mysql
    DB_HOST =
    DB_PORT = 3306
  4. Run the following command to generate migration tables.
  5. php artisan migrate
  6. Run the following command to generate fresh migration tables.(This will remove your current tables from Database and create new one.)
  7. php artisan migrate:fresh
  8. Run following database seeding command to create fake users in database for CRUD app.
  9. php artisan db:seed
  10. You are ready to use CRUD app 👍🏻
© 2017- Pixinvent, Hand-crafted & Made with ❤️