Questions tagged as 'laravel'

1
answer

Add items within an array to save later

Hello, I have the following situation and would like a tip if possible as would be the logic for implementing this procedure in my Laravel PHP application. I'm creating a stock system, in the moving part, I have an Input view where I select i...
asked by 23.03.2017 / 21:25
2
answers

Laravel's JSON return is asynchronous?

I have an API in Laravel, with a show(id) method that returns a response->json($array) . Within this function I have a foreach , my problem is in response , which does not wait for the foreach to finish and the...
asked by 16.03.2017 / 21:59
0
answers

Migrate Kohana to Laravel

In kohana bootstrap I have the following configuration Kohana::init(array( 'base_url' => 'myapp', )); How do I migrate to Laravel? Because in Laravel I have the following url www.example.com/myapp/ and I can not get the css at...
asked by 21.03.2017 / 15:42
1
answer

How to pass data from two tables in a View?

I'm trying to pass data from two tables ( SQL ) to a HTML table structure. When I try to pass my View , Laravel does not recognize the relationship method. View - atualizador.blade.php @extends('layou...
asked by 17.03.2017 / 18:29
1
answer

Errors with Put and Delete Methods - MethodNotAllowedHttpException - Laravel and Angular

Hello, follow my fight with angular and laravel. Now I'm having trouble with the put and delete methods, I did nothing more than I had before in my code, I'm just adding more models - where I copy the previous code and dumb the names. But...
asked by 23.02.2017 / 17:28
0
answers

With Eloquent is not bringing any value

I'm using Laravel 5.2, I'm trying to 'join' n to m with 'With' from 'Eloquent' but it does not return any value even though they exist in the database. Class Person: class Pessoa extends Authenticatable { const CREATED_AT = null; con...
asked by 24.02.2017 / 19:55
1
answer

Laravel + l5-repository

Expensive, I'm trying to install the l5-repository and give the command: composer require prettus/l5-repository and the following appears: Using version ^2.6 for prettus/l5-repository ./composer.json has been updated Loading compo...
asked by 12.04.2017 / 09:21
0
answers

SQLSTATE [HY000]: General error: 2053 when I call a Stored Procedure?

I am using Laravel 4.2 and am calling a Stored Procedure from a database on the server. Locally it works fine, but on the server, using the same DB, it gives error. The call is as follows: $result = DB::select('CALL sp_precos_...
asked by 07.02.2017 / 18:21
1
answer

How to define providers that only work in local environment with Laravel 4?

In Laravel 4, we have a file called app/config/app.php , which we use to define configuration information that will be used in the application. When I am in a development environment, I configure the application to process app/config...
asked by 06.02.2017 / 14:58
1
answer

How to run php artisan migrate on the web server

I passed the Laravel 5.4 project for hosting, but now I do not know a way to use php artisan migrate to create my tables in the database. I created a file in the public folder named installation.php with the following code: <?php...
asked by 24.02.2017 / 12:59