PHPackages                             henry-ht/laravel-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. [Admin Panels](/categories/admin)
4. /
5. henry-ht/laravel-blog

ActiveLibrary[Admin Panels](/categories/admin)

henry-ht/laravel-blog
=====================

Forked and customized Laravel Blog package

2.0.4(5d ago)027↓100%MITPHP

Since Mar 11Pushed 5d agoCompare

[ Source](https://github.com/henry-ht/laravel-blog)[ Packagist](https://packagist.org/packages/henry-ht/laravel-blog)[ RSS](/packages/henry-ht-laravel-blog/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (8)Versions (15)Used By (0)

Laravel Blog Package
====================

[](#laravel-blog-package)

 [![](https://user-images.githubusercontent.com/20775532/215362765-c2a3360e-c165-4cba-809b-4f04316c8d5e.png)](https://user-images.githubusercontent.com/20775532/215362765-c2a3360e-c165-4cba-809b-4f04316c8d5e.png)

### Lightweight and Easy to Install

[](#lightweight-and-easy-to-install)

Incredible features with a lightweight laravel blog package.

- Quick installation (&lt;3 minutes)
- It's very easy to extend
- Included great features out-of-box
- Its simplicity allows to be easily made compatible with latest laravel
- No additional concept except laravel knowledge
- Fulltext Search - search throughout all blog posts
- Multi Level Category - nested sets using Baum

### Quick and easy installation (Multi-lang version)

[](#quick-and-easy-installation-multi-lang-version)

1- Install via composer

`composer require henry-ht/laravel-blog`

For a fresh Laravel installation run the following too:

```
composer require laravel/ui
php artisan ui bootstrap --auth

```

2- Scaffold

```
npm install && npm run build

```

3- Run the following two commands to copy config file, migration files, and view files

`php artisan vendor:publish --provider="BinshopsBlog\BinshopsBlogServiceProvider"`

`php artisan vendor:publish --tag=laravel-fulltext`

4- Execute migrations to create tables

`php artisan migrate;`

5- execute seeders

`php artisan db:seed --class=BinshopsLanguageSeeder`

6- You must add one method to your \\App\\User (in laravel 8 \\App\\Models\\User) model. As the name of this method shows it determines which user can manage posts. Place your logic there

```
 /**
     * Enter your own logic (e.g. if ($this->id === 1) to
     *   enable this user to be able to add/edit blog posts
     *
     * @return bool - true = they can edit / manage blog posts,
     *        false = they have no access to the blog admin panel
     */
    public function canManageBinshopsBlogPosts()
    {
        // Enter the logic needed for your app.
        // Maybe you can just hardcode in a user id that you
        //   know is always an admin ID?

        if (       $this->id === 1
             && $this->email === "your_admin_user@your_site.com"
           ){

           // return true so this user CAN edit/post/delete
           // blog posts (and post any HTML/JS)

           return true;
        }

        // otherwise return false, so they have no access
        // to the admin panel (but can still view posts)

        return false;
    }

```

7- Create a directory in `public/` named `blog_images`

8- Start the server

```
php artisan serve

```

Congrats! Your blog is ready to use. Now you can log in as admin. (URLs are customizable in the config file)

Default Admin panel URI: `/blog_admin`

Default Front URI: `/blog`

To see package on Packagist click this [Link](https://packagist.org/packages/binshops/laravel-blog)

### Multi Language Version (Old)

[](#multi-language-version-old)

To install the single language version of the package use version v8.1x:

1- `composer require binshops/laravel-blog:v9.3.6`

2- `php artisan vendor:publish --provider="BinshopsBlog\BinshopsBlogServiceProvider"`

3- `php artisan migrate;`

You can see the single version in "multi-lang" branch. The major difference with multi-language version is the database structure.

Features
--------

[](#features)

- Compatible with latest laravel version (laravel 8.x)
- Backward-compatibility with previous laravel versions
- Full text search - searching throughout the blog posts
- Multi-level category support
- fully configurable via its `config/binshopsblog.php` config file
- Ready to use admin panel
- Full customizability of admin views and front views
- Paginated views
- Ability to upload images
- Managing posts, categories
- Managing comments and comment approval
- Other options include using Disqus comments or disabling comments

Recent Changes
--------------

[](#recent-changes)

- **10.x** Latest version
- 9.1.x Multi language support
- 8.0.x Compatibility with Laravel 8.x

What/who this package is for:
-----------------------------

[](#whatwho-this-package-is-for)

- For websites running Laravel
- Anyone, who wants to have a site blog. This laravel blog gives an easy to use interface to write blog posts/assign categories/manage existing posts
- Where only admin users can edit/manage the blog (this is not suitable for every user on your site to be able to manage posts)
- For anyone who likes to add a wordpress-like laravel blog to laravel website

How to customise the blog views/templates
-----------------------------------------

[](#how-to-customise-the-blog-viewstemplates)

After doing the correct `vendor:publish`, all of the default template files will be found in /resources/views/vendor/binshopsblog/ and are easy to edit to match your needs.

### Customizing admin views

[](#customizing-admin-views)

If you need to customize the admin view, just copy the files from `vendor/binshopsblog/src/Views/binshopsblog_admin`to `resources/views/vendor/binshopsblog_admin`Then you can modify them just like any other view file.

Routes
------

[](#routes)

It will auto set all required routes (both public facing, and admin backend). There are some config options (such as changing the /blog/ url to something else), which can be done in the binshopsblog.php file.

Config options
--------------

[](#config-options)

All config options have comments which describe what they do. Please just refer to the `binshopsblog.php` file in your /config/ dir.

### Custom User Model

[](#custom-user-model)

You can change the default user model through the config file.

Events
------

[](#events)

You can find all the events that are fired by looking in the `/src/Events` directory.

Add these (and an Event Listener) to your `EventServiceProvider.php` file to make use of these events when they fire.

Built in CAPTCHA / anti spam
----------------------------

[](#built-in-captcha--anti-spam)

There is a built-in captcha (anti-spam comment) system built in, which will be easy for you to replace with your own implementation.

There is a basic anti-spam captcha function built-in.

See the config/binshops.php captcha section. There is a built in system (basic!) that will prevent most automated spam attempts. Writing your own captcha system:

I wrote the captcha system simple on purpose, so you can add your own captcha options. It should be easy to add any other captcha system to this.

If you want to write your own implementation then create your own class that implements \\BinshopsBlog\\Interfaces\\CaptchaInterface, then update the config/binshopsblog.php file (change the captcha\_type option).

There are three methods you need to implement: public function captcha\_field\_name() : string

Return a string such as "captcha". It is used for the form validation and . public function view() : string

What view file should the binshops::partials.add\_comment\_form view include? You can set this to whatever you need, and then create your own view file. The default included basic captcha class will return "binshops::captcha.basic". public function rules() : array

Return an array for the rules (which are just the standard Laravel validation rules. This is where you can check if the captcha was successful or not. Optional: public function runCaptchaBeforeShowingPosts() : null

This isn't part of the interface, it isn't required. By default it does nothing. But you can put some code in this method and it'll be run in the BinshopsReaderController::viewSinglePost method.

Image upload errors
-------------------

[](#image-upload-errors)

Try adding this to config/app.php:

```
'Image' => Intervention\Image\Facades\Image::class

```

- Also make sure that /tmp is writable. If you have open\_basedir enabled, be sure to add :/tmp to its value.
- Ensure that /public/blog\_images (or whatever directory you set it to in the config) is writable by the server
- You might need to set a higher memory limit, or upload smaller image files. This will depend on your server. I've used it to upload huge (10mb+) jpg images without problem, once the server was set up correctly to handle larger file uploads.

Version History
---------------

[](#version-history)

- **10.x** Stable version - Compatibility with laravel 11, 12
- 9.3.x Old multi lang
- 9.0.x Multi-language support beta release
- 8.0.x Compatibility with Laravel 8
- 7.3.0 New Admin UI
- 3.0.1 - replaced all short tags (&lt;?) with full opening ones (&lt;?php)
- 2.0 - added full text search (enable it via the config file - it is disabled by default).
- 1.1.1 - added basic captcha
- 1.0.5 - composer.json changes.
- 1.0 - First release
- 0.1 - Initial release

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance99

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.2% 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 ~1 days

Total

14

Last Release

5d ago

Major Versions

1.1.2 → 2.0.02026-03-12

### Community

Maintainers

![](https://www.gravatar.com/avatar/cf28e1a351743385aa2b77be899076beb65b5d378d3673f7ee99d9a50ca595bb?d=identicon)[henry-ht](/maintainers/henry-ht)

---

Top Contributors

[![samberrry](https://avatars.githubusercontent.com/u/20775532?v=4)](https://github.com/samberrry "samberrry (99 commits)")[![wast](https://avatars.githubusercontent.com/u/9076227?v=4)](https://github.com/wast "wast (4 commits)")[![HarmJan1990](https://avatars.githubusercontent.com/u/22013950?v=4)](https://github.com/HarmJan1990 "HarmJan1990 (1 commits)")

---

Tags

laravelpackagefeedrsswriteblogadmin newslaravel blogpostsupdatepanelhenry-ht

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/henry-ht-laravel-blog/health.svg)

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

###  Alternatives

[binshops/laravel-blog

Simple blog package (with admin panel) for Laravel. Includes all views, controllers, routes and can add a blog to any existing Laravel app. Fully customisable blog (view, urls, and many other options). Includes image uploads and a pretty admin interface to manage your blog. Defaults to /blog but you can change it to anything.

48545.8k](/packages/binshops-laravel-blog)

PHPackages © 2026

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