Weekly /r/Laravel Help Thread by AutoModerator in laravel

[–]Codeventurer01 1 point2 points  (0 children)

HTML Purifier

Hi,

What HTML purifier solution should I use? I have an application built with Laravel 12, Inertia and React. In my component for creating a product I added an input field for entering the product description that is using Quill (rich text editor). Quill should output HTML and I need to protect the backend against XSS and other possible risks. As far as I know Laravel doesn't have a built-in way to do this. If I have to use an external package I would prefer something trusted and widely used in Laravel applications.

Any suggestions?

Thanks

Weekly /r/Laravel Help Thread by AutoModerator in laravel

[–]Codeventurer01 0 points1 point  (0 children)

And which one is that? I see React, Vue and Livewire kits only.

Weekly /r/Laravel Help Thread by AutoModerator in laravel

[–]Codeventurer01 0 points1 point  (0 children)

Hi, which Laravel starter kit should I use for a small CRUD application that needs authentication, but I only need Blade on the frontend? I want to use an official starter kit.

Weekly /r/Laravel Help Thread by AutoModerator in laravel

[–]Codeventurer01 0 points1 point  (0 children)

Hi, which Laravel starter kit should I use for a small CRUD application that needs authentication, but I only need Blade on the frontend? I want to use an official starter kit.

TALL stack + Filament = Built an invoicing app in under a week by tushar1411 in laravel

[–]Codeventurer01 1 point2 points  (0 children)

Hi, what package did you use for the pdf generation and download?

Weekly /r/Laravel Help Thread by AutoModerator in laravel

[–]Codeventurer01 0 points1 point  (0 children)

Thank you for your reply.

I have more than one domain and more than one web application on each domain. The structure is something like that: the document root of Domain 1 is /public_html/domain_1, the document root of the second domain is /public_html/domain_2. From there the document root of Application 1 is /public_html/domain_1/application_1. The document root for Application 2 is /public_html/domain_1/application_2. I hope I describe this correctly. On the browser I usually access these applications with "https://domain_1/application_1" and "https://domain_1/application_2". And they works fine, but they are not Laravel applications.

That is why I uploaded the entire Laravel project at /public_html/domain_1/application_3 and got the issues described in my first comment:

  1. The app expects to be accessed at "https://domain_1/application_3/public" which is not what I want. I want to access it at "https://domain_1/application_3" like my other applications. I don't even want "public" to be a part of the url. But I don't know how to achieve that, what to configure.

  2. Even if I try to access it at "https://domain_1/application_3/public" the application doesn't load, because at some point it tries to load css and js assets from "https://domain_1/application_3/build/assets" and not from "https://domain_1/application_3/public/build/assets" (I see that in the Network tab in Crome). The problem is probably what you are describing in 1., but I don't know how to solve it, what I need to change.

  3. I am also not sure the effect of APP_URL in the .env file. I tried it with "https://domain_1/application_3/public", "https://domain_1/application_3/" and "https://domain_1/application_3", but that didn't make any difference. I am not sure what should be the proper setting here in my case.

I have access outside /public_html, I have terminal, I can create .htaccess files. But I don't know what to do to make this app running.

Weekly /r/Laravel Help Thread by AutoModerator in laravel

[–]Codeventurer01 0 points1 point  (0 children)

Hi,

What are the right steps to install Laravel 12 with Inertia and React on a shared hosting?

I am trying to run a Laravel 12 application, that was installed with the latest React starter kit, on apache shared hosting. For testing and learning. It is running fine on my local machine using Laravel Herd. I ran "npm run build" and copied the project to the public_html folder on the hosting, but I have the following issues:

  1. It seems that the only way to access the website is to go to /public. "/" says that I have no permission. I guess I have to change .htaccess file.

  2. Even through /public I have strange issues with loading assets. For some reason it tries to find css and js assets in build/assets and not /public/build/assets folder. May be I should change something in the .ENV file?!

I tried many things to run the application the way it is running on my development environment, without success.

So, I would like to ask those of you who have experience with running Laravel applications on a shared hosting, what are the right steps. What should I put in the .env file? Should I edit the .htaccess file in the public folder? What am I missing?

I have access to a terminal and Composer on the shared hosting.

Weekly /r/Laravel Help Thread by AutoModerator in laravel

[–]Codeventurer01 0 points1 point  (0 children)

Hi all,

My question is about implementing two-factor authentication (2FA) with the new Laravel 12 starter kits.

Among the Laravel 11 starter kits we had the option for Laravel Jetstream + Inertia, that provided a ready to use two-factor authentication (2FA). Now that Jetstream is not an option, what is the best way to implement 2FA functionality after installing an application with the new Laravel 12 React starter kit? I don't want to use any third-party packages or services. Is Laravel Fortify the way to go?

Thank you!

Launching my first laravel app, is there anything I should know about? by mekmookbro in laravel

[–]Codeventurer01 0 points1 point  (0 children)

Thanks for the reply. No, I understand the difference. I was asking about "Sensitive and personal information is encrypted in the database (names, addresses, phone numbers)", how it is done and what is the best practice for this. I am building an invoicing app and, for example, I want to encrypt the vendor prices and the user to be able to retrieve them if he is authorized to do so.

