PHPackages                             taskforcedev/laravel-support - 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. taskforcedev/laravel-support

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

taskforcedev/laravel-support
============================

Laravel support package. Used by other Taskforcedev packages.

v1.1.7(8y ago)19.5k2[1 PRs](https://github.com/taskforcedev/laravel-support/pulls)5PHPPHP &gt;=5.6.4

Since Sep 30Pushed 8y ago1 watchersCompare

[ Source](https://github.com/taskforcedev/laravel-support)[ Packagist](https://packagist.org/packages/taskforcedev/laravel-support)[ RSS](/packages/taskforcedev-laravel-support/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (5)Dependencies (2)Versions (32)Used By (5)

laravel-support
===============

[](#laravel-support)

Support package for Taskforcedev Laravel packages.

Provides a consistant way to get user specified layouts, sitename, and user administration rights (using conventions on the user model - if applicable).

Build Status:
-------------

[](#build-status)

1.0.x (Laravel 5.3): [![Build Status](https://camo.githubusercontent.com/b9ac63105205d6b512183d65b2248804021cd3f80b1d938beccb027c7ef18cf9/68747470733a2f2f7472617669732d63692e6f72672f7461736b666f7263656465762f6c61726176656c2d737570706f72742e7376673f6272616e63683d312e302e78)](https://travis-ci.org/taskforcedev/laravel-support)

1.1.x (Laravel 5.4): [![Build Status](https://camo.githubusercontent.com/2d7e089907ab0fffc4fccf85d7143592499c1b859a61bf55341737269513e3f0/68747470733a2f2f7472617669732d63692e6f72672f7461736b666f7263656465762f6c61726176656c2d737570706f72742e7376673f6272616e63683d312e312e78)](https://travis-ci.org/taskforcedev/laravel-support)

Requirements
------------

[](#requirements)

- Laravel 5.3+

Features
--------

[](#features)

- Provides a 'base' controller which can be extended to ensure all views have access to the buildData method.
- Provides a single place to edit config for all Taskforcedev packages (other packages are free to require this also).
- Provides authorization helper support if your user model follows some of our known conventions.
- Provides user model namespace detection, allows packages to interact with the user model easily.

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

[](#installation)

Add the following line to your composer require: (not necessary if you already have a package which depends on laravel-support)

Laravel 5.3

```
"require": {
    "taskforcedev/laravel-support": "1.0.*"
},

```

Laravel 5.4

```
"require": {
    "taskforcedev/laravel-support": "1.1.*"
},

```

Then if you don't already have the following entry in your config/app.php add it also:

```
Taskforcedev\LaravelSupport\ServiceProvider::class,

```

### Configuration

[](#configuration)

This package provides a single place where the following can be configured and used by packages which use this.

- Layout (which layout to use, provides all packages the same visual theme if set to your own custom layout.).
- Frameworks, allows you to specify which frameworks are enabled in your layouts - Other packages can then use this information to load appropriate displays.

### Publish Config

[](#publish-config)

In order to edit the configuration please run the following command to publish the taskforce-support.php file into your apps config directory

`php artisan vendor:publish --tag="taskforce-support"`

Controller
----------

[](#controller)

The package provides a controller which if extended by your own controllers will provide the method buildData($data = \[\]) which allows all controllers to access the same set of shared data.

As well as the shared data the method also accepts an array for which these extra values will be added to the data object.

Example:

```
use Taskforcedev\LaravelSupport\Http\Controllers\Controller

class MyController extends Controller
{
    public function index()
    {
        $data = [
            'title' => 'My Page',
            'description' => 'This is my page',
        ];
        $data = $this->buildData();
        return view('myview', $data);
    }
}

```

Helpers
-------

[](#helpers)

### User

[](#user)

#### Get the user model

[](#get-the-user-model)

This can then be used in eloquent relations within packages to prevent hardcoding or configuring user model in external config. Or anywhere else where you need the model name of user model.

##### Example

[](#example)

```
use Taskforcedev\LaravelSupport\Helpers\User as UserHelper;

Class whatever
{
    public function author() {
        $userHelper = new UserHelper();
        $model = $userHelper->getUserModel();
        return $this->belongsTo($model);
    }
}

```

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

[](#contributing)

Issues and pull requests are always appreciated, particularly anything relating to the new UI facade.

Please ensure any PHP is PSR-2 standard.

For anything else please raise a gihub issue.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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 ~28 days

Recently: every ~13 days

Total

31

Last Release

3070d ago

PHP version history (2 changes)v1.0.0PHP &gt;=5.5.0

v1.0.10PHP &gt;=5.6.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/37c8fe9528f3cf904d6cfa282050a60af3dc8c8ef24f1e0d4515a6c9316c2e75?d=identicon)[PrivateSniper](/maintainers/PrivateSniper)

![](https://www.gravatar.com/avatar/67824c3c557abf0cb50a016dabacfc64c2af69b5cd765c2895445f21fb499ae0?d=identicon)[davidcraig](/maintainers/davidcraig)

---

Top Contributors

[![davidcraig](https://avatars.githubusercontent.com/u/11975187?v=4)](https://github.com/davidcraig "davidcraig (2 commits)")[![danhunsaker](https://avatars.githubusercontent.com/u/1534396?v=4)](https://github.com/danhunsaker "danhunsaker (1 commits)")

---

Tags

laravellaravel-5-packagepackagelaravelsupport

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/taskforcedev-laravel-support/health.svg)

```
[![Health](https://phpackages.com/badges/taskforcedev-laravel-support/health.svg)](https://phpackages.com/packages/taskforcedev-laravel-support)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M10](/packages/renatomarinho-laravel-page-speed)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k12.5k1](/packages/vinkius-labs-laravel-page-speed)[emargareten/inertia-modal

Inertia Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.

90142.9k](/packages/emargareten-inertia-modal)[wearepixel/laravel-cart

A cart implementation for Laravel

1374.8k](/packages/wearepixel-laravel-cart)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.4k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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