Questions tagged as 'laravel'

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

capture more than 1 value with ajax and laravel 5

I have in my view two selections with data, which I want to capture their values. I can do it with a select and the $.get method, but I do not know how to do it so I can capture two data and take it to a controller. I do not know if my...
asked by 12.07.2016 / 02:56
1
answer

How to delete a data within the same index in Laravel

I work in Laravel 5.7, I have a Model Locations, a controller LocationsController, and since there are so few data that this model will have (and its respective table in the database) I have decided to make their respective crud in the same inde...
asked by 17.12.2018 / 22:24
2
answers

mkdir permission denied vagrant

I'm using windows 10 and vagrant. When I access vagrant ssh I want to create a folder within Code, which is where all my projects are. Now, I want to create a folder inside Code and I get the error:    [ErrorException] mkdir (): permission...
asked by 31.08.2016 / 16:17
1
answer

Laravel - Relationships using Eloquent

I'm trying to create a field relationship using eloquent de laravel, I currently have it working like this: $empleos = Empleos::latest()->paginate(50); return $empleos; I return all jobs correctly, my problem is that there are fields tha...
asked by 07.12.2018 / 00:57
1
answer

Error running the composer: JIT compilation failed: no more memory in phar:

When I run composer, I receive the following error:    Fatal error: Uncaught ErrorException: preg_match_all (): JIT   compilation failed: no more memory in phar:     
asked by 12.12.2018 / 16:23
1
answer

How to work correctly with entities that are related in laravel?

I have a model called Inmueble , its attributes are: Property Number Location (in flame database id_ubicacion ) Type of Property (in flame database id_tipo_inmueble ) Area Description This model has its respectiv...
asked by 13.12.2018 / 15:39
1
answer

Create Api routes in Laravel 5.2

Because the file is not in this version and I mean routes/api.php . This version only includes a single file routes.php my problem is that I could define api routes in this version. I'm currently doing it in a web: Route::get('/ap...
asked by 11.12.2018 / 19:25
2
answers

Laravel problem with pivot table

I have two tables: one for travel and another for clients. In the pivot table it relates to each other in ManyToMany. In the migration of the pivot table I have the following: <?php use Illuminate\Support\Facades\Schema; use Illuminate\...
asked by 04.12.2018 / 21:59
1
answer

Laravel migration. Problem with timestamp

I have a migration for a travel table. The code is as follows: <?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateToursTable extends Migration {...
asked by 03.12.2018 / 00:20