Questions tagged as 'laravel'

1
answer

Save checkbox within While Laravel

I would like to know how to save checkbox values inside a while , the comprar01 o checkbox field that should return true or false . I get through request() : $idproduto=$request->get('idprodu...
asked by 19.11.2018 / 19:08
1
answer

Login and authentication in Laravel 5.7

I'm developing a project in Laravel, but I'm having a hard time understanding how login and user authentication works to redirect to the dashboard. I have a table in the database named "user", which contains the following columns: id, name, u...
asked by 16.11.2018 / 20:06
1
answer

How to troubleshoot the "call to undefined method ParameterBag :: save ()" error?

I'm trying to save the data from the protocol checklist, but the following error is occurring at the time of saving:    Call to undefined method   Symfony \ Component \ HttpFoundation \ ParameterBag :: save ()    Thefollowingimageshowstheprot...
asked by 21.11.2018 / 14:12
2
answers

How do I store 0 or 1 of a checkbox?

How do I store 0 or 1 of a checkbox with Laravel? Html <div class="custom-control custom-checkbox"> <input type="checkbox" name="dashboard" value="1" class="custom-control-input" id="Dashboard"> <label class="c...
asked by 14.11.2018 / 01:25
1
answer

Symbolic link in application Laravel

I'm deploying a Laravel application to a server, and I'm having trouble creating a symbolic link: The server public files are in the raiz/public_html The public files of laravel are in the path raiz/aplicacao/public I'm tryi...
asked by 14.11.2018 / 13:15
0
answers

Structuring Vue Components in Laravel

Hello, I'm a beginner with VueJs and I'm trying to implement it in a 5.7oz Laravel project. I currently have a few components and I'm about to create a bit more and I see that everything is "messed up" there in the components folder and the...
asked by 21.11.2018 / 17:40
1
answer

Good practices in a GET (Laravel API) request [closed]

Hello, I have a table with user login data, and this table is related to several other tables (FK). I'm making an API using Laravel, but a question has arisen. If I make a GET in the Login table using the user ID, which is best as good practice:...
asked by 13.11.2018 / 01:52
1
answer

How to pick specific item On the laravel blade

How do I get a specific item in Laravel blade ? Example: $(document).ready(function(){ var id = 1; $('body').append('{{ $projeto->'+id+'->name}}' }) <body> Deve Aparecer aqui o nome do projeto </body>     
asked by 12.11.2018 / 12:49
0
answers

Mismatch token error in laravel

My login form works correctly: <form action="{{route('autenticacao.logar')}}" method="post"> {{csrf_field()}} <input type="text" name="cpf" class="form-control" placeholder="CPF" style="border-radius:10px; border-color:blue;"...
asked by 09.11.2018 / 21:41
0
answers

Show in json a relationship

I'm making a system that exists a product register, these same products can be part of just one group, or not. I have this model for Products: class Products extends Model { protected $fillable = ['nome', 'codigo', 'preco'];...
asked by 10.11.2018 / 01:39