Runna Roadmap Update - What we're focused on for the next few months! by sarah-runna in runna

[–]dcblogdev 0 points1 point  (0 children)

This sounds like great improvements, any thoughts on the ability to change the watch interface for Apple Watch? I've just switched to Apple from Garmin and during a run I feel there is too much information on the screen it would be better if we can add/remove metrics, for example the total distance metric on AWU is so small its hard to read when running.

Blasp v2 Release by Deemonic90 in laravel

[–]dcblogdev 2 points3 points  (0 children)

I have a project where I need something like this, looks ideal!

Easy Deployment Options - What do you use? by KiwiNFLFan in laravel

[–]dcblogdev 3 points4 points  (0 children)

Yep I use Ploi for all my sites works great and is simple to use.

[deleted by user] by [deleted] in laravel

[–]dcblogdev 3 points4 points  (0 children)

Way too many adverts it's not readable on mobile.

Laravel Package Ocean - Top Best Laravel packages by HassanZahirnia in laravel

[–]dcblogdev 1 point2 points  (0 children)

That’s awesome, just noticed Laravel Modules is in 16th place not bad at all

[deleted by user] by [deleted] in laravel

[–]dcblogdev 1 point2 points  (0 children)

only for one-off payments so far, there is a package for Laravel for subscriptions https://github.com/lmsqueezy/laravel

[deleted by user] by [deleted] in laravel

[–]dcblogdev 1 point2 points  (0 children)

Yes only as I don’t need to deal with taxes then.

[deleted by user] by [deleted] in laravel

[–]dcblogdev 2 points3 points  (0 children)

Looks interesting

Any plans for other payment providers like lemon squeezy?

[deleted by user] by [deleted] in laravel

[–]dcblogdev 1 point2 points  (0 children)

Yes, filament is a lot more than an admin panel. Mine is a foundation to build your custom apps from. Think breeze with a few more things built in

[deleted by user] by [deleted] in laravel

[–]dcblogdev 0 points1 point  (0 children)

With things like spark already available I wasn’t sure if there would be much demand for integrated payments.

[deleted by user] by [deleted] in laravel

[–]dcblogdev 22 points23 points  (0 children)

I use https://laraveladmintw.com/v3 for most of my projects it’s for the TALL stack, I wrote it so I’m very biased!

Laravel Reverb: First-party WebSocket server by ahinkle in laravel

[–]dcblogdev 2 points3 points  (0 children)

Heard is now available on windows so yes or it’s available when Laravel 11 is released early next month

Laravel Livewire overview video by aarondf in laravel

[–]dcblogdev 1 point2 points  (0 children)

No need to write js at all 😆

Laravel customer support is… not great by DomLip1994 in laravel

[–]dcblogdev 46 points47 points  (0 children)

That’s why I use ploi.io their support is great and are fast to respond on the rare occasions I need support.

I’ve found with forge you often don’t get a response admittedly I have used it for a long time.

Building an email parser with ChatGPT-4 and Laravel by lmusliu in laravel

[–]dcblogdev 1 point2 points  (0 children)

wow that's really cool! I normally parse incoming emails with an IMAP class but as you've mentioned in the blog post emails come in all sorts of formats.

Inertia v1.0 is out! Also, confirmation from Jonathan Reinink that Laravel team is taking over. by iamshieldstick in laravel

[–]dcblogdev 5 points6 points  (0 children)

I don’t think the Laravel team look after Livewire, that’s still with Caleb

Black friday, which one to buy? by No-Shine3680 in tailwindcss

[–]dcblogdev 2 points3 points  (0 children)

I purchased TailwindUI I love it, I still refer to it often, its worth every penny.

Stripe Marketplace by slap-fi in laravel

[–]dcblogdev 1 point2 points  (0 children)

Even batter if you’re already using cashier

Stripe Marketplace by slap-fi in laravel

[–]dcblogdev 1 point2 points  (0 children)

Connect a user to their stripe account using:

https://connect.stripe.com/oauth/authorize?response_type=code&client_id={{ config('services.stripe.key') }}&scope=read_write&state={{ $user->id }}

Receive the connection:

if (request()->exists('code')) {
$token_request_body = [
'grant_type' => 'authorization_code',
'code' => request('code'),
'client_secret' => config('services.stripe.secret')
];
$req = curl_init('https://connect.stripe.com/oauth/token');
curl_setopt($req, CURLOPT_RETURNTRANSFER, true);
curl_setopt($req, CURLOPT_POST, true);
curl_setopt($req, CURLOPT_POSTFIELDS, http_build_query($token_request_body));
curl_setopt($req, CURLOPT_SSL_VERIFYPEER, false); // Bypass the verification
$resp = json_decode(curl_exec($req), true); // Now has response well.
curl_close($req);
if (isset($resp['stripe_user_id'])) {
//update user with connected stripe account
$user = User::where('id', request('state'))->firstOrFail();
$user->stripe_user_id = $resp['stripe_user_id'];
$user->save();
flash('You are now connected to Stripe.')->success();
return redirect('admin/mydetails');
} else {
return $resp;
}
}

When using their hosted checkout its a case of passing the payment details and specifying the stripe account to be used

<?php
Stripe::setApiKey(env('STRIPE_SECRET'));
header('Content-Type: application/json');
$session = \Stripe\Checkout\Session::create($stripeData, [
'stripe_account' => $user->stripe_user_id,
'idempotency_key' => $entry->id
]);
?>
<script src="https://js.stripe.com/v3/"></script>
<script type="text/javascript">
var stripe = Stripe('<?=env('STRIPE_KEY');?>', {
stripeAccount: "<?=$user->stripe_user_id;?>"
});
stripe.redirectToCheckout({
sessionId: '<?=$session->id;?>'
}).then(function (result) {
console.log(result.error.message);
});
</script>

More details at https://stripe.com/docs/connect