Skip to content

Composer package for managing hierarchies within your application

Notifications You must be signed in to change notification settings

CarvingIT/hierarchies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hierarchies

Laravel package for managing hierarchies within your application

Installation

composer require carving-i-t/hierarchies 

php artisan vendor:publish --provider="CarvingIT\Hierarchies\HierarchiesServiceProvider" 

php artisan migrate

The package downloads font-awesome under vendor/components. Create a symbolic link pointing to that under public/.

cd public/assets
ln -s ../../vendor/components/font-awesome

Views

To include hierarchies in your view (that has the header/footer and navs), just include the view.

@include('vendor.hierarchies.index')

The view also gets published so you can make changes.

Configuration

config/hierarchies.php can be edited to adjust the following settings.

  1. base_path

  2. fontawesome_path that is relative to the document root of your application

  3. middleware[s] that apply to this module.

Models

  1. Position - Model for positions created.

  2. PositionUser - Model recording association of a user with a position.

Screenshot

hierarchies