-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
Not Displayed proper alert message in the master file #51
Comments
Same problem here. Does anyone have a solution? |
Hello Guys 👋, |
hey @realrashid my problem is, that the js and view is not included in my main view. i have follow the docs but it does not work 🤷♂ |
Hello @erickleinde |
hey @realrashid I did that twice, but it does not work.. public function store(Request $request)
{
$validation = $request->validate([
'name' => ['required', 'unique:groups,name'],
'description' => ['required'],
'email' => ['nullable', 'email']
]);
try {
$group = new Group();
$group->name = $request->name;
$group->description = $request->description;
$group->email = $request->email;
$group->save();
Alert::toast(Lang::get('settings.groups.create.success'), 'success');
return redirect(route('settings.groups.index'));
} catch (\Exception $exception) {
Alert::error(null, Lang::get('settings.groups.create.error'));
return redirect(route('settings.groups.index'));
}
} <!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>@yield('title') | {{ config('app.name') }}</title>
<link href="{{ asset('css/app.css') }}" rel="stylesheet" type="text/css">
@yield('css')
</head>
<body>
<!-- SWEET ALERT -->
@include('sweetalert::alert')
<!-- SWEET ALERT -->
<!-- NAVIGATION BAR -->
@include('layout.topnav')
<!-- NAVIGATION BAR -->
<!-- CONTENT -->
<div class="container-fluid h-100">
<div class="row h-100">
<!-- SIDEBAR -->
<div class="col-md-2 sidebar-wrapper">
@include('layout.sidebar')
</div>
<!-- SIDEBAR -->
<!-- CONTENT -->
<div class="col-md-10 ml-auto content-wrapper">
<section class="content">
@yield('content')
</section>
</div>
<!-- CONTENT -->
</div>
</div>
<!-- CONTENT -->
<script src="{{ asset('js/app.js') }}"></script>
@yield('script')
</body>
</html> |
Hello @erickleinde , SWEET_ALERT_LOCAL=true
SWEET_ALERT_CDN='' And last but not least please add the |
hey @realrashid I changed it, but it's still the same problem |
Hey @realrashid <script src="{{asset("js/backend_js")}}/jquery.min.js"></script>this JavaScript file it's work fine. |
@Hey @realrashid |
Great to hear that man! @erickleinde is your issue solve or not let me know then i will close the issue. |
Description:
Alert gives proper output outside of the master file.
But when using in the master file then it gives this
[ https://user-images.githubusercontent.com/22576412/65787763-7e6fe480-e17b-11e9-9db9-35a6e4e09db4.png ] output.
Steps To Reproduce:
The text was updated successfully, but these errors were encountered: