koulritesh98 liked a comment+100 XP
2mos ago
@koulritesh98 use laravel sail and render
koulritesh98 liked a comment+100 XP
4mos ago
** Warning **
Do not just use ->markdown() on its own this is prome to XSS (Cross-Site-Scripting) if you was to put <img src="#" onmouseover="alert('hacked');" /> in your idea description or worse a user was, when they hover over the image, an alert will show. Instead use:
`return Attribute::get(
fn ($value, $attributes) => new HtmlString(str($attributes['description'])->markdown([
'html_input' => 'escape',
'allow_unsafe_links' => false,
'max_nesting_level' => 5,
])));`
koulritesh98 wrote a comment+100 XP
4mos ago
Hello, Rather than storing images locally, can we store images right in an object storage like s3 or digital ocean spaces? How would that look like?
koulritesh98 wrote a comment+100 XP
4mos ago
Hello, I notice that when we removed the image, it closed the modal. Should we rather create a rest api that removes the image, and how would it look like in this flow?
koulritesh98 wrote a comment+100 XP
5mos ago
koulritesh98 liked a comment+100 XP
5mos ago
koulritesh98 liked a comment+100 XP
5mos ago
@koulritesh98 While developing, you added some new tables or columns to existing tables, after you deployed to production. You add them by writing new migrations. Then, when you update your production site, you also update your table by running "php artisan migrate". It will ask you "are you sure, this is prod?", you answer yes, and the prod DB is updated. It will run only the newly added migrations, not the old ones. How, might you ask? It keeps a list of migrations that have been already run in the DB table called "migrations". Open it and see for yourself.
Of course, it goes without saying: always double check what your migrations are doing and always made a DB backup before updating.
koulritesh98 liked a comment+100 XP
5mos ago
@koulritesh98 I think it might be an automatic script that will apply migrations during build or apply stage
koulritesh98 wrote a comment+100 XP
5mos ago
@sash_ko By migrations do you mean artisan migrations?
koulritesh98 wrote a comment+100 XP
5mos ago
koulritesh98 liked a comment+100 XP
5mos ago
@koulritesh98 There is a course that shows how to deploy a laravel app on a vps, it is introduced by Mohamed Said called "Servers for laravel"
koulritesh98 wrote a comment+100 XP
5mos ago
Hey @jeffreyway
I was just thinking, when we deploy our apps on production, how will we modify our database by adding new columns? Do we have to manually update all tables in our database?
koulritesh98 liked a comment+100 XP
5mos ago
@koulritesh98 I haven't search yet, but I think this is really an area that they could add more content. For example, how to dockerize a modern Laravel application and deploy it to Azure Container Instances.
koulritesh98 wrote a comment+100 XP
6mos ago
@larsb-dev +1 to that. Also, do you know if there exists any course here that teaches us to deploy laravel apps without using forge?
koulritesh98 liked a comment+100 XP
6mos ago
First <3
@Jeffrey Way can you release a series on how to deploy a Laravel app with Docker in 2026 (maybe FrankenPHP)?
koulritesh98 wrote a comment+100 XP
6mos ago
New Laravel series, lezzz gooo....
koulritesh98 wrote a comment+100 XP
6mos ago
I totally agree with removing unnecessary comments. What you did should be explained by your code. Why you did it should be explained by your comments if needed.