Laravel 5.2: No tooltip defined for [flash]

After installation, "laracasts/flash": "^1.3"I try to pretend, and this is my code:

@include('gazett.errors')

Where in gazett.errorsthe blade.php file code is here:

<div class="row">
<div class="col-md-7 col-md-push-3" style="padding: 5px 24px!important;">
    @include('flash::message')
    @if($errors->any())
        <ul class="alert alert-danger text-center rtl ur fsize26" style="list-style: none;">
            @foreach($errors->all() as $error)
                <li style="color: #000 !important;"> {{ $error }} </li>
            @endforeach
        </ul>
    @endif
</div>

But I get this error: the hint path for [flash] is not specified.

Where my directory structure is given in the Directory structure link . When I go into the browser, the error is here:

ErrorException in FileViewFinder.php line 112:

No hint path specified for [flash]. (View: E: \ Web \ xampp \ htdocs \ wifaq-atropos \ resources \ views \ gazett \ errors.blade.php) (View: E: \ Web \ xampp \ htdocs \ wifaq-atropos \ resources \ views \ gazett \ errors.blade.php) (View: E: \ Web \ xampp \ htdocs \ wifaq-atropos \ resources \ views \ gazett \ errors.blade.php)

, laravel 5.0 5.2. 5.0. ?

+6
3

5.2, .

config/app.php

'providers' => [
        Laracasts\Flash\FlashServiceProvider::class,];

;

'aliases' => [  'Flash' => Laracasts\Flash\Flash::class, ]

config/app.php @include ('flash:: message') ,

+6

, Laravel 5, config/app.php.

'providers' => [
    'Laracasts\Flash\FlashServiceProvider'
];
+5

You can install it manually

if you have blade views in ... views / flash, you can specify this:

app('flash')->addNamespace('mail', resource_path('views') . '/flash');
0
source

Source: https://habr.com/ru/post/1630051/


All Articles