improve code in controller and form request for V3 whit pint package
This commit is contained in:
@@ -15,14 +15,15 @@ use Illuminate\Http\Request;
|
||||
class AzmayeshSampleController extends Controller
|
||||
{
|
||||
use ApiResponse;
|
||||
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*/
|
||||
public function index(Request $request, string $azmayesh_id): JsonResponse
|
||||
{
|
||||
$columns = array(
|
||||
'id', 'updated_at', 'created_at'
|
||||
);
|
||||
$columns = [
|
||||
'id', 'updated_at', 'created_at',
|
||||
];
|
||||
|
||||
$allowedFilters = $columns;
|
||||
$allowedSortings = $columns;
|
||||
|
||||
Reference in New Issue
Block a user