0
I have a problem with my code. I can normally insert the file into the Storage folder
$pathfile = $this->path_monografia . $monografia->id . DIRECTORY_SEPARATOR . "monografia.pdf";
Storage::disk('public')->put($pathfile, File::get($request->file('anexo')));
$monografia->caminho = Storage::disk('public')->url($pathfile);
Only when I access it through the view I get an error:
<tr ng-repeat="monografia in monografias | startFrom:(currentPage - 1) * pageSize | filter:search | limitTo:pageSize">
<td><a href="" ng-href="@{{monografia.caminho}}" > @{{ monografia.titulo }} </a> </td>
<td><a href="" ng-href="@{{monografia.caminho}}" > @{{ monografia.autor }} </a> </td>
<td><a href="" ng-href="@{{monografia.caminho}}" > @{{ monografia.orientador }} </a> </td>
<td><a href="" ng-href="@{{monografia.caminho}}" > @{{ monografia.nivel }} </a> </td>
<td><a href="" ng-href="@{{monografia.caminho}}" > @{{ monografia.publicated_at | date:' dd/MM/y' }} </a> </td>
Where monograph.caminho refers to the url that was saved in the database. Thank you from now
You can tell me which. the path recorded in the bank
– novic
/Storage/monographs 9 monograph.pdf that would be one for example. so the public disk is linked to app/public in the Storage folder
– Matheus Lima
Has the procedure described in the documentation? https://laravel.com/docs/5.5/filesystem
– novic