Questions tagged as 'laravel-5'

3
answers

Routes en laravel 5.5

Dear I'm learning laravel 5.5 and I'm trying routes, in routes / web add the following route Route::get('/usuarios',function (){ return 'usuarios para agregar'; }); so that when the link put link I returned the string but ins...
asked by 02.02.2018 / 20:12
2
answers

Create new tables in laravel

I am new to laravel and I have a problem I have already created a database with 3 tables with filled data and when I create a new migration I want to add the new table. I was using php artisan migrate:refresh but that updates me and...
asked by 31.01.2017 / 20:57
2
answers

change the default home laravel

Someone knows how to change the welcome.balde.php that has the default laravel and change it to home.blade.php . I tried configuring it in the reoutes.php but I still get the welcome, do you have to make a configuration to run?...
asked by 11.04.2017 / 18:24
2
answers

Error when upgrading laravel 5.3 to 5.4

When upgrading to laravel 5.4 the following error occurred: Does anyone have any ideas? I can not even access the main route. I followed all the steps of the upgrade but no idea why this happens, I'm upgrading from version 5.1, 5.2, 5.3...
asked by 27.11.2018 / 14:29
1
answer

Problem when creating object with tinker (Laravel)

I created a migration in the following way: public function up() { Schema::create('partesdiarios', function (Blueprint $table{ .... Effectively, create the daily shares table in MySQL. But when I want to create an object from tinker it retu...
asked by 20.12.2018 / 14:18
1
answer

Query with Join that works in Phpmyadmin does not work in Laravel

I have problems passing a traditional query to laravel. It works on phpmyadmin, but when I pass it to Laravel, it returns 0 records. TALUMNOS TABLE provincia (int) dni (int) nombre (varchar) TESCUELAS TABLE: provincia (int) dni (in...
asked by 29.07.2018 / 01:00
3
answers

laravel 5.5 I need to include a variable inside a json type array

I need to include $ token within the $ user array where I save my query, I'm using the laravel 5.5 framework protected function respondWithToken($token,$documento){ $user = User::select('id','nombre','email')->where('documento', $docum...
asked by 09.05.2018 / 21:39
1
answer

Read reply json at Axios Laravel Vue

I have a method that captures the information sent by the vue view (Profile.vue) through a PUT generated by Axios, the problem lies in the following, when the data is updated (using the myProfile method of the UserController driver), axios it ca...
asked by 14.04.2018 / 20:46
1
answer

redirect view with @if in laravel

I am trying to redirect to a view in laravel if the user fulfills a membership (membership = stage), but this only returns text to me instead of the view, my code is as follows: @if (Auth::check()) @if(Auth::user()->etapa == 1) @retur...
asked by 14.06.2018 / 04:02
2
answers

Two columns with the same name

I have a problem with the query I'm doing, when joining two tables with a join I do not see a column because they have the same name. I tried to use a select as I normally do in sql but it still does not appear. $user = DB::table('app_registro...
asked by 19.02.2018 / 14:29