Skip to content

Commit dbcd9b6

Browse files
committed
1.0.0
1 parent 501b348 commit dbcd9b6

File tree

7 files changed

+7
-24
lines changed

7 files changed

+7
-24
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# laravel-toastr
32

43

@@ -28,9 +27,6 @@ jQuery [toast](https://github.com/CodeSeven/toastr), you need to add css and js
2827

2928
### Basic
3029

31-
You should add `{!! Toastr::message() !!}` to your html.
32-
33-
Then.
3430

3531
* Toastr::info('message', 'title', ['options']);
3632

@@ -48,12 +44,16 @@ Then.
4844
<?php
4945

5046
Route::get('/', function () {
51-
Toastr::success('Hi! this is Toastr', 'Hello', ["positionClass" => "toast-top-center"]);
47+
Toastr::success('Messages in here', 'Title', ["positionClass" => "toast-top-center"]);
5248

5349
return view('welcome');
5450
});
5551
```
5652

53+
Then
54+
55+
You should add `{!! Toastr::message() !!}` to your html.
56+
5757
```html
5858
<!DOCTYPE html>
5959
<html>
@@ -67,7 +67,7 @@ Route::get('/', function () {
6767
<div class="title">Laravel 5</div>
6868
</div>
6969
</div>
70-
70+
<script type="text/javascript" src="http://cdn.bootcss.com/toastr.js/latest/js/toastr.min.js></script>
7171
{!! Toastr::message() !!}
7272
</body>
7373
</html>

public/css/toastr.min.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

public/js/jquery.min.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

public/js/toastr.min.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/Toastr.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ public function message()
6363
}
6464

6565
$script .= '</script>';
66-
67-
68-
return view('Toastr::toastr', compact('script'));
66+
return $script;
6967
}
7068

7169
/**

src/ToastrServiceProvider.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?php
2-
32
namespace Whossun\Toastr;
43

54
use Illuminate\Support\ServiceProvider;
@@ -13,11 +12,8 @@ class ToastrServiceProvider extends ServiceProvider
1312
*/
1413
public function boot()
1514
{
16-
$this->loadViewsFrom(__DIR__ . '/views', 'Toastr');
1715
$this->publishes([
18-
__DIR__ . '/views' => base_path('resources/views/vendor/toastr'),
1916
__DIR__ . '/config/toastr.php' => config_path('toastr.php'),
20-
__DIR__ . '/../public' => public_path('packages/whossun/laravel-toastr')
2117
], 'config');
2218
}
2319

src/views/toastr.blade.php

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)