Skip to content

u/Captain--Ultra

In this archive from Jan 2020 to Sep 2021

7
posts
28
comments
0
media
56
score

Test image upload

How should I test image file upload to my API? I tried using faker to provide me with an image in the feature test but it doesn't work. The test would freeze and after a while when I dd($this->image); it would say false. This is my code:$this->image = $this->faker->image($dir = base_path('tests\Feat...

1 points3 comments
Open on Reddit

Where should I set a field?

I'm making a laravel application in which when creating a particular record in the DB, one of the colums has to be set depending on another one. It extracts some info from a field and based upon that info it searches in the DB for the id of a record from another table that matches the requirements a...

1 points4 comments
Open on Reddit

End of this list.

Back to top

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.