2017 © Pedro Peláez
 

library resources

[DEPRECATED] Resources Component for Orchestra Platform

image

orchestra/resources

[DEPRECATED] Resources Component for Orchestra Platform

  • Sunday, December 20, 2015
  • by crynobone
  • Repository
  • 1 Watchers
  • 1 Stars
  • 19,940 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 24 Versions
  • 0 % Grown

The README.md

Resources Component for Orchestra Platform

Join the chat at https://gitter.im/orchestral/platform/components, (*1)

Resources Component is an optional adhoc routing manager that allow extension developer to add CRUD interface without touching Orchestra Platform 2. The idea is to allow controllers to be map to specific URL in Orchestra Platform Administrator Interface., (*2)

Latest Stable Version Total Downloads MIT License Build Status Coverage Status Scrutinizer Quality Score, (*3)

Table of Content

Version Compatibility

Laravel Resources
4.0.x 2.0.x
4.1.x 2.1.x
4.2.x 2.2.x
5.0.x 3.0.x
5.1.x 3.1.x
~5.2 3.2.x

Installation

To install through composer, simply put the following in your composer.json file:, (*4)

{
    "require": {
        "orchestra/resources": "~3.0"
    }
}

And then run composer install from the terminal., (*5)

Quick Installation

Above installation can also be simplify by using the following command:, (*6)

composer require "orchestra/resources=~3.0"

Configuration

Add Orchestra\Resources\ResourcesServiceProvider service provider in config/app.php., (*7)

'providers' => [

    // ...

    Orchestra\Resources\ResourcesServiceProvider::class,
],

Aliases

You might want to add Orchestra\Support\Facades\Resources to class aliases in config/app.php:, (*8)

'aliases' => [

    // ...

    'Resources' => Orchestra\Resources\Facade::class,
],

Usage

Adding a Resource

Normally we would identify an extension to a resource for ease of use, however Orchestra Platform still allow a single extension to register multiple resources if such requirement is needed., (*9)


use Orchestra\Support\Facades\Foundation; Event::listen('orchestra.started: admin', function () { $robots = Resources::make('robotix', [ 'name' => 'Robots.txt', 'uses' => 'Robotix\ApiController', 'visible' => function () { return (Foundation::acl()->can('manage orchestra')); }, ]); });
Name Usage
name A name or title to refer to the resource.
uses a path to controller, you can prefix with either restful: (default) or resource: to indicate how Orchestra Platform should handle the controller.
visible Choose whether to include the resource to Orchestra Platform Administrator Interface menu.

Orchestra Platform Administrator Interface now would display a new tab next to Extension, and you can now navigate to available resources., (*10)

Adding a Child Resource

A single resource might require multiple actions (or controllers), we allow such feature to be used by assigning child resources., (*11)

$robots->route('pages', 'resource:Robotix\PagesController');

Nested resource controller is also supported:, (*12)

$robots['pages.comments'] = 'resource:Robotix\Pages\CommentController';

Returning Response from a Resource

Controllers mapped as Orchestra Platform Resources is no different from any other controller except the layout is using Orchestra Platform Administrator Interface. You can use View, Response and Redirect normally as you would without Orchestra Platform integration., (*13)

The Versions

20/12 2015

dev-master

9999999-dev http://orchestraplatform.com/docs/latest/components/resources/

[DEPRECATED] Resources Component for Orchestra Platform

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel orchestral orchestra-platform

20/12 2015

v3.2.0

3.2.0.0 http://orchestraplatform.com/docs/latest/components/resources/

[DEPRECATED] Resources Component for Orchestra Platform

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel orchestral orchestra-platform

20/08 2015

3.1.x-dev

3.1.9999999.9999999-dev http://orchestraplatform.com/docs/latest/components/resources/

Resources Component for Orchestra Platform

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel orchestral orchestra-platform

27/05 2015

3.0.x-dev

3.0.9999999.9999999-dev http://orchestraplatform.com/docs/latest/components/resources/

Resources Component for Orchestra Platform

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel orchestral orchestra-platform

24/05 2015
28/02 2015

2.2.x-dev

2.2.9999999.9999999-dev http://orchestraplatform.com/docs/latest/components/resources/

Resources Component for Orchestra Platform 2

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel orchestral orchestra-platform

28/02 2015

2.1.x-dev

2.1.9999999.9999999-dev http://orchestraplatform.com/docs/latest/components/resources/

Resources Component for Orchestra Platform 2

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel orchestral orchestra-platform

05/02 2015
03/08 2014

v2.2.2

2.2.2.0 http://orchestraplatform.com/docs/latest/components/resources/

Resources Component for Orchestra Platform 2

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel orchestral orchestra-platform

03/08 2014

v2.1.4

2.1.4.0 http://orchestraplatform.com/docs/latest/components/resources/

Resources Component for Orchestra Platform 2

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel orchestral orchestra-platform

02/06 2014

v2.2.1

2.2.1.0 http://orchestraplatform.com/docs/latest/components/resources/

Orchestra Platform 2 Resources Component

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel orchestral orchestra-platform

02/06 2014

v2.1.3

2.1.3.0 http://orchestraplatform.com/docs/latest/components/resources/

Orchestra Platform 2 Resources Component

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel orchestral orchestra-platform

02/06 2014

v2.2.0

2.2.0.0 http://orchestraplatform.com/docs/latest/components/resources/

Orchestra Platform 2 Resources Component

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel orchestral orchestra-platform

04/03 2014

v2.1.2

2.1.2.0 http://orchestraplatform.com/docs/latest/components/resources/

Orchestra Platform 2 Resources Component

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel orchestral orchestra-platform

24/01 2014

v2.1.1

2.1.1.0 http://orchestraplatform.com/docs/latest/components/resources/

Orchestra Platform 2 Resources Component

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel orchestral orchestra-platform

24/01 2014

2.0.x-dev

2.0.9999999.9999999-dev http://orchestraplatform.com/docs/2.0/components/resources/

Orchestra Platform 2 Resources Component

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel orchestral orchestra-platform

24/01 2014

v2.0.5

2.0.5.0 http://orchestraplatform.com/docs/2.0/components/resources/

Orchestra Platform 2 Resources Component

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel orchestral orchestra-platform

25/12 2013

v2.1.0

2.1.0.0 http://orchestraplatform.com/docs/latest/components/resources/

Orchestra Platform 2 Resources Component

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel orchestral orchestra-platform

21/10 2013

v2.0.4

2.0.4.0 http://orchestraplatform.com/docs/2.0/components/resources/

Orchestra Platform 2 Resources Component

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel orchestral orchestra-platform

05/09 2013

v2.0.3

2.0.3.0 http://orchestraplatform.com/docs/2.0/components/resources/

Orchestra Platform 2 Resources Component

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel orchestral orchestra-platform

19/07 2013

v2.0.2

2.0.2.0 http://orchestraplatform.com/docs/2.0/components/resources/

Orchestra Platform 2 Resources Component

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel orchestral orchestra-platform

22/06 2013

v2.0.1

2.0.1.0 http://orchestraplatform.com/docs/2.0/components/resources/

Orchestra Platform 2 Resources Component

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel orchestral orchestra-platform

19/06 2013

v2.0.0

2.0.0.0 http://orchestraplatform.com/docs/2.0/components/resources/

Orchestra Platform 2 Resources Component

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel orchestral orchestra-platform