Example of blog with nested comments support
To install LaraBlog, you'll need to clone or download this repo:
git clone https://github.com/jesusantguerrero/larablog.git
Next, setup the project:
We need to use a MySQL database. You will need to create a new database and save the credentials for the next step.
We need to specify our Environment variables for our application. You will see a file named .env.example
, you will need to duplicate that file 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://127.0.0.1:8000/
DB_CONNECTION=sqlite
Next, we will need to install all our composer dependencies by running the following command:
composer install
We need to migrate our database structure into our database, which we can do by running:
php artisan migrate
Finally, to run the project you can use the command below:
php artisan serve
php artisan test
🎉 And that's it! You will now be able to visit your URL and see your Atmosphere application up and running.