Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
- Simple, fast routing engine.
- Powerful dependency injection container.
- Multiple back-ends for session and cache storage.
- Expressive, intuitive database ORM.
- Database agnostic schema migrations.
- Robust background job processing.
- Real-time event broadcasting.
Laravel is accessible, powerful, and provides tools required for large, robust applications.
$ git clone https://github.com/reikiko/findMuseum.git
after that go to your directory
$ cd findMuseum
When we run composer, it checks the composer.json
file which is submitted to the github repo and lists all of the composer (PHP) packages that your repo requires. Because these packages are constantly changing, the source code is generally not submitted to github, but instead we let composer handle these updates. So to install all this source code we run composer with the following command.
$ composer install
Just like how we must install composer packages to move forward, we must also install necessary NPM packages to move forward. This will install Vue.js, Bootstrap.css, Lodash, and Laravel Mix.
$ npm install
.env
files are not generally committed to source control for security reasons. But there is a .env.example
which is a template of the .env
file that the project expects us to have. So we will make a copy of the .env.example
file and create a .env
file that we can start to fill out to do things like database configuration in the next few steps.
$ cp .env.example .env
This will create a copy of the .env.example
file in your project and name the copy simply .env
.
$ php artisan key:generate
If you check the .env
file again, you will see that it now has a long random string of characters in the APP_KEY
field. We now have a valid app encryption key.
In the .env file fill in the DB_HOST
, DB_PORT
, DB_DATABASE
, DB_USERNAME
, and DB_PASSWORD
options to match the credentials of the database you just created. This will allow us to run migrations and seed the database in the next step.
Once your credentials are in the .env file, now you can migrate your database.
$ php artisan migrate:fresh --seed
--seed option is to automatically insert data to database that has been set inside the DatabaseSeeder.php
file
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.
The Laravel framework is open-sourced software licensed under the MIT license.