Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with subdomain #95

Closed
RenatoVi opened this issue Aug 25, 2023 · 1 comment
Closed

Problem with subdomain #95

RenatoVi opened this issue Aug 25, 2023 · 1 comment

Comments

@RenatoVi
Copy link

RenatoVi commented Aug 25, 2023

Folio Version

1.0.0

Laravel Version

10.20

PHP Version

8.2

Description

I'm having this problem when trying to use subdomain following the documentation. Could it be a bug? that is not injecting the subdomain into the blade?

Steps To Reproduce

app/Providers/FolioServiceProvider.php

class FolioServiceProvider extends ServiceProvider
{
    ...
    public function boot(): void
    {
        Folio::path(resource_path('views/pages'))->middleware([
            '*' => [
                //
            ],
        ]);

        Folio::domain('{account}.laravel.docker')
            ->path(resource_path('views/pages/painel'));
    }
    ...    
}

resources/views/pages/painel/index.blade.php

<div class="row">
    <div class="col-md-12">
        <h1 class="page-header">Hello {{$account}} </h1>
    </div>
</div>

Error:
Undefined variable $account

@driesvints
Copy link
Member

Hey there,

Can you first please try one of the support channels below? If you can actually identify this as a bug, feel free to open up a new issue with a link to the original one and we'll gladly help you out.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants