Skip to content
This repository was archived by the owner on Dec 14, 2019. It is now read-only.

Commit 8e5136c

Browse files
authored
Merge pull request #70 from Rinze-Smits/master
Fix for issue #69 (use fully qualified name for "Arr" in eval'd code).
2 parents d91b126 + 75d41fc commit 8e5136c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/views/includes.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ function tinx_query($class, ...$args)
126126
* For "last" variable, returns "::latest()->first()" if class DB table exists, otherwise "new" (if 'tableless_models' set to true).
127127
* */
128128
Arr::set($GLOBALS, 'tinx.names', {!! var_export($names); !!});
129-
$latestColumn = '{{ Arr::get($config, 'latest_column', 'created_at') }}';
129+
$latestColumn = '{{ Illuminate\Support\Arr::get($config, 'latest_column', 'created_at') }}';
130130
@foreach ($names as $class => $name)
131131
try {
132132
${!! $name !!} = {!! $class !!}::first() ?: app('{!! $class !!}');

0 commit comments

Comments
 (0)