Questions tagged as 'laravel'

1
answer

Json with relationship ManyToMany - Laravel

I created a relationship between my tables using ManyToMany and I currently need to return a Json with the information, but my tables are found like this; // 1. Produtos +-------------+ | id | | name | | description | |...
asked by 02.12.2015 / 17:48
2
answers

Laravel checkbox checked or not checked as database

I need a help in Laravel how to "check the checkboxes" of a form. I have a color table, today with 12 different colors but can be as many as I want. And a one product byproduct table. The cores.id = corproduto.cor_id. When I register the product...
asked by 14.09.2016 / 18:37
2
answers

Sort relationship "Many To Many" using as base field another table

I am doing a virtual store, to know better the framework Laravel, and I came across the following situation: I have a table called products to store the information related to the products. I also have a table named types to store the types o...
asked by 09.05.2014 / 17:46
2
answers

Incompatibility between Blade and Angular JS in Laravel 5

I'm having trouble using AngularJS along with Laravel's Blade. After searching this site myself, I discovered that to resolve the conflict with Laravel the most recent method is using @{{}} in variable calls. The page is loaded, a...
asked by 10.01.2017 / 19:57
4
answers

Laravel 5.3 - Model that can be created by multiple Controllers

Good afternoon, I use Laravel 5.3 as a back-end for a project and I will try to explain the problem more succinctly. Problem : In my project I have the Duplicate model and the Contract. A contract creates multiple duplicates by Contract...
asked by 27.01.2017 / 19:24
3
answers

Update record with Laravel 5.2?

I have the following function: public function alterar($id) { $produto = Produto::find($id); $params = $request->all(); $produto->fill($params)->save(); return redirect()->action('ProdutoController@index'); } how...
asked by 03.08.2016 / 23:42
1
answer

Connection Progress database by PHP (Laravel framework), PDO

I need to connect to a Progress database via php I'm using the laravel 5.2 framework but the same documentation supports only the MySQL, Postgres, SQLite and SQL Server databases. Searching I found very little about how to connect to this DB...
asked by 24.06.2016 / 16:04
2
answers

Blade laravel and the performance

In Laravel , we usually use Blade to be able to write a view . Example: @unless($variable) <p>Nenhum dado encontrado</p> @else @foreach($variable as $v) <p>{{ $v }} </p> @endforeach @end...
asked by 01.10.2015 / 14:19
1
answer

What are the Events for at laravel?

I have never used Event in Laravel and would like to know what the purpose is and if it has any advantage.     
asked by 09.12.2016 / 14:59
2
answers

Request for a form with laravel not working

I am making a request from my controller for a form in the view, it is giving this error. I tried several methods but none solved. Controller:publicfunctionstore(Request$request){$NomeDaEmpresa=$request->input('NomeDaEmpresa');$nCompartil...
asked by 22.02.2017 / 19:06