Skip to content

u/ConsoleTVs

In this archive from Sep 2016 to Dec 2026

12
posts
252
comments
5
media
717
score

I agree. Here's one of the advantages of Arkoren. It build on top of std, and does not force a unified architecture. I guess it's kinda the diff between a framework and a toolkit. You can pick or choose the modules you want in arkoren, or build it all from the ground up

1 points

That could work very well indeed. Otherwise just pass a json to the blade view and use a js lib directly (chartjs, echarts, etc). Last but not least id your data takes long to compile, just offer the data in an endpoint and request it using JS and then use a js lib directly.

2 points

Yeah, my advice is to just use some raw js lib, I mean, frontend has advanced so much sin 2015 (when the project was released) so its a bit unpoint to use php for this nowadays.

2 points

The project was renamed to Chartisan and developed for a few years. I then got a trademark notice from a company named Chartisan and demandes I took the whole project down. So the version u see there was a reupload of the last version thst existed at least 3 or 4 years ago. In fact the composer pkg was also affected as u see, there is no older versions. Anyway, I just dont have the mental capacity to move on with it anymore.

2 points

They are good when they are usefull. The following code is not:

class Foo {
  protected string $bar;

  public getBar(): string {
    return $this->bar;
  }

  public setBar(string $bar): void {
    $this->bar = $bar;
  }
}

This code adds nothing, please don't do that.

It make sense when you have something like this for instance:

class SuperDate {
  protected Carbon $date;

  public json(): string {
    return $this->date->toJSON();
  }

  public set(string|Carbon $date): static {
    $this->bar = is_string($date) ? Carbon::parse($date) : $date;

    return $this;
  }
}

This make sense since you're in control of the data (Carbon instance) yet allow setting it from multiple formats (string or Carbon instance) and only get it as a JSON date.

0 points

I think you should have all the login system + shared api in a passport server and then have 2 first party passport clients (your apps) who use socialite to communicate with your login system. You do not need to remove your existing sanctum code. Each of your apps will have its own auth state tho, they are different apps at the end of the day with diferent encryption. It is judt that the çogin will be oauth trough your server

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.