Skip to content

programmende/laravel-categorizable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Categorizable

Categorizable is a package for Laravel that adds the ability to categorize your models into nested categories.

Installation

Step 1: Composer

From the command line, run:

composer require programmende/laravel-categorizable

Step 2: Service Provider

For your Laravel app, open config/app.php and, within the providers array, append:

Programmende\Commentable\CategorizableServiceProvider::class,

This will bootstrap the package into Laravel.

Step 3: Migrate the database

Migrate the database to add the 'categories' table

php artisan migrate

Usage

The Basics

With the package now installed, you may use the provided favoritable trait in your models, like so:

<?php

namespace App;

use Programmende\Commentable\Commentable;

class Post extends Model
{
    use commentable;

    ...
}

About

Adds categorizable support for your laravel models

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages