public function getTeamRoles()
    {
        $roles = [];

        foreach (Spark::roles() as $key => $value) {
            $roles[] = ['value' => $key, 'text' => $value];
        }

        return response()->json($roles);
    }
public function getTeamRoles()
    {
        $roles = [];

        foreach (Spark::roles() as $key => $value) {
            $roles[] = ['value' => $key, 'text' => $value];
        }

        return response()->json($roles);
    }
public function getTeamRoles ( ) { $ roles = [ ] ; foreach ( Spark :: roles ( ) as $ key => $ value ) { $ roles [ ] = [ 'value' => $ key , 'text' => $ value ] ; } return response ( ) -> json ( $ roles ) ; }
Get all of the available roles that may be assigned to team members.

@return \Illuminate\Http\Response
Get all of the available roles that may be assigned to team members .