Questions tagged as 'laravel'

1
answer

Trying to get property of non-object

Well folks, my project is throwing this error at me now, I am quite new with Laravel the truth and I do not understand very well at the moment, but the important thing is to learn among all. I hope you can help me. He launches me directly....
asked by 20.09.2016 / 06:47
1
answer

Error 500: When uploading site in Laravel to Hosting, how to put the whole project in public_html?

Hire a Hosting service (Donweb) with an initial plan, which according to the provider's support, does not allow me to access external folders of public_html. So, my whole project has to be contained within it. I have seen several videos, wher...
asked by 14.10.2016 / 22:25
1
answer

Problems with where nested in Query Builder Laravel 5

I have the problem when I pass empty parameters in a filter. I am using a scope where I filter by several parameters, including year, month, province, and name. About Name there are no problems since I use a like. But in others when filter, t...
asked by 13.10.2016 / 03:04
2
answers

Go to a page in a controller

You see, I have a User table with a variable called role, for which I have this form: @extends('layouts.app') @section('content') @Logged() @include('partials.errors') <form method="POST" action="../puesto"> {{ csrf_field() }} &...
asked by 19.02.2018 / 09:42
3
answers

I got this error in one of the drivers in laravel. "Can not use scalar value as an array", how should I solve it?

$formacademica = new Formacademica; $userCorreo = Auth::user()->email; $userCorreo = Auth::user()->email; /*Aqui solo capturo el usuario que ha iniciado sesión*/ $aspirantes[] = DB::table('aspirantes')->where('correo_asp',$userCo...
asked by 04.12.2018 / 22:56
1
answer

Many to Many in Laravel

I wanted to ask you the following question: It turns out that I have a few tables that require a "many to many" relation (eg, users and roles, assuming primary key for both as 'id'). The issue is that I have the doubt as a "best practice"...
asked by 07.11.2018 / 17:00
1
answer

Disabling a section of code in a specific URL of laravel website [closed]

I have a web page and I use a general blade layout to extend it to all the pages that require it. On a certain page, suppose localhost: 8000 / book would like a section of code that extends from the general layout not to be displayed, is it poss...
asked by 21.06.2017 / 23:42
1
answer

Can a record be created when a php artisan migrate is done?

Comrades the question that arises is: Can a record be created automatically when the migration is created? That is, when you make the **php artisan migrate** and create the migration within one of the tables, a record is created....
asked by 29.03.2017 / 18:52
2
answers

Problem when validating image with Request

I am developing in Laravel 5.1 and I am having a small problem when validating a form, I am using Request for this, the rules I have are the following: ProductoCreateRequest public function rules() { return ['nombre' => 'r...
asked by 21.03.2017 / 01:53
1
answer

Print the value of a variable with php [closed]

How can I get the value of a variable that comes from a query to the database? I want to know what value that query brings me and for that I need to print it in console.     
asked by 28.03.2016 / 06:02