Initial Spark Install

This commit is contained in:
Deon George
2017-11-03 16:26:07 +11:00
commit b1a5807eb3
766 changed files with 128896 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
<?php
namespace Laravel\Spark\Http\Controllers\Settings\Teams;
use Laravel\Spark\Spark;
use Laravel\Spark\Http\Controllers\Controller;
class TeamMemberRoleController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('auth');
}
/**
* Get the available team member roles.
*
* @return Response
*/
public function all()
{
$roles = [];
foreach (Spark::roles() as $key => $value) {
$roles[] = ['value' => $key, 'text' => $value];
}
return response()->json($roles);
}
}