laravel-blog-concept
Simple responsive blog concept with features such as:
- authentication
- registering
- logging in
- posts with images
- sorting by category and / or search query
- commenting
- pagination
- factories for easy debugging, with faked lorem ipsum text
Styling is done with TailwindCSS and inline javascript is provided by AlpineJS. Since backend was the focus I had no need for extensive custom CSS pages for every component, and went with the Laravel standard of Tailwind to define all the styling in the HTML pages themselves. The database is in mysql
The goal of this project was the learn to work with Laravel. In doing so I always kept documentation at hand, while always striving to refactor my code to the perscriped standards. Lots of code is commented out for reference. Commented code has the same functionality but is replaced by adjacent, more modern solutions. Most components of the website are aimed to be as modular as possible to avoid duplicated HTML-items. Models are set up to avoid n+1 SQL queries.
Todo
To expand this concept I would like to add pages such as:
-
Dashboard page where admins can manage posts and edit / delete them - Newsletter subscription api integration (currently the subscription box is a blank field)
- Commenting to another comment specifically (indented)
- create dashboard specifically for users and their own posts
- create draft option, where posts are not yet published by default
Update: I added a dashboard for admins where they can edit / delete every post. Deletion has no confirmation popup modal yet though.