Questions tagged as 'lumen'

1
answer

Connect FTP with Lumen

I'm doing an API with the Lumen framework and I would like to upload files of the application to an FTP only that I have not seen any documentation about it and I wanted to know if there is any documentation on how to upload files to an FTP with...
asked by 28.11.2017 / 21:30
2
answers

Error: SQLSTATE [42000]

I have the following error when executing php artisan migrate I'm using Lumen 5.6    In Connection.php line 664:                                                                                                                     ...
asked by 26.04.2018 / 23:58
1
answer

Execute lumen migration using docker

I have a'docker-compose.yml' file where I have: MYSQL and php separated in containers. I enter the container with php, to execute the command'php artisan migrate', in the first instance it tells me that the pdo_mysql driver is missing, that I...
asked by 25.12.2018 / 07:07
1
answer

Lumen (Laravel) create a custom helper file

I have created a file in the path app/Helpers/helper.php where I want to include the helpers I need for my project in lumen, at the moment I have this code <?php namespace App\Helpers; /** * Generate a "random" alpha-numeric strin...
asked by 27.02.2018 / 13:31
0
answers

Micro Framework Lumen - Security Token

I have created an api rest in Lumen , I have already uploaded it to my hosting and everything works perfectly. The issue is that it has no security, I mean it does not have a "session" so to speak when they log in, I've been researching and I f...
asked by 18.08.2017 / 06:36
0
answers

Login system in Lumen

It's my first experience with the Lumen framework (version 5.4.5) and I'm having problems with the login system. The official documentation does not say anything beyond how to obtain the user identified in the system, and what directives to u...
asked by 17.03.2017 / 12:20
2
answers

Syntax error or access violation: 1059 Identifier name '' is too long lumen

I'm migrating to the database with a lumen, and I get the error that the primary key is too long. What I want is to put the three columns as composite keys. public function up() { if(!Schema::hasTable('asignaturas_alumno')){ Sch...
asked by 29.03.2017 / 15:13
1
answer

Is not the attribute assigned to me in laravel lumen?

I am trying to call the attribute but it gives me as null if I call it from another function, does anyone know that it may be happening? class ArchivoController extends Controller { public $usuario; function pasar(Request $request) {...
asked by 16.03.2018 / 15:35
1
answer

How to select only the last array of an array object that happened to laravel lumen?

because that I put the image of postman arrives me the object of array from angular and I want to select only the last one This is my lumen code I've tried with this but I get an error it may be from the library but I do not know use Illum...
asked by 03.03.2018 / 23:00
1
answer

Run unit tests with Phpunit in lumen

Hi, I have a project of lumen with the file phpunit that comes by default that is just like this one <?xml version="1.0" encoding="UTF-8"?> <phpunit backupGlobals="false" backupStaticAttributes="false" bootstra...
asked by 28.02.2018 / 14:01