public function index(NovaRequest $request) {
		return response()->json([
			'actions' => $request->newResource()->availableActions($request),
			'pivotActions' => [
				'name' => $request->pivotName(),
				'actions' => $request->newResource()->availablePivotActions($request),
			],
		]);
	}
public function index(NovaRequest $request) {
		return response()->json([
			'actions' => $request->newResource()->availableActions($request),
			'pivotActions' => [
				'name' => $request->pivotName(),
				'actions' => $request->newResource()->availablePivotActions($request),
			],
		]);
	}
public function index ( NovaRequest $ request ) { return response ( ) -> json ( [ 'actions' => $ request -> newResource ( ) -> availableActions ( $ request ) , 'pivotActions' => [ 'name' => $ request -> pivotName ( ) , 'actions' => $ request -> newResource ( ) -> availablePivotActions ( $ request ) , ] , ] ) ; }
List the actions for the given resource.

@param  \Laravel\Nova\Http\Requests\NovaRequest  $request
@return \Illuminate\Http\Response
List the actions for the given resource .