PHPackages                             davide-casiraghi/laravel-smart-blog - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. davide-casiraghi/laravel-smart-blog

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

davide-casiraghi/laravel-smart-blog
===================================

A smart multi language blog package for Laravel.

1.0.9(6y ago)112MITPHPPHP ^7.1

Since May 14Pushed 6y agoCompare

[ Source](https://github.com/davide-casiraghi/laravel-smart-blog)[ Packagist](https://packagist.org/packages/davide-casiraghi/laravel-smart-blog)[ Docs](https://github.com/davide-casiraghi/laravel-smart-blog)[ RSS](/packages/davide-casiraghi-laravel-smart-blog/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (10)Dependencies (12)Versions (11)Used By (0)

Laravel Smart Blog
==================

[](#laravel-smart-blog)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2de2ab88353a59d9a69e28aacf751b937fb34b73e8786dd89aeb4fedf37634b7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6461766964652d6361736972616768692f6c61726176656c2d736d6172742d626c6f672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/davide-casiraghi/laravel-smart-blog)[![Build Status](https://camo.githubusercontent.com/2fc25a98531e5c77f81a1ab95d46bcf7c71f8c4776d75abbc25635f39807ea8f/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6461766964652d6361736972616768692f6c61726176656c2d736d6172742d626c6f672f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/davide-casiraghi/laravel-smart-blog)[![Quality Score](https://camo.githubusercontent.com/9c1ec4cf6cdc9d593f60ce3a777720317bc59a2f61e21937d627e8fa3e7c36d7/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6461766964652d6361736972616768692f6c61726176656c2d736d6172742d626c6f672e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/davide-casiraghi/laravel-smart-blog)[![Coverage Status](https://camo.githubusercontent.com/201d398f843f72bb91fa5b53c4de8b874911cbd187558ae6290e6caa724e61d6/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6461766964652d6361736972616768692f6c61726176656c2d736d6172742d626c6f672f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/davide-casiraghi/laravel-smart-blog/)[![](https://camo.githubusercontent.com/85ee6693b23032ff72be13571402b481668df0592ec8d3896b806d9006650f04/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f65626665363033646633633136336365653166362f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/davide-casiraghi/laravel-smart-blog/maintainability)[![GitHub last commit](https://camo.githubusercontent.com/d5fda1454fe754238f21850f2dc6f0978aa0ea846974de27a27b1c1e9bce880c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f6461766964652d6361736972616768692f6c61726176656c2d736d6172742d626c6f672e737667)](https://github.com/davide-casiraghi/laravel-smart-blog)

A multi language blog package for Laravel.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require davide-casiraghi/laravel-smart-blog
```

Then install Bricklayer.js trough npm

```
npm install bricklayer
```

Authorization
-------------

[](#authorization)

> To work the package aspect that in your user model and table you have a field called **group** that can have this possible values:

- null: Registered user
- 1: Super Admin
- 2: Admin

> Just the users that have **Admin** and **Super admin** privileges can access to the routes that allow to create, edit and delete the blogs, categories and posts. Otherwise you get redirected to the homepage.

Load the CSS and JS files
-------------------------

[](#load-the-css-and-js-files)

### With Laravel

[](#with-laravel)

#### Publish the JS, CSS and IMAGES

[](#publish-the-js-css-and-images)

It's possible to customize the scss and the js publishing them in your Laravel application.

`php artisan vendor:publish`

This command will publish in your application this folders:

- /resources/scss/vendor/laravel-smart-blog/
- /resources/js/vendor/laravel-smart-blog/

In this way it's possible for you to customize them.

#### Run the migration

[](#run-the-migration)

`php artisan migrate `

To create the gallery\_images table in your database.

#### Load the JS file

[](#load-the-js-file)

Run in the command line:
`npm i prismjs`

In the **resources/js/app.js** file of your application require the **Bricklayer** and **bricklayerBlogLayout.js** files before the Vue object get instanciated:

```
require('./bootstrap');
window.Vue = require('vue');

window.Bricklayer = require('bricklayer');
require('./vendor/laravel-smart-blog/bricklayerBlogLayout');

window.myApp = new Vue({
    el: '#app'
});

import 'prismjs';

```

In the **resources/sass/app.scss** file of your application import the scss

```
@import 'vendor/laravel-smart-blog/bricklayerBlogLayout';

```

Then you can run Laravel Mix

```
npm run dev

```

Usage
-----

[](#usage)

After the package is published it adds three new routes:

- /blogs
- /categories
- /posts

Accessing to this routes you can create new blogs, categories and posts and access to them.

### Testing

[](#testing)

You can run unit tests checking the code coverage using this command.

```
./vendor/bin/phpunit --coverage-html=html
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Davide Casiraghi](https://github.com/davide-casiraghi)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~4 days

Total

10

Last Release

2516d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9d09fa0d9b2a45d611866ca55a837bf8ca2da760ef1aa250cd59f04970f90abf?d=identicon)[davide-casiraghi](/maintainers/davide-casiraghi)

---

Top Contributors

[![davide-casiraghi](https://avatars.githubusercontent.com/u/6308587?v=4)](https://github.com/davide-casiraghi "davide-casiraghi (203 commits)")

---

Tags

bloglaravelaravel-5-packagephpdavide-casiraghilaravel-smart-blog

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/davide-casiraghi-laravel-smart-blog/health.svg)

```
[![Health](https://phpackages.com/badges/davide-casiraghi-laravel-smart-blog/health.svg)](https://phpackages.com/packages/davide-casiraghi-laravel-smart-blog)
```

###  Alternatives

[laravolt/avatar

Turn name, email, and any other string into initial-based avatar or gravatar.

2.0k5.4M31](/packages/laravolt-avatar)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[beyondcode/laravel-favicon

Create dynamic favicons based on your environment settings.

37345.5k](/packages/beyondcode-laravel-favicon)[erlandmuchasaj/laravel-gzip

Gzip your responses.

40129.3k2](/packages/erlandmuchasaj-laravel-gzip)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
