This repository is an example implementation of a Blog based on Laravel and MongoDB
git@github.com:offline-agency/laravel-mongodb-blog.git
Enter folder
cd laravel-mongodb-blog
Install Dependencies
composer install
npm install
npm run dev
Generate .env file
cp .env.example .env
Generate APP_KEY
php artisan key:generate
Database
# Add parameters into .env file
MONGO_HOST=127.0.0.1
MONGO_PORT=29939
MONGO_DATABASE=laravel
MONGO_USERNAME=root
MONGO_PASSWORD=
MONGO_DB_AUTH=laravel
MONGO_OPTION_NAME=database
# Run
php artisan config:clear
# Migration (not needed)
php artisan migrate
# Seeder
php artisan db:seed
- Home Last Article with standard Laravel simple pagination
- Category List paginated with standard Laravel simple pagination
- Article Detail
- Category Detail with associated articles paginated with standard Laravel simple pagination
php artisan drop:collection {collection_name}
(Example for Destroy with sync)
- Seeding Users, Articles & Categories (Example for Create with sync)
- CRUD operations for articles on backend panel [TODO]
- CRUD operations for categories on backend panel [TODO]
- CRUD operations for users on backend panel [TODO]
- (Slow) Write operation runs on background job [TODO]
- Benchmark Test MongoDB vs MySQL [TODO]
- PHPUnit Test [TODO]
Login (test@test.com/demo)
Run the test with:
composer test
Please see Contributing for details
If you discover any security-related issues, please email support@offlineagency.com instead of using the issue tracker.
Offline Agency is a web design agency based in Padua, Italy. You'll find an overview of our projects on our website.
The MIT License (MIT). Please see License File for more information.