update the docs

This commit is contained in:
Younes ENNAJI
2025-03-17 03:03:07 +00:00
parent 3cb6ea7ed7
commit c03c28533b
5 changed files with 43 additions and 47 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
{ {
"dist/main.css": "/dist/main.2817aa33.css", "dist/main.css": "/dist/main.94e560dc.css",
"dist/main.js": "/dist/main.3be5bc06.js", "dist/main.js": "/dist/main.3be5bc06.js",
"dist/455.3a7b4474.css": "/dist/455.3a7b4474.css", "dist/455.3a7b4474.css": "/dist/455.3a7b4474.css",
"dist/455.095e6545.js": "/dist/455.095e6545.js", "dist/455.095e6545.js": "/dist/455.095e6545.js",
+36 -44
View File
@@ -119,10 +119,6 @@
<span class="text-slate-300 text-sm">Laravel Installation</span> <span class="text-slate-300 text-sm">Laravel Installation</span>
</div> </div>
<pre class="bg-slate-800 p-4 rounded-lg text-sm overflow-x-auto"><code class="language-bash text-slate-200">composer require php-flasher/flasher-laravel</code></pre> <pre class="bg-slate-800 p-4 rounded-lg text-sm overflow-x-auto"><code class="language-bash text-slate-200">composer require php-flasher/flasher-laravel</code></pre>
<button class="absolute top-12 right-3 text-slate-400 hover:text-slate-200 transition-colors"
onclick="navigator.clipboard.writeText('composer require php-flasher/flasher-laravel')">
<i class="fa-regular fa-copy"></i>
</button>
</div> </div>
<div class="relative"> <div class="relative">
@@ -133,10 +129,6 @@
<span class="text-slate-300 text-sm">Symfony Installation</span> <span class="text-slate-300 text-sm">Symfony Installation</span>
</div> </div>
<pre class="bg-slate-800 p-4 rounded-lg text-sm overflow-x-auto"><code class="language-bash text-slate-200">composer require php-flasher/flasher-symfony</code></pre> <pre class="bg-slate-800 p-4 rounded-lg text-sm overflow-x-auto"><code class="language-bash text-slate-200">composer require php-flasher/flasher-symfony</code></pre>
<button class="absolute top-12 right-3 text-slate-400 hover:text-slate-200 transition-colors"
onclick="navigator.clipboard.writeText('composer require php-flasher/flasher-symfony')">
<i class="fa-regular fa-copy"></i>
</button>
</div> </div>
</div> </div>
</div> </div>
@@ -421,30 +413,30 @@
</div> </div>
<div class="text-white opacity-80 text-xs font-medium">Controller.php</div> <div class="text-white opacity-80 text-xs font-medium">Controller.php</div>
</div> </div>
<div class="p-5"> <div>
<pre class="bg-slate-50 rounded-lg p-4 text-sm overflow-x-auto"><code class="language-php">namespace App\Http\Controllers; <pre class="bg-slate-50 rounded-lg p-4 text-sm overflow-x-auto"><code class="language-php">namespace App\Http\Controllers;
class ProfileController extends Controller class ProfileController extends Controller
{ {
public function update(Request $request) public function update(Request $request)
{ {
// Update user profile logic // Update user profile logic
// Show success notification // Show success notification
flash()->success('Profile updated successfully!'); flash()->success('Profile updated successfully!');
// Or add a title // Or add a title
flash()->success('Your changes have been saved.', 'Profile Updated'); flash()->success('Your changes have been saved.', 'Profile Updated');
// Change notification options // Change notification options
flash()->options([ flash()->options([
'timeout' => 5000, 'timeout' => 5000,
'position' => 'top-right' 'position' => 'top-right'
])->success('Changes saved with custom settings'); ])->success('Changes saved with custom settings');
return back(); return back();
} }
}</code></pre> }</code></pre>
</div> </div>
</div> </div>
@@ -458,27 +450,27 @@
</div> </div>
<div class="text-white opacity-80 text-xs font-medium">app.js</div> <div class="text-white opacity-80 text-xs font-medium">app.js</div>
</div> </div>
<div class="p-5"> <div>
<pre class="bg-slate-50 rounded-lg p-4 text-sm overflow-x-auto"><code class="language-javascript">// Form submission example <pre class="bg-slate-50 rounded-lg p-4 text-sm overflow-x-auto"><code class="language-javascript">// Form submission example
document.getElementById('contact-form').addEventListener('submit', async function(e) { document.getElementById('contact-form').addEventListener('submit', async function(e) {
e.preventDefault(); e.preventDefault();
try { try {
const response = await submitForm(this); const response = await submitForm(this);
if (response.success) { if (response.success) {
// Show success notification // Show success notification
flasher.success('Your message has been sent!', 'Thank You'); flasher.success('Your message has been sent!', 'Thank You');
} else { } else {
// Show error notification // Show error notification
flasher.error('Please check your form inputs', 'Error'); flasher.error('Please check your form inputs', 'Error');
} }
} catch (error) { } catch (error) {
// Show error notification with details // Show error notification with details
flasher.error('Server error, please try again later.', 'Error'); flasher.error('Server error, please try again later.', 'Error');
console.error(error); console.error(error);
} }
});</code></pre> });</code></pre>
</div> </div>
</div> </div>
</div> </div>
+4
View File
@@ -140,3 +140,7 @@ a.anchor {
line-height: 2; line-height: 2;
border-radius: .25rem; border-radius: .25rem;
} }
pre[class*=language-] {
margin: 0 !important;
}
+1 -1
View File
@@ -2,7 +2,7 @@
"entrypoints": { "entrypoints": {
"main": { "main": {
"css": [ "css": [
"/dist/main.2817aa33.css" "/dist/main.94e560dc.css"
], ],
"js": [ "js": [
"/dist/main.3be5bc06.js" "/dist/main.3be5bc06.js"
File diff suppressed because one or more lines are too long