laravel-toastr's People
Forkers
intelligenced mdhafiz mrosama anakwayank tawhidjony imtiazrupu hi-techparks hoanx0601 tntsoft techmahedy sagar720 cutemonster akshayt1993 aa-hridoy lo-nov spottheball-ke karungaru-tech iamarbabhussain mprince2k18 firmanadi sanwinmaung fabiansaifudin wanaphyohtun kurollo tdbcreator igitonga imhayatunnabi rafikulswe nkudry devnahar antonio8101 aoradev44 virtualshamim ovijitkundu coderruhulamin jeffersonsimaogoncalves abdoelmadjidlaravel-toastr's Issues
how to use it in jquery? any solution
path publish issue and it's solve
Brian2694\Toastr\ToastrServiceProvider::class this path is incorrect must be Yoeunes\Toastr\ToastrServiceProvider::class,
thanks
Class 'Brian2694\Toastr\Toastr' not found (View: /home/176572.cloudwaysapps.com/arbuanfcyy/public_html/resources/views/welcome.blade.php)
Hello,
I am getting this error,
Class 'Brian2694\Toastr\Toastr' not found (View: /home/176572.cloudwaysapps.com/arbuanfcyy/public_html/resources/views/welcome.blade.php)
Here is my view file,
{!! Toastr::message() !!}
my controller
Toastr::success('API Key enter Successfully', 'Diagoh', ["positionClass" => "toast-top-center"]);
return view('welcome', ['prod' => $statusCheck->ScriptTagId]);
Config Option
Hey @brian2694
Was curious if you could add a new config option for this.
Line 42 in 3173d5b
So <script type="text/javascript">
can be configuarble. Reason being is so people like myself can add nonce
and alike for use with Content Security Policies (CSP). That was this package can work with 'unsafe-inline'
.
vitejs es6 type module
Thanks for this amazing package.
I had some issue moving from webpack to vitejs
Toastr.php
public function message()
{
...
- $script = '<script type="text/javascript">';
+ $script = '<script type="module">';
...
Should we make this configurable?
not working in chrome
Provide PHP DOC to the Toastr Facade
To help IDEs suggets Toastr Facade methods, and usages of those methods, some PHP DOC should be provided on the Toastr Facade class
Uncaught TypeError: I[E.showMethod] is not a function
So, I don't know if this is a package issue or not (I suspect not), but when I call the Toastr::(); function, Everything works, I got the session etc... but I get an error... Uncaught TypeError: I[E.showMethod] is not a function
. Well I tried to execute toastr["success"]("test description", "test title")
in the js terminal, but that does return the same issue... I never had problems with toastr before :(
Error Found?
I installed following the readme to a "T" but get following error.
FatalThrowableError in /home/UNIT3D_2.0/app/Http/Controllers/UserController.php line 85:
Class 'App\Http\Controllers\Toastr' not found
Laravel 8
Will it support?
Error in laravel 8
Toastr show in every routes
Greetings all,
First of all, thanks for the package!
I'm using it on a Laravel 8 project and i have a little issue. First, i've set this on my layout:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.css" integrity="sha512-vKMx8UnXk60zUwyUnUPM3HbQo8QfmNx7+ltw8Pm5zLusl1XIfwcxo8DbWCqMGKaWeNxWA8yrx5v3SaVpMvR3CA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
<body>
...
<script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/2.1.4/toastr.min.js" integrity="sha512-lbwH47l/tPXJYG9AcFNoJaTMhGvYWhVM9YI43CT+uteTRRaiLCui8snIgyAN8XWgNjNhCqlAUdzZptso6OCoFQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
{!! Toastr::message() !!}
</body>
</html>
Then, on my controller i have a method where i fire a Toastr and return a view:
public function dashboard() {
Toastr::success('Messages in here', 'Title', ["positionClass" => "toast-top-center"]);
return view('admin.dashboard');
}
and that works fine but when i go to another route where i don't have any Toastr, the same Toastr get's fired...
Am i missing something here?
Thanks for the help!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.