Questions tagged as 'laravel-5'

1
answer

Intermediate Table and Laravel Relations 5.4

Hello friends, I'm working on an api rest in laravel 5.4 and so far I need to make a relationship between two tables, creating an intermediate one. I'm just not sure if I'm doing it right and I wanted your opinion and advice: for example table r...
asked by 12.08.2017 / 16:48
1
answer

Foreign variable is not captured by form

See, I have this table: Schema::create('fotos', function(Blueprint $table){ $table->increments('id'); $table->string('foto'); $table->string('nombre'); $table->date('fecha'); $table->u...
asked by 07.11.2018 / 11:19
3
answers

can the value of a numeric variable that comes in an array be converted, as a numeric value?

I have a number value that comes from an array, $valorusuario = $request->valorusuario; Is it an x and y number, when I see it with dd () "1" appears, is it possible to convert this variable to a numeric value? It's just th...
asked by 13.11.2018 / 01:31
3
answers

How is the laravel timestamp used?

What happens is that you create a new product form and I want it to be the same as the registration form delivered by laravel, that is, when you insert the product, the created_at and updated_at are automatically filled (already create the colum...
asked by 17.10.2018 / 21:20
1
answer

Error Call to undefined function storage_patch () when I run a seeder in laravel

I'm trying to run a seeder but I get the error: Call to undefined function storage_patch() I could not find the one. I have a table in migration called user with the sgts fields: use Illuminate\Support\Facades\Schema; use Illuminate\...
asked by 26.10.2018 / 21:08
1
answer

Problem with Trying to get property of non-object Laravel

I'm new to programming and stackoverflow and I'm getting this error    ErrorException (E_ERROR)       Trying to get property of non-object (View: /home/hernan/laravel/Store/Tienda/resources/views/user/compra_producto/index.blade.php) I ex...
asked by 22.06.2018 / 21:01
1
answer

How do I export an excel in laravel with stored procedure?

I am trying to export an excel with a stored procedure that I have created, for this I sent the parameters and everything is fine, it returns a complete array, but there are some null values. Then I do the following (I execute the query with...
asked by 31.05.2018 / 17:33
1
answer

Error entering URLs

You see, in the code my user bar I have added this: @if(auth()->user()) <img class="card-img-top" style="width: 50px; height: 50px;" src="{{auth()->user()->ruta()}}"/> @endif The route function refers to this code in User.php...
asked by 03.05.2018 / 22:06
1
answer

Vue does not show the data in the view

I have a small api made in Laravel, it is working without problems and all the tests in Postman are successful, the problem is when I try to show the data by the Vue view, it simply does not show me anything, not even errors This is the code...
asked by 04.05.2018 / 01:11
2
answers

Object of class stdClass could not be converted to string

From the controller I execute the following query: $pruebas = DB::select( DB::raw("SELECT t1.id, t2.name AS 'Type', t4.company AS 'Company', t4.name AS 'clientName', t4.lastname AS 'clientLastName', t4.email AS 'Co...
asked by 16.03.2018 / 17:20