Questions tagged as 'laravel-blade'

0
answers

Uploading the file inside the ajax request

I am trying to capture data via ajax request, for file upload and is not returning value for the photo. Can anyone help me? Ajax: Outputtothedataconsole(thephotopathisselected!): PersonControl:publicfunctionpostStatePath(Request$request){...
asked by 13.09.2018 / 20:48
0
answers

initial SQL to list clients (PF and PJ). How to migrate a pure SQL Query to Eloquent from Laravel?

I set up an initial SQL to pull the data. It is working in pure SQL. I need to migrate this code to Laravel's eloquent pattern. Can someone help me? Thank you! Here is the sample SQL: Code: SELECT c.cod_cliente, p.cpf, p.nome, ct_m...
asked by 29.08.2018 / 16:56
0
answers

Broken picture in laravel 5.6 [homestead]

Uploaded to my application an image when using php artisan serves, Today I'm using the homestead, when I went to look at the application it barred my url and it does not let it be displayed. <img src="/storage/avatars/{{ Auth::user()->im...
asked by 29.08.2018 / 23:59
1
answer

Laravel Helpers do not work in shared hosting production mode

I have a Laravel 5.6 application hosted on Ycorn, there, because it is shared, I do not have SSH access, which makes it very difficult to implement the framework . With this, the helpers {{asset()}} and {{url()}} can not find...
asked by 19.07.2018 / 01:12
0
answers

Locale Laravel does not recognize ptBr

I have a problem with the configuration in laravel in the language part. I create the new folder with the translated files called ptBr aponto no app.php 'locale' => 'ptBr' , instead of en. But it returns the broken messages, as an...
asked by 19.06.2018 / 23:00
0
answers

How to have a good .blade indentation in VSCode?

Example of expected result: <body> @extends('t') @include('as') </body> Reality sample with PHP extension <body> @extends('t') @include('as') </body>     
asked by 11.04.2018 / 16:31
0
answers

Laravel Blade prints html

For some reason when I use {{}} to interpolate, the Blade does not interpret the accents and print on the screen the html code, rather than interpreting the code WhenIuse{!!!!},itprintscorrect Butthewholecodeisbeingused{{}},whichismostrecommend...
asked by 04.04.2018 / 15:01
0
answers

gulp does not recognize {{assets ()}} from blade

Hello, I'm implementing gulp in a laravel project. I have the following task: gulp.task('usemin', function(){ return gulp.src('version-client/app/views/**/*.php') .pipe(usemin({ js: [uglify], css: [autoprefixer, cssmin]...
asked by 09.03.2018 / 12:58
1
answer

Trying to get property 'name' of non-object Laravel Eloquent Error pulling foreign key data [duplicate]

I'm trying to use relationships to display data on the screen but I get the following error:    Trying to get property 'name' of non-object In this command $recebimento->planoconta()->get()->first()->nome MODEL ACCOUNT...
asked by 15.02.2018 / 14:28
1
answer

Laravel 5 Eloquent View Blade with Foreign Key?

I get the following error:    Trying to get property 'name' of non-object I have a list of Suppliers and Payments, and I am using the following syntax to retrieve the Vendor name through the foreign key of the payments. <td>{{$pag...
asked by 05.02.2018 / 16:56