Skip to content

Commit 42c9c8c

Browse files
[4.x]
1 parent b303d42 commit 42c9c8c

49 files changed

Lines changed: 1340 additions & 2749 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 257 additions & 435 deletions
Large diffs are not rendered by default.

composer.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@
3131
"illuminate/support": "11.*|12.*",
3232
"illuminate/collections": "11.*|12.*",
3333
"illuminate/session": "11.*|12.*",
34-
"illuminate/view": "11.*|12.*",
35-
"illuminate/routing": "11.*|12.*"
34+
"illuminate/view": "11.*|12.*"
3635
},
3736
"require-dev": {
3837
"orchestra/testbench": "9.*|10.*",
@@ -41,10 +40,7 @@
4140
"autoload": {
4241
"psr-4": {
4342
"Laragear\\Alerts\\": "src"
44-
},
45-
"files": [
46-
"src/helpers.php"
47-
]
43+
}
4844
},
4945
"autoload-dev": {
5046
"psr-4": {

config/alerts.php

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,6 @@
22

33
return [
44

5-
/*
6-
|--------------------------------------------------------------------------
7-
| Renderer
8-
|--------------------------------------------------------------------------
9-
|
10-
| When an Alert is rendered into HTML, it uses a "render" which transforms
11-
| the Alert into HTML code for a given frontend framework. By default, it
12-
| uses "Bootstrap 5", but you can change it or create your own renderer.
13-
|
14-
*/
15-
16-
'default' => 'bootstrap',
17-
185
/*
196
|--------------------------------------------------------------------------
207
| Save alerts in the session
@@ -40,19 +27,4 @@
4027
*/
4128

4229
'key' => '_alerts',
43-
44-
/*
45-
|--------------------------------------------------------------------------
46-
| Default tags
47-
|--------------------------------------------------------------------------
48-
|
49-
| Alerts support tagging which allows you to filter which alerts to present
50-
| in your frontend by a name, like "global" or "admin". This contains the
51-
| default tags all Alerts made in your application will have by default.
52-
|
53-
| Supported: "array", "string".
54-
|
55-
*/
56-
57-
'tags' => 'default',
5830
];

phpunit.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.0/phpunit.xsd" cacheDirectory=".phpunit.cache">
3-
<coverage>
4-
<report>
5-
<clover outputFile="build/logs/clover.xml"/>
6-
</report>
7-
</coverage>
83
<testsuites>
94
<testsuite name="Test Suite">
105
<directory>tests</directory>

resources/views/bootstrap/alert.blade.php

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

resources/views/bootstrap/container.blade.php

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<div {{ $attributes->merge(['class' => 'alerts']) }}>
2+
@foreach($alerts as $alert)
3+
{{ $alert }}
4+
@endforeach
5+
</div>

resources/views/tailwind/alert.blade.php

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

resources/views/tailwind/container.blade.php

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

0 commit comments

Comments
 (0)