Questions tagged as 'laravel-5'

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

Relationship at Laravel

Talk about it, I'm starting to use laravel and I have a problem when selecting some data. I have the following tables: users , jobs , projects , job_user . The table relationship of users and jobs is...
asked by 12.06.2018 / 03:39
1
answer

Laravel: Problem with foreach

public function extract(){ $occupation = Occupation::join('invoices', 'occupations.id', '=', 'invoices.occupation_id') ->leftJoin('payments', 'invoices.id', '=', 'payments.invoice_id') ->select('occupations.*',...
asked by 11.06.2018 / 21:34
0
answers

Use the DB increment function to update from an array

It is as follows: I have an array in javascript with the id that I want to increment using DB::table('team').increment->('points', 1000). How should I make my controller take this array and increment only the ids that are in it?     
asked by 07.06.2018 / 23:21
0
answers

Laravel shares session

I have a system A where I store a session $login = $request->input( 'login' ); $request->$session()->put('login', $login ); And a system B that stores the session: $request->$session()->put('tentativa', 1); Every tim...
asked by 28.05.2018 / 18:50
0
answers

How to test Graphql in the Laravel framework

I'm creating an application in Laravel 5.6 with Graphql, from this library: link I was able to generate everything normally, but I'm having a hard time creating unit tests for application. Any alternative how to test my requests for Grap...
asked by 26.05.2018 / 08:50
1
answer

Configure Application on Laravel on Production Server

Someone who has already performed application deploy in Laravel on Centos 7 Production Server to give me a help ?? I have already made all the basic settings possible, I created VirtualHost pointing to the public folder, etc ... However I can...
asked by 26.05.2018 / 21:09
0
answers

Notifications same as facebook for PHP

What is the best way to develop notifications that work just like Facebook when someone has a post? I am using PHP & Laravel 5.5. Does anyone know or have seen this in Angular / VueJS / Javascript?     
asked by 17.05.2018 / 15:51
0
answers

Laravel 5.6 - Error passing 2 parameters in url

Hello, I'm trying to pass 2 parameters to my controller using url and I'm getting the following error message:    Missing required parameters for [Route: teacher.average_faults] [URI:   teacher / average-faults / {team} {matter}]. My view...
asked by 12.05.2018 / 21:18
0
answers

Laravel: How to work access levels? [duplicate]

Good evening, I'm developing a system with Laravel 5.6, and I have a table of USERS that has the attribute level. This attribute can be either USER or ADMIN. How do I block page / dashboard access if the user has a USER level?     
asked by 15.05.2018 / 02:18