profile
viewpoint
Hakan Aktas hkan Izmir, Turkey https://hakanaktas.com.tr I build APIs for a living and I occasionally work on random hobby projects.

hkan/follow 6

User following package for Laravel 4.

hkan/approval 5

Content Approval Trait for Laravel

hkan/tic-tac-vue 5

Online tic-tac-toe game built with Vue.js framework.

hkan/alpine 0

A rugged, minimal framework for composing JavaScript behavior in your markup.

hkan/cursor-pagination 0

Cursor pagination for your Laravel API

hkan/destressing-drops 0

HTML5 Canvas experiment built with Three.js

hkan/django-rest-auth 0

This app makes it extremely easy to build Django powered SPA's (Single Page App) or Mobile apps exposing all registration and authentication related functionality as CBV's (Class Base View) and REST (JSON)

hkan/laravel-permission 0

Associate users with roles and permissions

PR opened heroku/12factor

Updated Turkish translations

Current translations have many grammar mistakes and overall incomprehensible sentences. I updated a lot of them. Any constructive feedback is welcome.

+124 -125

0 comment

16 changed files

pr created time in 13 days

push eventhkan/12factor

Hakan Aktas

commit sha 0e0544315a3f0b7c7267908f032a377fcd3fe873

updated intro and ToC

view details

Hakan Aktas

commit sha 05001eced277062d2577f1c7ae43e96e85b76916

updated Turkish translation for 12 factors

view details

push time in 13 days

push eventhkan/12factor

Hakan Aktas

commit sha bb4c1afb5b44f06a47d86c5b60a811c4d7ccaf6c

updated config page Turkish translations

view details

push time in 14 days

push eventhkan/12factor

Hakan Aktas

commit sha c1c302f8f19c1ad92766ae936b3bb9373bee9468

updated home page Turkish translations

view details

Hakan Aktas

commit sha 92837a0fa1f96393d91f64303441630b9153097e

updated codebase page Turkish translations

view details

Hakan Aktas

commit sha 1ee1b5fd31fdb8084da673799eba8141e21cd0ee

updated dependencies page Turkish translations

view details

push time in 15 days

issue commentjan-vince/smallrecords

Attribute translations

I think this might be because the translatable attribute in \JanVince\SmallRecords\Models\Attribute model has pivot[value_string] for the translatable value but the translation plugin doesn't pick that up and save the translated values. Probably because it's a pivot model, but I'm not sure on that.

marcinj1

comment created time in 23 days

startedhihayk/scale

started time in a month

issue commentskydiver/october-plugin-forms

translate plugin

@mjauvin is it possible to make custom attributes translatable too? I am using them but they don't show up on translations page.

SpurnyMarek

comment created time in a month

startednuxt/content

started time in 2 months

issue closedalpinejs/alpine

Elements don't get removed when Object<Array<String>> is reset

Title feels weird, I didn't know how to explain it better and as short as possible.

Demo: https://codepen.io/hkanaktas/pen/JjYzqyq

Expected behavior

"fish are weird" should get removed when I click reset obj button.

Current behavior

"fish are weird" string is forgotten on the page. And more is added as the set fish button is clicked after resetting the object.

Extra info

My real use case here is: I have a validationErrors object. I set Laravel's error data (which is in Object<Array<String>> format) from 422 responses. When user resubmits the form, I simply reset them with validationErrors = {} before sending the request but the errors stay on page. But interesting enough that I don't get that repeating behavior in the demo pen.

Is this somehow my error? Maybe wrong key? Should I loop over the errors in another way?

closed time in 2 months

hkan

issue commentalpinejs/alpine

Elements don't get removed when Object<Array<String>> is reset

Ah, damn. I knew something was wrong with my code. Thanks Simone!

hkan

comment created time in 2 months

issue openedalpinejs/alpine

Elements don't get removed when Object<Array<String>> is reset

Title feels weird, I didn't know how to explain it better and as short as possible.

Demo: https://codepen.io/hkanaktas/pen/JjYzqyq

Expected behavior

"fish are weird" should get removed when I click reset obj button.

Current behavior

"fish are weird" string is forgotten on the page. And more is added as the set fish button is clicked after resetting the object.

Extra info

My real use case here is: I have a validationErrors object. I set Laravel's error data (which is in Object<Array<String>> format) from 422 responses. When user resubmits the form, I simply reset them with validationErrors = {} before sending the request but the errors stay on page. But interesting enough that I don't get that repeating behavior in the demo pen.

Is this somehow my error? Maybe wrong key? Should I loop over the errors in another way?

created time in 2 months

startedcalebporzio/sushi

started time in 2 months

startedjamesmills/laravel-timezone

started time in 3 months

issue commentalpinejs/alpine

Wrong option selected on init (x-for usage in select)

Ah, makes sense. Thanks for the explanation Simone. Issue can be closed if it's a wontfix.

hkan

comment created time in 3 months

issue commentalpinejs/alpine

Wrong option selected on init (x-for usage in select)

Re-setting the same value in $nextTick was the first thing I tried. It doesn't work. Binding :selected seems to work.

hkan

comment created time in 3 months

issue openedalpinejs/alpine

Wrong option selected on init (x-for usage in select)

There are some issues with which option is selected when select's options are generated with x-for. See pen for demo.

Pen: https://codepen.io/hkanaktas/pen/vYNVJYL?editors=1000

Expected behavior

Both selects should display "cucumbers" after the page loads and Alpine initiates component.

Observed behavior

The select with a static option (after x-for'd options) shows the static option as selected. Other one shows the first option as selected.

Notes

See how selects get correct option selected when you cause any changes in component data. Maybe this issue can be solved by triggering a forced update after selects with x-for'd options are rendered?

created time in 3 months

issue commentspatie/laravel-permission

Laravel Sanctum guard issue

@Ragash yeah the whole auto-discovery thing is rather flimsy. See the last commit on my fork for the simplest way to change it.

ScriptMintSolution

comment created time in 3 months

more