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...
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...
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...
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...
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...
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...
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...
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...
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: \...