Open santizix opened 1 year ago
Hi, I think the problem is here
final public function getDiskList(): array
{
$id = Auth::id();
if ($id === 1) {
return [
['public'],
];
}
return ['public', 'Ingenieria'];
}
You are return array in array, try this
final public function getDiskList(): array
{
$id = Auth::id();
if ($id === 1) {
return ['public'];
}
return ['public', 'Ingenieria'];
}
Hi, I'm trying to make it only show some discs depending on the id but I get the error that I put as title `<?php
namespace App\Http;
use Illuminate\Support\Facades\Auth;
use Alexusmai\LaravelFileManager\Services\ConfigService\ConfigRepository;
class TestConfigRepository implements ConfigRepository { // implement all methods from interface
final public function getDiskList(): array { $id = Auth::id();
}`