Skip to content

A little project made for learning purposes : Trying to recreate a MVC blog with Laravel by following best practices

Notifications You must be signed in to change notification settings

Liinkiing/laravel-blog

Repository files navigation

Build Status Total Downloads Latest Stable Version License

About this project

This project was made for learning purposes. I always wanted to test the Laravel framework (coming from a Symfony background). I immediatly started to like it (despite the fact that the framework tends to hide you a lot of things, but when you go deeper on the source code, you can discover how things are really made).

I've written some fixtures (factories) for the database, so you can use php artisan db:seed to populate your db.

Just rename the .env.example to .env and put your credentials here

$ git clone https://github.com/Liinkiing/laravel-blog.git
$ cd laravel-blog
$ composer install
$ php artisan key:generate
$ php artisan migrate
$ php artisan db:seed
$ npm install
$ php artisan serve

and you're ready to go! You should have a basic database structure for your blog. The seeding takes care of adding users, then it adds posts with the previously created users as authors. Finally, it add a random range of comments to those posts (some posts can have no comments), with random authors.

At the moment, the main route is located at /blog/posts

About Laravel

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as:

Laravel is accessible, yet powerful, providing tools needed for large, robust applications. A superb combination of simplicity, elegance, and innovation give you tools you need to build any application with which you are tasked.

Learning Laravel

Laravel has the most extensive and thorough documentation and video tutorial library of any modern web application framework. The Laravel documentation is thorough, complete, and makes it a breeze to get started learning the framework.

If you're not in the mood to read, Laracasts contains over 900 video tutorials on a range of topics including Laravel, modern PHP, unit testing, JavaScript, and more. Boost the skill level of yourself and your entire team by digging into our comprehensive video library.

Laravel Sponsors

We would like to extend our thanks to the following sponsors for helping fund on-going Laravel development. If you are interested in becoming a sponsor, please visit the Laravel Patreon page:

Contributing

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.

Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell at [email protected]. All security vulnerabilities will be promptly addressed.

License

The Laravel framework is open-sourced software licensed under the MIT license.

About

A little project made for learning purposes : Trying to recreate a MVC blog with Laravel by following best practices

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages