New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

laravel-admin/site

Container for Laravel for collecting data for views
64 1

Larablocks Analysis

laravel-admin/site works with any PHP project: the latest release (0.1.1, Feb 9, 2017) doesn't depend on Laravel.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • No release in the last 12 months (last: Feb 9, 2017)
  • 0 downloads a month (needs 10,000)
  • 1 GitHub star (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Feb 9, 2017.
  • No releases in the last 12 months.
  • First released: Feb 9, 2017.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 2, 2026.

Install
composer require laravel-admin/site
Latest Version:0.1.1
License:MIT
Last Updated:Feb 9, 2017
Links: GitHub  ·  Packagist
Maintainer: marcoboom

Site container for your Laravel Project

This package creates a singleton into the Service container. In this site container you can put from your whole application items.

At the end the container will be added as a shared view variable.

Installation

Install it with composer

composer require laravel-admin/site

Add the Service Provider to your config/app.php

LaravelAdmin\Site\SiteServiceProvider::class,

The package has a config, with a basic structure. Publish this config to define your defaults.

artisan vendor:publish --tag="site"

Usage

The container is available in the whole application with:

app('site')

Add item to the container

app('site')->set('title', 'My website title');

Add subitem to the container

The container is compatible with the dotted array notation, like config

app('site')->set('seo.title', 'This is my SEO improved title');

Get item

app('site')->get('title');

Get sub item

app('site')->get('seo.title');

Add your model

Imagine you have a model with some default content attributes, like title, description and content. With one command you can fill all items in the container.

app('site')->model($post);

Views

The container will be available in all your views as the $site variable. Use it as follow:

{{ $site->get('title') }}

Related Packages

rap2hpoutre/laravel-log-viewer

A Laravel log reader

16,981,969 3,193
mikemclin/laravel-wp-password

Laravel package that checks and creates WordPress password hashes

3,818,574 86
glorand/laravel-model-settings

Model Settings for your Laravel app

1,455,461 925
nnjeim/world

Laravel countries, states, cities, currencies, languages and IP geolocation

811,564 998
kavenegar/laravel

laravel 4 and 5 kavenegar integration

398,010 86

Version History

Version Released License
0.1.1 MIT
0.1.0 MIT