Questions tagged as 'laravel'

2
answers

Laravel 5.3 Trying to get property of non-object

Good morning! I followed what is said in this tutorial to fill values in a view: link And I did the same scheme on my controller: public function select_cursos_disciplinas() { $cursos = DB::table('select * from cursos'); $discipli...
asked by 03.11.2016 / 12:58
1
answer

Two Functions __construct () in Same Project

I can not have two construct () functions in my Laravel project? You have one in the Controller.php and wanted to mount a __ construct on another Controller. It only gives me variable errors on the pages ... I'm using a middleware...
asked by 16.05.2016 / 15:36
2
answers

What is the difference between App \ Http \ Requests and Request

What difference in Laravel, from using use App\Http\Requests to use Request ?     
asked by 26.05.2017 / 17:31
2
answers

Sort items from a Collection from a predefined value

I have a Collection of Eloquent and would like to sort it by two fields at the same time being one of them a predefined value. Ex: this Collection has several objects of type Categoria and I want to sort it so that catego...
asked by 18.07.2017 / 16:42
1
answer

Why are my custom error pages not being called?

My custom error page is not being called. OS: Linux Ubuntu PHP 7 / Laravel 5.5 I have already created the folder "resources / errors" and in it the file "404.blade.php" I have already given permission on the OS to the folder I have a...
asked by 28.08.2017 / 15:49
1
answer

GetType () Laravel

I'm trying to get the column type of the tables from my BD , and how can I use PHP with Laravel I've tried using GetType to get the types and show on view . But the code is only returning Object . Here is t...
asked by 30.01.2017 / 14:11
3
answers

I can not access the property of the object. Laravel / Eloquent ORM

I can not access the properties of the related object. Well, I have a class named FileClass , it has the following relationship with class FileServico : FileClass.php public function fileServico(){ return $this->has...
asked by 05.06.2014 / 18:59
2
answers

How to do a search with Query Builder in Laravel?

I need to display the name of the doctor who requested a patient report, but with Laravel I tried to show this information in View like this: {{laudo->paciente->medico->nome}} Then I received the error message:    Trying to g...
asked by 01.11.2017 / 15:19
1
answer

Blade OR syntax within the Laravel Collective input value

The following input works normally, but when I move it to the Laravel Collective syntax, it says that the $servico variable does not exist. It does not even exist, so it should display the value null ). The syntax of...
asked by 05.10.2017 / 13:30
1
answer

Install Laravel Site on Windows Server

I've never had this experience of putting a website on the air using Windows Server 2012 on Locaweb. I placed the site in a folder called 'sitenovo'. And when I run the site, it does this:    HTTP Error 500.0 - Internal Server Error   C: \...
asked by 02.07.2016 / 16:50