Skip to content

Instantly share code, notes, and snippets.

@ssx
Created December 27, 2018 13:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssx/0324b97c5e4982347852979eedac0b83 to your computer and use it in GitHub Desktop.
Save ssx/0324b97c5e4982347852979eedac0b83 to your computer and use it in GitHub Desktop.
<?php
namespace App\Nova;
use App\Nova\Actions\ExportOrders;
class Order extends Resource
{
// snipped..
/**
* Get the actions available for the resource.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function actions(Request $request)
{
return [
(new ExportOrders())
];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment