PHPackages                             doctype\_admin/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. doctype\_admin/blog

ActiveLibrary[Admin Panels](/categories/admin)

doctype\_admin/blog
===================

Package to integrate blog system to your Doctype Admin

v1.0.3(5y ago)5821[1 PRs](https://github.com/pratiksh404/doctype_admin_blog/pulls)MITBlade

Since Jun 3Pushed 5y agoCompare

[ Source](https://github.com/pratiksh404/doctype_admin_blog)[ Packagist](https://packagist.org/packages/doctype_admin/blog)[ RSS](/packages/doctype-admin-blog/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (5)Versions (5)Used By (0)

[![Doctype Admin Blog](https://github.com/pratiksh404/doctype_admin_blog/raw/master/screenshot/doctype_blog.png)](https://github.com/pratiksh404/doctype_admin_blog/blob/master/screenshot/doctype_blog.png)

[![Issues](https://camo.githubusercontent.com/b94570178bf2aecce4262a4c9f56314d2c44215894bf4c97bf101cd6511f98b1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f70726174696b73683430342f646f63747970655f61646d696e5f626c6f67)](https://github.com/pratiksh404/doctype_admin_blog/issues) [![Latest Stable Version](https://camo.githubusercontent.com/c4a2722de4d313b0783ed2771d884d6dd1fa23d103e5bc8e799d6e2f5aba4ef4/68747470733a2f2f706f7365722e707567782e6f72672f646f63747970655f61646d696e2f626c6f672f76)](//packagist.org/packages/doctype_admin/blog) [![Stars](https://camo.githubusercontent.com/11fca7cd59c961ba384deeee1d5df074c803ee7550823e13a6eef853c996ef32/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f70726174696b73683430342f646f63747970655f61646d696e5f626c6f67)](https://github.com/pratiksh404/doctype_admin_blog/stargazers) [![Total Downloads](https://camo.githubusercontent.com/bbfc39659cf1fb622ff901a55ecfd69fcce5d92a80e2d7c9261dbf6300d4147e/68747470733a2f2f706f7365722e707567782e6f72672f646f63747970655f61646d696e2f626c6f672f646f776e6c6f616473)](//packagist.org/packages/doctype_admin/blog) [![Issues](https://camo.githubusercontent.com/0b402b1faee7f14adf37b52430fa3ceda5ed9f7ccefcf595f098164b98ff5c37/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f70726174696b73683430342f646f63747970655f61646d696e5f626c6f67)](https://github.com/pratiksh404/doctype_admin_blog/blob/master/LICENSE)

Laravel 7 Admin Panel for lazy developers.
------------------------------------------

[](#laravel-7-admin-panel-for-lazy-developers)

#### Contains : -

[](#contains---)

- Post Management
- Category Management

### Installation

[](#installation)

Run Composer Require Command

```
composer require doctype_admin/blog
```

### Install package assets

[](#install-package-assets)

#### Install all assets

[](#install-all-assets)

```
php artisan DoctypeAdminBlog:install -a
```

This command will publish

- config file named Blog.php
- views files of post and category
- migrations files
- seed files

#### Install config file only

[](#install-config-file-only)

```
php artisan DoctypeAdminBlog:install -c
```

#### Install view files only

[](#install-view-files-only)

```
php artisan DoctypeAdminBlog:install -f
```

#### Install migrations files only

[](#install-migrations-files-only)

```
php artisan DoctypeAdminBlog:install -m
```

#### Install seed files only

[](#install-seed-files-only)

```
php artisan DoctypeAdminBlog:install -d
```

Then migrate database
---------------------

[](#then-migrate-database)

```
php artisan migrate
```

This Package includes two seed

- PostsTableSeeder
- CategoriesTableSeeder

To use specific seed use

```
php artisan db:seed --class=CategoriesTableSeeder //Seed this first
php artisan db:seed --class=PostsTableSeeder // And then this
```

Note
----

[](#note)

If seed class is not found try running composer dump-autoload

Update Note
-----------

[](#update-note)

- Blog Routes has been changed from prefix admin/post and admin/category to admin/blog/post and admin/blog/category

Package Config File
-------------------

[](#package-config-file)

```
 true,

    /*
    |--------------------------------------------------------------------------
    | Doctype Admin Blog default prefix
    |--------------------------------------------------------------------------
    |
    | This option defines the default prefix of all routes of blog plugins to
    | your admin panel. The default prefix is admin. You can change the prefix
    | but we highly recommend to use default one.
    */
    'prefix' => 'admin',

    /*
    |--------------------------------------------------------------------------
    | Doctype Admin Blog Middlewares
    |--------------------------------------------------------------------------
    |
    | This option includes all the middleware used by routes og doctype admin
    | blog package.
    | Note: If you don;t want activity logging of post and category model simply
    | remove activity middleware
    |
    */
    'middleware' => ['web', 'auth', 'activity'],

    /*
    |--------------------------------------------------------------------------
    | Doctype Admin Blog Thmbnail Feature
    |--------------------------------------------------------------------------
    |
    | This option defines whether to use Package's Thumbnail Featured or not
    | Default option is true
    |
    */
    'thumbnail' => true,

    /*
    |--------------------------------------------------------------------------
    | Thumbnail Qualities
    |--------------------------------------------------------------------------
    |
    | These options are default post image and its thumbnail quality
    |
    |
    */

    'image_quality' => 80,
    'medium_thumbnail_quality' => 60,
    'small_thumbnail_quality' => 30,

    /*
    |--------------------------------------------------------------------------
    | Default Image Fit Size
    |--------------------------------------------------------------------------
    |
    | These option is default post imahe height and width fit size
    |
    |
    */

    'img_width' => 1000,
    'img_height' => 800,

    'medium_thumbnail_width' => 800,
    'medium_thumbnail_height' => 600,

    'small_thumbnail_width' => 400,
    'small_thumbnail_height' => 300,

];

```

To add the package route link to be accesable from sidemenu just add following on config/adminlte.php undr key 'menu'
---------------------------------------------------------------------------------------------------------------------

[](#to-add-the-package-route-link-to-be-accesable-from-sidemenu-just-add-following-on-configadminltephp-undr-key-menu)

```
        [
            'text' => 'Blog',
            'icon' => 'fas fa-blog',
            'submenu' => [
                           [
                               'text' => 'Posts',
                               'icon' => 'fas fa-file',
                               'url' => 'admin/blog/post',
                           ],
                           [
                             'text' => 'Categories',
                             'icon' => 'fas fa-bezier-curve',
                             'url' => 'admin/blog/category',
                           ]
                          ]
        ],
```

Post Scopes
-----------

[](#post-scopes)

ScopesDescriptionPost::featured()-&gt;get()Retives all featured postsPost::featuredLimit($limit)-&gt;get()Retives $limit(type integer) no. of postsPost::published()-&gt;get()Retrives published postsPost::draft()-&gt;get()Retrives draft postsPost::pending()-&gt;get()Retrives pendingposts### Cached Posts

[](#cached-posts)

Doctype admin blog uses facade "Post" to retrive cached data.

UseDescriptionPost::allPostsRetives all postsPost::pendingPostsRetives Pending PostsPost::draftPostsRetrives draft postsPost::publishedPostsRetrives published postsPost::blogRetrives Blog postsPost::eventRetrives event postsPost::newsRetrives news postsPost::jobRetrives job postsPost::relatedTagPosts(post,limit)Retrives limit no. of posts related to post arguement instance tagPost::relatedCategoryPosts($post,$limit)Retrives limit no. of posts related to post arguement instance categoryPost::relatedPosts($post,$limit)Retrives limit no. of posts related to post arguement instance tag and categoryRelated Post Usages
-------------------

[](#related-post-usages)

```
$post = Post::find($id);
scopeRelatedTagPost = Post::relatedPost($post); //retrives all the related posts to $post using some or all tags used by $post

$scopeRelatedTagPostlimited = Post::relatedPost($post,8); //retrives 8 related post, default limit is 5
```

similar goes to relatedTagPost and relatedPost.

Note
----

[](#note-1)

- relatedTagPost scopes uses tags used by the instance to find out other related post using its tags.
- If you want to use ModelScope provied by doctype admin panel just use ModelScopes on Post Model

Working with package
--------------------

[](#working-with-package)

- This package uses  for tagging posts so you can check it's documentation for further manipulation
- This package uses  for slugging post so you can check it's documentation for further manipulation

Our Post Model
--------------

[](#our-post-model)

```
 // For small thumbnail
    // For medium thumbnail
   @endforeach
```

### Admin Panel Screenshot

[](#admin-panel-screenshot)

[![Doctype Admin Blog](https://github.com/pratiksh404/doctype_admin_blog/raw/master/screenshot/post.jpg)](https://github.com/pratiksh404/doctype_admin_blog/blob/master/screenshot/post.jpg)[![Doctype Admin Blog](https://github.com/pratiksh404/doctype_admin_blog/raw/master/screenshot/create_post.jpg)](https://github.com/pratiksh404/doctype_admin_blog/blob/master/screenshot/create_post.jpg)[![Doctype Admin Blog](https://github.com/pratiksh404/doctype_admin_blog/raw/master/screenshot/category.jpg)](https://github.com/pratiksh404/doctype_admin_blog/blob/master/screenshot/category.jpg)

### Todos

[](#todos)

- Better Confile File Control
- Post Analytics
- Algolia Post Search Funtionality
- Maintainabilty
- Better UI

Package Used
------------

[](#package-used)

-
-
-

License
-------

[](#license)

MIT

**DOCTYPE NEPAL ||DR.H2SO4**

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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 ~129 days

Total

2

Last Release

2037d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/001849cfcd496d28474179bde8e510e82ea2ff8b32291d2ac8fc905a754512e0?d=identicon)[pratiksh404](/maintainers/pratiksh404)

---

Top Contributors

[![pratiksh404](https://avatars.githubusercontent.com/u/40533219?v=4)](https://github.com/pratiksh404 "pratiksh404 (28 commits)")

---

Tags

blogblog-adminblog-engineblog-packageblog-pluginblog-themedoctype-admin-blogdoctype-admin-paneldoctype-nepalBlog packagedoctype nepaldoctypenepaldoctype admindoctype admin paneldoctype admin panel blog packageadmin panel blog package

### Embed Badge

![Health badge](/badges/doctype-admin-blog/health.svg)

```
[![Health](https://phpackages.com/badges/doctype-admin-blog/health.svg)](https://phpackages.com/packages/doctype-admin-blog)
```

###  Alternatives

[backpack/pagemanager

Create admin panels for presentation websites on Laravel, using page templates and Backpack\\CRUD.

371522.6k6](/packages/backpack-pagemanager)[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.

48447.0k](/packages/binshops-laravel-blog)[backpack/newscrud

An admin panel for news with categories and tags, using Backpack\\CRUD on Laravel 5.

236159.6k1](/packages/backpack-newscrud)[eveseat/web

SeAT Web Interface

2723.2k135](/packages/eveseat-web)[weblabormx/laravel-front

Front is a administration panel for Laravel. It allows you to create CRUD easily in minutes. It allows to fully customize any part of the code.

1111.1k](/packages/weblabormx-laravel-front)[provision/administration

Laravel administration

113.7k2](/packages/provision-administration)

PHPackages © 2026

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