Questions tagged as 'laravel'

3
answers

Postgres SQLSTATE [42725]: Ambiguous function

I'm trying to run the following update using Postgres but I'm running into the following message. Does anyone know a way to solve?    "SQLSTATE [42725]: Ambiguous function: 7 ERROR: Operator is not unique:   unknown - unknown " UPDATE produ...
asked by 17.09.2015 / 20:39
1
answer

Using ajax serialize in Laravel

What I need When the user clicks the send button, ajax will call a method of a class to check if the typed text already exists and in a table. It returns the result, if false it leaves the form to be sent and the field is registered in the bd...
asked by 27.02.2015 / 14:03
1
answer

Multiplication and sum of dynamic inputs

Note: Developed with Laravel 5.7. Note 2: This is the "New Order" view. The form will dynamically receive the products according to their previously registered items. Until then, okay! The user will bookmark the product and enter the desi...
asked by 13.12.2018 / 15:25
1
answer

Laravel 5.2 with pagination

I have the following function inside the controller public function home() { $igrejas = Igreja::paginate(3); $igrejas->setPath('igrejas'); return view('admin/igrejas/home')->with('igrejas', $igrejas); } I need to be return...
asked by 02.08.2016 / 20:19
1
answer

Custom authentication with CPF and E-MAIL

I'm thinking of a way to authenticate users using email and the CPF of it, so far I have not found a way to do it, does anyone have a suggestion? public function auth(Request $request) { $credenciais = $request->only('cli_email', 'cli_c...
asked by 22.08.2016 / 21:16
1
answer

Use 'WHERE' if value is different from 'NULL' in a search appliance

I'm trying to do a simple search engine with some text fields: $nome = $request->nome; $email = $request->email; $bairro = $request->bairro; $request = Contato::where('nome', 'like', $nome) ->where('email', 'like', $email)...
asked by 06.05.2016 / 00:45
1
answer

CSS and JS files in Laravel

By default, the CSS and JS files in Laravel are in the public folder. But when I create the dependencies with Bower, it creates the components folder in the vendor folder. Can I change the folder from vendor to public...
asked by 24.08.2016 / 18:11
1
answer

Search for relationship Laravel whereHas?

I have a Query in my Criteria that returns the id belonging to relationship between models if ($this->request->has('notin_portal')) { $portal = $this->request->get('notin_portal'); if ($this-...
asked by 04.10.2016 / 21:47
1
answer

Doubt in the method of using Distinct and Count together!

I have a table requests as the example below: Id | Cliente | Status 1 | XPTO | Proposta 2 | ABCD | Proposta 3 | XPTO | Venceu 4 | XPTO | Perdeu And I want to present a result like this: Cliente | Status | Qtd XPTO...
asked by 04.08.2016 / 19:24
1
answer

Create unique constraint with two fields in Laravel request

I have in the creation migration of my table the following: public function up() { Schema::connection('database2')->create('empresa_funcoes', function(Blueprint $table) { $table->increments('id'); $tab...
asked by 06.10.2016 / 16:49