Questions tagged as 'laravel-5'

1
answer

How to implement multiple authentication drivers

I am building a system where two types of authentication are required, the first one for ordinary users, who will go to the front of the store, and the second for administrators, who will access the admin environment. The problem: by default...
asked by 05.05.2015 / 12:05
0
answers

Result of relationship with self-relationship?

Using the self-relationship with you the following result.: Collection {#335 ▼ #items: array:7 [▼ 0 => Post {#266 ▶} 1 => Post {#267 ▼ #fillable: array:3 [▶] +incrementing: false #connection: "sqlite" #t...
asked by 05.01.2019 / 01:38
0
answers

Calling Function in View - Laravel 5.5

Well, I've been working on PHP for some time now. I'm calling a function in my View as follows: {{ $result_resumo = app(App\Http\Controllers\Site\SiteController::class)->NoticiasResumo($dados_noticias->post,80, FALSE, "") }} Now I...
asked by 05.01.2019 / 13:10
1
answer

throw new MethodNotAllowedHttpException ($ others); Laravel 5.7 Send HTML Form

When creating the update method, Laravel is giving the error. protected function methodNotAllowed(array $others) { throw new MethodNotAllowedHttpException($others); } View {!! Form::model(array('route' => array('colaboradores.upd...
asked by 23.12.2018 / 19:53
0
answers

error when trying to execute npm commands in the terminal

I'm trying to use the node's nmp command to work with laravel, but I get the following error; Pc1@Fund-Sala2-pc1 MINGW64 /c/Laravel/teste $ npm install && npm run dev npm WARN deprecated [email protected]: Browserslist 2 could fail o...
asked by 07.12.2018 / 19:10
1
answer

Heroku downgrade php 7.3. * to 7.2. *

I do not know how I upgraded the version of php in heroku to version 7.3, however this version (7.3. ) is causing several bugs in the application, so I can downgrade to version 7.2. ? I've tried to change the version in composer.json to: "r...
asked by 17.12.2018 / 13:23
0
answers

Input of Excel data in mySQL database using PHP

I am performing data insertion in a Mysql database using PHP and an excel spreadsheet but I'm having trouble completing the insertion in the database. public function uploadFile(Request $request){ $conexao = \DB::table('tb_pwbi_analytics_ac...
asked by 05.12.2018 / 21:16
0
answers

When I try to login to my application that uses an API in Laravel the following error appears:

LoginMethodloginUsuario(){this.usuariosProvider.loginUsuario(this.usuario).subscribe(res=>{if(res){if(res.token){console.log(res);this.usuariosProvider.setStorage("usuario",res); this.ativaMenuLogin(); this.cancelar();...
asked by 29.11.2018 / 04:07
0
answers

How to do UPDATE 1 to 1, with four tables in laravel

I'm working with a database already populated. It has four tables (Student, Clinical, Family, and Compulsory Type), where Student receives foreignkey from the three tables; Model Student class Aluno extends Model{ public $timestamps...
asked by 28.11.2018 / 12:14
0
answers

Multiples .env laravel 5

I have a domain on the server where I uploaded an application in laravel. I created a subdomain and uploaded the same application to this subdomain, but the subdomain is fetching information from the same .env, which is at the root of the projec...
asked by 02.12.2018 / 19:49