if (empty(${{ $config->modelNames->camel }})) { @if($config->options->localized) Flash::error(__('models/{{ $config->modelNames->camelPlural }}.singular').' '.__('messages.not_found')); @else Flash::error('{{ $config->modelNames->human }} not found'); @endif return redirect(route('{{ $config->prefixes->getRoutePrefixWith('.') }}{{ $config->modelNames->camelPlural }}.index')); }