some styling in tables
This commit is contained in:
@@ -45,3 +45,21 @@ if (!function_exists('schemas_path')) {
|
||||
return storage_path("lucent/lucent.schemas.json");
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('lucent_file')) {
|
||||
function lucent_file(\Lucent\Record\QueryRecord $record): string
|
||||
{
|
||||
$path = $record->_file->path;
|
||||
return app()->make(\Lucent\Channel\ChannelService::class)->channel->disks[$record->_file->disk] ."/". $path;
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('lucent_image')) {
|
||||
function lucent_image(\Lucent\Record\QueryRecord $record, string $template): string
|
||||
{
|
||||
$path = $record->_file->path;
|
||||
return app()->make(\Lucent\Channel\ChannelService::class)->channel->disks[$record->_file->disk] . "/templates/$template/$path";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user