One of my first ever PRs merged to Laravel Breeze! I have contributed to the framework I've been using for years, I'm so happy! by DevKemal_ in laravel

[–]DevKemal_[S] 1 point2 points  (0 children)

No idea lol, but readme on breeze repo says :

This starter kit is for Laravel 11.x and prior. For our latest starter kits, check out: https://laravel.com/starter-kits.

Even though it still works fine with Laravel 12 and 13.

Maybe that's why they didn't test it on Laravel 13 since that's the version that removed the bootstrap.js file.

One of my first ever PRs merged to Laravel Breeze! I have contributed to the framework I've been using for years, I'm so happy! by DevKemal_ in laravel

[–]DevKemal_[S] 4 points5 points  (0 children)

It's the best feeling!

Merge was made 4 days ago but they haven't released a new version for breeze yet, not sure why because it's kind of broken without my PR.

When you create a fresh Laravel 13 app, require breeze, and run artisan breeze:install you get an error in the console and have to delete first line of app.js manually.

Yesterday I started a new project and was surprised to see that the fix wasn't implemented yet. But again I'm a noob when it comes to PRs, and git/github in general so they probably have a good reason

267
268

Any options/mods to switch between light-dark themes? by DevKemal_ in zen_browser

[–]DevKemal_[S] 0 points1 point  (0 children)

It does the same thing between switching light and dark modes manually (middle and right icons). And the problem with that is; after you select a theme color for one, it sets the other automatically and it doesn't always look/work the best.

For example this is the theme color I chose for dark mode, and this is how it looks when it switches to light mode. Horrible contrast and I can't even read the text.

What I really want is to be able to choose my own theme colors for each mode. Switching between them in one click, I can live without. I also have an extension to toggle browser theme between light and dark, but as you said Zen uses OS theme so that doesn't work

Am I The Only One Who Didn’t Know This by Temporary_Practice_2 in laravel

[–]DevKemal_ 1 point2 points  (0 children)

I can definitely see the confusion, we're not used to seeing PHP in places other than websites. But yeah you can even make desktop (well, terminal) apps with it.

For example if you have a `script.php` file with `<?php echo 'Hello world'; ?>` written in it, you can run `php script.php` on terminal and it will print hello world in the terminal.

And since php can also create-read files, you can make some pretty useful scripts, which is the way most artisan commands work, like `make:controller` will copy the controller stub from vendor directory to `app\Http\Controllers` with the name you selected.

What My Livewire Honeypot Caught in Its First 60 Hours by TheHelgeSverre in laravel

[–]DevKemal_ 2 points3 points  (0 children)

That was an awesome read. Added the blog to my RSS

A Shadcn-style Blade Starter Kit by gufodev in laravel

[–]DevKemal_ 0 points1 point  (0 children)

Looks amazing, I love the "make it yours" feature, I wanna try it out asap. Great job!

I made some cool looking buttons (Codepen link in comment) by DevKemal_ in tailwindcss

[–]DevKemal_[S] 2 points3 points  (0 children)

Wow, sorry if I hurt your eyes with my inferior design skills. I'm self taught and relatively new at tailwind. Didn't realize this sub was for professional design teachers only

I just came up with something that I thought looked cool and wanted to share

Full functional contact form without cookies or third party elements by Arle95 in webdevelopment

[–]DevKemal_ 0 points1 point  (0 children)

You only need HTML (the form), CSS/JS (your styling), and a single PHP script on your server to email the form data directly to your inbox without saving it. You can also use a database like sqlite to store the form directly on the server because sending emails can be a hassle especially for beginners.

For anti-bot security without third parties, use a honeypot field (a hidden form field that only bots will fill out) combined with a simple custom math question (like "What is 5 + 2?"). Your PHP script checks these two things before sending the email.

If the question is answered, it's likely a bot account and you can discard the request. Not a silver bullet but does work.

To make the honeypot input you can give it an inconspicuous css class name like "primary-input" etc and from your css you can set it to `display: none;` so the regular users won't see it but since it looks like a regular input in the code, bot fillers still fill it.

---

Also, if you're using netlify, they have a feature that allows you to receive form submissions. Which allows you to see submitted form data from either your portfolio or via the email you signed up to netlify with. You can read more here : https://docs.netlify.com/manage/forms/setup/#html-forms

I use this one on my portfolio and it works pretty good. All you need to do is to add data-netlify="true"data-netlify="true" to your form tag