mikebronner/laravel-casts

Class 'GeneaLabs\LaravelCasts\FormFacade' not found

Nowi5 opened this issue · 0 comments

Nowi5 commented

After installing laravel-casts the form of impersonate worked fine, see mikebronner/laravel-impersonator#5

But on other pages a I get now another error message:

Class 'GeneaLabs\LaravelCasts\FormFacade' not found (View: /resources/views/partials/admin/sidebar.blade.php) (View: /resources/views/partials/admin/sidebar.blade.php) (View: /resources/views/partials/admin/sidebar.blade.php)

  <?php echo Form::open(['route' => 'logout', 'style' => 'display:none;', 'id' => 'logout']); ?>
 
    <button type="submit"><?php echo app('translator')->getFromJson('admin.logout'); ?></button>
    <?php echo Form::close(); ?>
{!! Form::open(['route' => 'logout', 'style' => 'display:none;', 'id' => 'logout']) !!}
	<button type="submit">@lang('admin.logout')</button>
	{!! Form::close() !!}

I think in the composer.json is an error:

  "extra": {
        "laravel": {
            "dont-discover": [
                "laravelcollective/html"
            ],
            "providers": [
                "GeneaLabs\\LaravelCasts\\Providers\\LaravelCastsService"
            ],
            "aliases": {
                "Form": "GeneaLabs\\LaravelCasts\\FormFacade",
                "Html": "Collective\\Html\\HtmlFacade"
            }
        }
    },

Shoudn't it be "Form": "GeneaLabs\LaravelCasts\Facades\FormFacade" ?