mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 23:18:10 +00:00
Compare commits
2 commits
ec704d8d83
...
425dbf6b3f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
425dbf6b3f | ||
|
|
495bbe7b7e |
2 changed files with 6 additions and 6 deletions
|
|
@ -236,7 +236,7 @@ class Plugin extends Model
|
|||
// This handles: {% for item in collection | filter: "key", "value" %}
|
||||
// Converts to: {% assign temp_filtered = collection | filter: "key", "value" %}{% for item in temp_filtered %}
|
||||
$template = preg_replace_callback(
|
||||
'/{%\s*for\s+(\w+)\s+in\s+([^|]+)\s*\|\s*([^}]+)%}/',
|
||||
'/{%\s*for\s+(\w+)\s+in\s+([^|%}]+)\s*\|\s*([^%}]+)%}/',
|
||||
function ($matches) {
|
||||
$variableName = mb_trim($matches[1]);
|
||||
$collection = mb_trim($matches[2]);
|
||||
|
|
|
|||
|
|
@ -104,11 +104,11 @@ new class extends Component {
|
|||
'markup_code' => 'nullable|string',
|
||||
'markup_language' => 'nullable|string|in:blade,liquid',
|
||||
'checked_devices' => 'array',
|
||||
'playlist_name' => 'required_if:selected_playlist,new|string|max:255',
|
||||
'selected_weekdays' => 'nullable|array',
|
||||
'active_from' => 'nullable|date_format:H:i',
|
||||
'active_until' => 'nullable|date_format:H:i',
|
||||
'selected_playlist' => 'nullable|string',
|
||||
'device_playlist_names' => 'array',
|
||||
'device_playlists' => 'array',
|
||||
'device_weekdays' => 'array',
|
||||
'device_active_from' => 'array',
|
||||
'device_active_until' => 'array',
|
||||
];
|
||||
|
||||
public function editSettings()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue