Questions tagged as 'laravel'

1
answer

How to get a PHP object in an ajax function

I have the code below that does a check in my controller and it returns me a count of my request. What I wanted is that in the success of my Jquery ajax I would capture this value to do some javascript conversations in my code. I'm using t...
asked by 18.02.2016 / 17:05
1
answer

Saving data with hasMany relationship

I'm trying to do an update and three tables related to Laravel, the past data comes from a single view, and the relationships have already been made, it should be the action update of my controller that is not right below. Update of Corret...
asked by 04.02.2016 / 18:14
1
answer

Install PagSeguro / PHP in Laravel

No composer.php I'm putting it like this: "require": { "laravel/framework": "4.2.*", "pagseguro/php": "dev-master", #"pagseguro/php": "2.5.0", "cagartner/correios-consulta": "0.1.*", "intervention/image": "2.*" }, But...
asked by 12.05.2015 / 22:20
1
answer

"stdin is not a terminal" when I run Envoy - Laravel 4.2

One month ago everything is working well, until I went deploy a project and ... When you run the command envoy run deploy , using the settings below ... @servers([ 'mt' => '[email protected]' ]) @task('deploy', ['on' => '...
asked by 26.02.2015 / 01:41
1
answer

Laravel + Android

I am starting my studies in the laravel framework and I have seen that it is very useful to create websites, however, is it possible for me to consume these routes in native android? Because the routes are usually linked to views and not to the...
asked by 03.11.2018 / 17:28
1
answer

Format array of dates

I have a Laravel application with the following code: private function todosRegistros($id, $colunas = ['data', 'nivel']) { return Leitura::select($colunas)->where('estacao_id', $id); } public function _24horas($estacao_id) { return...
asked by 15.10.2018 / 21:44
1
answer

How to filter by cities States in Laravel?

I made a filter in laravel and it works perfectly but nevertheless it brings all the cities. It does not bring the specific cities of that state. I do not know if this filter has to go there in the laravel controller, how does it work for jquery...
asked by 04.10.2017 / 15:45
2
answers

What is the purpose and how to use Broadcasting in Laravel?

Version 5.3 of Laravel has some news, such as Broadcasting , for example. I read the documentation, but I could not quite understand it. I have seen that it has some relation (if direct or indirect, I do not know) with the Websockets. I a...
asked by 05.09.2017 / 13:47
1
answer

Place Laravel on Default Level / Directory [duplicate]

I have a Laravel application and I deploy it via git to my server. But the problem is that the server always throws the deploy into the public folder , and Laravel originally is meant to stay up . .htaccess or Laravel itsel...
asked by 26.10.2015 / 16:07
3
answers

Blade default value laravel 5.2

I have the following code <strong class="primary-font">Complemento</strong> <p>{{ $produto->complemento or 'Esta produto não tem complemento' }}</p> I need the system to display the text 'This product has no compl...
asked by 02.08.2016 / 21:15