Skip to content

Instantly share code, notes, and snippets.

View fikrimastor's full-sized avatar
🤩
I may be slow to respond.

Fikri Mastor fikrimastor

🤩
I may be slow to respond.
View GitHub Profile
@fikrimastor
fikrimastor / login.blade.php
Created December 2, 2025 08:02 — forked from PovilasKorop/login.blade.php
Flux buttons for Social Login
<x-layouts.auth>
<div class="flex flex-col gap-6">
<x-auth-header :title="__('Log in to your account')" :description="__('Enter your email and password below to log in')" />
<!-- Session Status -->
<x-auth-session-status class="text-center" :status="session('status')" />
<!-- Social Login Buttons -->
<div class="flex flex-col gap-3">
<flux:button variant="outline" class="w-full justify-center" href="{{ route('socialite.redirect', 'google') }}">
@fikrimastor
fikrimastor / AppServiceProvider.php
Created August 22, 2022 13:40 — forked from greenspace10/AppServiceProvider.php
Laravel, Livewire, Alpine JS Toast Notifications
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
Component::macro('notify', function ($message, $title = '', $type = 'success') {
$this->dispatchBrowserEvent('notify', ['message' => $message, 'title' => $title, 'type' => $type]);
});