HEX
Server: Apache
System: Linux webm013.cluster123.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: lesanew (165608)
PHP: 8.3.31
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/lesanew/anestetues2/vendor/roots/acorn/src/Roots/Acorn/Sage/Concerns/FiltersViews.php
<?php

namespace Roots\Acorn\Sage\Concerns;

use function Roots\view;

trait FiltersViews
{
    /**
     * Search for a compiled Blade partial when resolving the comments template.
     *
     * Filter: comments_template
     *
     * @param  string  $file
     * @return string Path to comments template
     */
    public function filterCommentsTemplate($file)
    {
        if (file_exists($file)) {
            return $file;
        }

        return view()->exists('partials.comments') ? view('partials.comments')->makeLoader() : $file;
    }

    /**
     * Use `forms/search.blade.php` for the search form.
     *
     * Filter: get_search_form
     *
     * @return string Rendered view
     */
    public function filterSearchForm($view)
    {
        return view()->exists('forms.search') ? view('forms.search') : $view;
    }
}