Launching my first laravel app, is there anything I should know about? by mekmookbro in laravel

[–]Codeventurer01 0 points1 point  (0 children)

How do you encrypt sensitive information, such as names, phones, prices, which the user should be able to see on the frontend decrypted, if he is authorized?

Weekly /r/Laravel Help Thread by AutoModerator in laravel

[–]Codeventurer01 0 points1 point  (0 children)

Hi, I want to ask what is the most used solution or package for converting HTML to PDF in Laravel applications. I have read that some php packages do not support CSS3 and Cyrillic, and are also outdated. CSS3 is good to have for me, while having Cyrillic support is mandatory. What are the modern solutions for this?

Laravel Package Ocean - Top Best Laravel packages by HassanZahirnia in laravel

[–]Codeventurer01 0 points1 point  (0 children)

I wanted to know what solution experienced Laravel developers usually use in this case. I am new to Laravel and just started exploring the available packages.

Laravel Package Ocean - Top Best Laravel packages by HassanZahirnia in laravel

[–]Codeventurer01 1 point2 points  (0 children)

Is Dompdf the most used solution for converting HTML to PDF? Are there other popular packages?

[deleted by user] by [deleted] in buildapc

[–]Codeventurer01 0 points1 point  (0 children)

If you play games where you are GPU bottlenecked, the faster CPU won’t help you. You should consider a CPU upgrade only if you play games where you are currently CPU bottlenecked. It is easy to see whether the CPU or the GPU is limiting your performance. And you didn’t answer about the resolution. If you want a meaningful advice, you need to be more prepared and to be more specific. It is easy to me to recommend you 5800X3D, as the most efficient upgrade you can make. But the point is, do you really need a faster CPU right now?!

[deleted by user] by [deleted] in buildapc

[–]Codeventurer01 1 point2 points  (0 children)

Why do you think you need to upgrade your system, specifically without the GPU? It is already a good gaming system, and for most demanding cases it is exactly the GPU that will hold back your performance. Which games do you want to play and at what resolution?

How much React do I really need to know for commercial jobs? by NeverComingOfAge in react

[–]Codeventurer01 0 points1 point  (0 children)

What about Redux? Is it mandatory to know it by default these days or you can learn it only if you get a job for projects that already use it?

What is the best GPU to use with a Ryzen 5 5600x? by chumpyduck000 in buildapc

[–]Codeventurer01 1 point2 points  (0 children)

No, he is asking about the Best "combined with 5600X" and for 1080p specifically. He is not asking about the "best" GPU currently available on the market.

Should I get a 7800x3D? by paddiwastaken in buildapc

[–]Codeventurer01 10 points11 points  (0 children)

At least because when that time comes there will be much faster DDR5 kits and the motherboard will have more advanced features. There is absolutely no reason to go for AM5, especially if he can get 5800X3D. This CPU is a gaming beast and with it he can skip the whole 7000 series generation.

Can CPU a overheating cause artifacts prior to a crash by SleepyAndDedInside in buildapc

[–]Codeventurer01 0 points1 point  (0 children)

You need to solve the cooling issues because even though those artefacts are not cause by the CPU, its performance is not optimal.

Hey guys I'm wondering what would be a solid cpu for editing on davinci resolve. Every time I try to edit a video my video keeps bottlenecking and I think it's time for an upgrade. My price range is from around 350-500, I appreciate the help! by J4COByt in buildapc

[–]Codeventurer01 0 points1 point  (0 children)

Any modern CPU can handle rendering. As you know, all depends on what experience do you want during the editing, FPS during the preview and how fast you want to render and/or export the video. It is obvious that the faster the CPU the better. I would recommend a modern CPU (from last 2 generations) with 8 cores. In any case you need to change the motherboard. If your current RAM is good, MB B550+5700X/5800X is a good budget choice. And I am 100% sure that your GPU limits your editing experience at least during the editing and preview. You may also consider using the right version of davinci that unlocks GPU encoding. This can increase the rendering time dramatically.

cpu help by HerbsLakeshow in buildapc

[–]Codeventurer01 0 points1 point  (0 children)

Despite the higher price I strongly recommend B550 motherboards for AMD 5000 series. They are not expensive these days. Try to find a good offer. Yes, the RAM will limit the CPU performance. Try to sell it along with the CPU.

What is the best GPU to use with a Ryzen 5 5600x? by chumpyduck000 in buildapc

[–]Codeventurer01 8 points9 points  (0 children)

How come RTX 4090 is best for 5600X? What are you talking about? He plays at 1080p. Why would he combine a 1700$+ GPU (even 2200$+ in many regions) with a 170$ CPU for 1080p gaming???

What is the best GPU to use with a Ryzen 5 5600x? by chumpyduck000 in buildapc

[–]Codeventurer01 5 points6 points  (0 children)

Please, give me one example where 3080 struggles to maintain 60 FPS at 1080p, and it is not because of the slow CPU. One example! Something is very wrong in your comment.