Skip to content

u/phoopee3

In this archive from Jul 2019 to Apr 2023

0
posts
40
comments
0
media
62
score

Cashier seems to be the preferred laravel way to handle memberships.

I’m in a similar situation, restricting features behind a membership. I’m thinking of trying out memberful or gumroad to handle the memberships, and then make an api call to the service to verify their subscription when they log in.

1 points

I tried it myself and I couldn’t get it to work. I have my breaking point and $40 is below my hourly rate, and I spent more than an hour on it. So instead of being frustrated I would rather pay someone to do it haha. Idk you’re making it sound like I should try again though, so maybe I’ll give it one more shot.

1 points

I tried the “install new laravel and copy code” but since I’m not doing laravel stuff say to day, even that process was too much for me. Since that was discouraging me from even working on the “fun side project” I figudyid go back to v6 and deal with it later. Laravel shift seems like a good expense for what they offer and the amount of time I’ve already sunk into trying to upgrade myself.

3 points

php artisan commands stopped working for me, and it was throwing errors about some class not being found. I don’t do laravel work regularly so it was difficult for me to figure out what was happening and it was easier for me to revert back to the older version and deal with it later. Laravel shift seems like a good solution to try out.

1 points

Do you mean you want a starter kit that lets you specify the apis and builds the db and routes for you? Like “I want /users, /posts, /pages” and it does the building part?

I feel like I’ve seen some “crud builder” around. A quick search brings up stuff like this. But I have no experience with it.

You also mentioned there are things like this in the node community, can you mention their names? I am interested in that!

1 points

All media no matter what? You could write a WP_Query with the “post_type” => “attachment” and then “posts_per_page” => -1. That would get all the files that have been uploaded. Then you’d have to write a loop to display them all.

You could modify the query to just get images, or images that were uploaded to a certain page by specifying the “parent” parameter.

Edit: added second paragraph

2 points

It sounds like while you thought this project was done, it is going to offer you a lot of opportunities to learn by refactoring your code based on what you learn via videos or reading, which is great!

I’ve always heard that it’s good to have lean controllers. And that your controllers should be calling methods in the model. So even if you have a bunch methods in your controller, the bulk of the code for them should be in the model. Just my two cents.

1 points

You could ask about meta data and whether or not querying on meta data is a good idea. When they hopefully say querying on meta isn’t a great idea ask what another solution would be. Hopefully they’ll answer with saying “make a taxonomy”.

Also ask the difference between tags and categories. I think they’re the same except for the hierarchical feature of categories but I always find it confusing to explain.

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.