36 lines
871 B
PHP
36 lines
871 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Cadastro;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Services\Cadastro\RelatorioMaterialService;
|
|
use Illuminate\Http\Response;
|
|
|
|
class RelatorioMaterialController extends Controller
|
|
{
|
|
protected $modulo = 'cadastro';
|
|
protected $funcionalidade = 'relatorio-material';
|
|
|
|
public function index()
|
|
{
|
|
$this->auth(__FUNCTION__);
|
|
|
|
return response()->json(RelatorioMaterialService::index(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function create()
|
|
{
|
|
return response()->json(RelatorioMaterialService::create(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function list()
|
|
{
|
|
return response()->json(RelatorioMaterialService::list(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function autocomplete()
|
|
{
|
|
return datatables()->of(RelatorioMaterialService::autocomplete())->make(true);
|
|
}
|
|
}
|