- add archive disk to config\filesystems.php

- correct getPath method with public path in app\models\File.php
- composer updates
This commit is contained in:
Arno Kaimbacher 2020-02-26 09:55:31 +01:00
parent 6d0638e201
commit 795313d3dd
4 changed files with 12 additions and 9 deletions

View file

@ -5,7 +5,6 @@ use App\Http\Controllers\Controller;
use App\Models\Dataset;
use Illuminate\Support\Facades\Auth;
use Illuminate\View\View;
use Illuminate\Http\Request;
class PublishController extends Controller
{
@ -28,7 +27,6 @@ class PublishController extends Controller
//"select * from [documents] where [server_state] in (?) or ([server_state] = ? and [editor_id] = ?)"
$datasets = $builder
->where('server_state', 'reviewed')
->get();
return view('workflow.publish.index', [
'datasets' => $datasets,

View file

@ -64,7 +64,8 @@ class File extends Model
*/
private function getPath()
{
return storage_path('app/public/' . $this->path_name);
//return storage_path('app/public/' . $this->path_name);
return public_path('storage/' . $this->path_name);
}
public function exists()