Skip to content

Instantly share code, notes, and snippets.

View RikoDEV's full-sized avatar
🏞️
Sunny

Jacek Maciejak RikoDEV

🏞️
Sunny
View GitHub Profile
@RikoDEV
RikoDEV / roa.md
Created December 2, 2023 15:58
ROA - Replace OEM App(s)
@RikoDEV
RikoDEV / laravellocalization_livewirev3_fix.md
Last active September 8, 2023 13:27
Fix Livewire v3 unknown route after caching (mcamara/laravel-localization)

Livewire v3 x Laravel Localization

1. Create new file called HandleRequests.php inside app\Livewire directory.

<?php

namespace App\Livewire;

class HandleRequests extends \Livewire\Mechanisms\HandleRequests\HandleRequests
@RikoDEV
RikoDEV / SocialstreamDiscordRoles.md
Last active December 3, 2023 09:06
Laravel + Jetstream + Socialstream Discord Linked Roles

discord linked roles

How to easily add linked roles support for Socialstream login using Discord?

Linked roles is a new solution for assigning roles to a user after linking the account to the selected application. Since my Laravel site already uses Discord login, why not use it? The implementation itself seems complicated, but it is a matter of adding a few lines of code. Simple.

Requirements

  • Laravel 10+
  • Jetstream v3+
  • Socialstream v4+ | v5+
  • SocialiteProviders/Discord
@RikoDEV
RikoDEV / Awesome.php
Last active August 24, 2023 09:28
Trigger Laravel Jetstream banner from Livewire component
// Success banner
$this->dispatchBrowserEvent('banner-message', [
'style' => 'success',
'message' => 'Amazing success banner!'
]);
// Danger banner
$this->dispatchBrowserEvent('banner-message', [
'style' => 'danger',
'message' => 'Mysterious danger banner!'