Questions tagged as 'laravel'

1
answer

When and where to handle exceptions with Laravel in the development of an API

I have some questions when it comes to handling errors in an API. Should we always handle an exception? Would it be correct to return a message like the one below? Return: { "success" : false, "error" : { "message" : "<msg...
asked by 13.08.2018 / 16:37
0
answers

Problem with Laravel API in production

I deployed an API in laravel. The problem that is occurring is the following: the online API always returns me '200 ok', without reaching at least the login controller. With this same API, I ran the test on localhost and it worked. Do I need to...
asked by 15.06.2018 / 17:10
1
answer

Authenticate in another PHP / Laravel application

I am logged in to this PHP application, in this application has a list of users as shown below: ByclickingthisLogarbuttonIwanttoberedirectedtoadashboardthatisinthesamedomain,butusesLaravelandrequiresauthenticationasshownbelow: I have the a...
asked by 18.07.2018 / 16:41
0
answers

Angularjs passing data to Modal

My problem is loading information into a modal. Controller Parent: App.controller('adminSolicitacoesCtrl', function($scope, $location, $auth, solicitacaoAdminService, EmpresaService, $filter, $rootScope) { $scope.solicitacao_modal...
asked by 07.06.2018 / 21:00
0
answers

SOAP-Laravel-CRUD

I'm using laravel , ubuntu , apache2 , and the zendframework/zend-soap library. I've been able to client-soap and I'm trying to server-soap . I was able to do a select with server-soap on remote BD (m...
asked by 18.05.2018 / 16:27
0
answers

Composite key in laravel migrate

I would like to create a double primary key with an auto increment field "id" and "id_lement_time", but it gives error and I do not know the correct way to do it, if someone can help me, I would appreciate it! > Migrate Schema::create('disci...
asked by 18.05.2018 / 00:44
1
answer

What convention do you use to organize Laravel Views?

I would like to know how best to organize Views in Laravel, in which directory it is best to leave the includes, templates and main views. Also what is better to put in the (navbar? layouts? sidebar?) what I can put as a template? I'm learnin...
asked by 14.05.2018 / 20:49
2
answers

Creation of tables with cardinality 1: N

I have two tables, PRODUTOS and INSUMOS . To create a precise product of various inputs, I would like to know how to proceed with this relationship in MySQL. Should I create a table called COMPOSICAO and work on it only with...
asked by 30.08.2018 / 20:26
0
answers

How to load multilevel relationships?

Hello, I'm trying to search 3 related tables as follows contracts belongsTo - > companies hasMany - > company_addresses. I would like to display company_addresses data in the contracts view. contracts id – integer company_id - in...
asked by 18.04.2018 / 18:38
2
answers

How to pass data to the view automatically on the Laravel Resource Controller?

I'm using Laravel 5.6 with Resource Controller. My show method: public function show(Artigo $artigo) { $artigo = $artigo->first(); return view('painel.revista.detalhes', compact('artigo')); } Would it be possible to ignore the li...
asked by 20.03.2018 / 21:26