A Blog module
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
Assets Add the csrf token to the add tag api Dec 12, 2014
Composers/Frontend Moving Setting contract to the Setting module Jul 2, 2016
Config Read the sidebar position from configuration file, default to 15 Oct 4, 2017
Database Remove all blog tag mentions Oct 2, 2017
Entities Remove all blog tag mentions Oct 2, 2017
Events Read the sidebar position from configuration file, default to 15 Oct 4, 2017
Http Removing tag routes, controllers and permissions Oct 4, 2017
Presenters New CS PSR-1/2 Jul 1, 2016
Providers CS: PSR1/2 Oct 4, 2017
Repositories Setting tags via the tag module Sep 30, 2017
Resources Removed usages of URL::route() in favor of route() Oct 4, 2017
Tests CS: PSR1/2 Oct 4, 2017
Widgets Allow the latest posts widget to be included on its own Oct 2, 2017
.gitignore Removing user specific folder Aug 31, 2016
.php_cs.dist CS: PSR1/2 Jul 13, 2017
.scrutinizer.yml Adding scrutinizer config file Aug 31, 2016
.sensiolabs.yml Remove composer scripts for insight Jan 12, 2015
.travis.yml Test for php 7.2 with latest phpcsfixer Oct 2, 2017
CONTRIBUTING.md Link to the website contribution page Jun 21, 2015
LICENSE.md Updating licenses to 2016 Jan 1, 2016
changelog.yml Mention support for asgardcms v3 Oct 4, 2017
composer.json Updating phpunit Oct 2, 2017
module.json Preparing 3.0.0 release Oct 4, 2017
phpunit.xml Preparing tests Aug 30, 2016
readme.md Update master branch build Jul 13, 2017


Blog module

Latest Version Software License Build Status Quality Score SensioLabs Insight Total Downloads Slack


Module Download

Using AsgardCMS's module download command:

php artisan asgard:download:module asgardcms/blog --migrations

This will download the module and run its migrations .

This is the recommended way if you wish to customise the fields, views, etc.


Execute the following command in your terminal

composer require asgardcms/blog-module

This is if the contact module is perfect for your use-case as-is, and doesn't need any changes to fit your needs.

Note: After installation you'll have to give you the required permissions to get to the blog module pages in the backend.


  • You have to create a blog.index and blog.show page in your front end theme.
  • You can link to the blog index page using : route(locale() . '.blog')
  • In the blog index you'll have access to a $posts variable on which you can loop
  • To create a link to a specific post: route(locale() . '.blog.slug', [$post->slug])
  • On the blog index and blog show pages you'll have access to a $latestPosts variable containing the latest posts, this amount can be configured in the admin.
  • On a post detail page, you can have access to the next and previous post by calling:
    • $post->present()->previous
    • $post->present()->next



All AsgardCMS modules respect Semantic Versioning.