Questions tagged as 'laravel'

2
answers

Get counter of objects associated with Laravel 5.x

My Project template has n Parts (which is also a template). I want to add a function or lazy property to know how many pieces are associated with a particular project. Thank you.     
asked by 09.07.2015 / 04:00
2
answers

Fill div with ajax result

I have an ajax request with the following code: <script type="text/javascript"> function AddVoto() { $.ajax({ type: "POST", url: "{{url('votos/adicionar/')}}/{{{$postagem->id_postagem}}}",...
asked by 24.06.2015 / 16:02
1
answer

Error sending form with if: else condition in laravel

I'm making a small form with the option to upload files with laravel and I ran into a problem at the time of submitting. The following problem occurs: When sending the form with upload it sends and saves normally in the bank, but without upload...
asked by 06.11.2018 / 15:27
1
answer

Help Update Laravel

Good evening, I'm starting to study Laravel and I came across a problem that already took me a few hours to find a solution. I need to do an update on a form, and when I submit submit I get the error: Herearemycodes:Route:Route::get('/produtos/...
asked by 06.11.2018 / 00:52
1
answer

Laravel Mail, Error: Variable undefined

Good evening, friends, I'm having a problem, when I try to pass the variables from one control to another, it ends up accusing the variable "not defined": (Undefined variable: schedule) I do not know what I'm doing wrong, could anyone...
asked by 21.09.2018 / 05:43
1
answer

Modularize only Views of Laravel

I have the following structure: - resources/ - views - Modulo1 - view01.blade.php - Modulo2 - view01.blade.php But I have a problem, I can not use the blade directives without conflict, if I use within modulo02 / view01...
asked by 21.09.2018 / 21:58
2
answers

How to make a ternary relationship in Laravel?

What is the best way to make a ternary relationship in Laravel? I'm doing a "multi client / company" application (basecamp type) and the following relationship appeared: a user has a (0 .. n) permissão in that organization,...
asked by 03.07.2014 / 17:44
1
answer

How to access the property in an object in PHP

When I gave this command echo $ user-> gt; cards appeared: [{"id":10,"id_user":2,"id_card":"11222","created_at":null,"updated_at":null,"deleted_at":null}] How to access the 'deleted_at' property of this object?     
asked by 27.07.2018 / 19:19
1
answer

What is the default value of MAIL_ENCRYPTION in Laravel 5.6?

My question is the definition of MAIL_ENCRYPTION , in file .env we have MAIL_ENCRYPTION=null and inside file config\mail.php line 74 we have the excerpt: 'encryption' => env('MAIL_ENCRYPTION', 'tls'), Consideri...
asked by 07.03.2018 / 00:12
2
answers

Collection Return after Update

By default Laravel returns true or false when performing an update. Example: User::find(1)->update(['name'=> 'David']); The return of this will be a true or false, causing me to make another Find to pick up the User collection....
asked by 02.03.2018 / 16:47