Exemple #1
0
 public static function pesquisar(Request $req)
 {
     return Peca::PesquisarPorCategoria($req->get('categoria'))->PesquisarPorCodigo($req->get('codigo'))->PesquisarPorReferencia($req->get('referencia'))->PesquisarPorAplicacao($req->get('aplicacao'))->PesquisarPorDescricao($req->get('descricao'))->PesquisarPorMarca($req->get('marca'))->PesquisarPorQnt($req->get('qnt'));
 }
 public function pesquisar()
 {
     $pecas = Peca::pesquisar(request())->paginate(15);
     return view('admin.peca.index')->with('pecas', $pecas);
 }