jlrdw wrote a reply+100 XP
4d ago
I agree with @martinbean and I have also used AI. But it gets side tracked easy. Use as a tool only and test and verify any AI code. Do your own Authorization and Authentication code, don't rely on AI for that.
Watch some of the AI videos, it is stressed about AI getting way off base (side tracked).
AI pulls data from other sources and many time it's old or wrong.
Be careful.
jlrdw liked a comment+100 XP
1w ago
I just checked my code with Laravel 12 and Yajra 12 and it works fine.
So it works with Laravel 12 and 13 without any problem.
jlrdw wrote a reply+100 XP
1w ago
It is easy to build your own table with in place editing, add on the fly, etc.
But first time there is a learning curve, but worth it.
jlrdw liked a comment+100 XP
2w ago
Here are the skills I'd consider the minimum requirements for a full-stack junior position:
- Basic coding
- HTML
- CSS
- Basic understanding of databases
- Basic understanding of networking
- Basic understanding of security
- Some experience with a backend framework (Laravel, Django, Express, etc.)
- Some experience with a frontend framework (React, Vue, Svelte, etc.)
If you can't explain the request-response model or don't know the difference between an array, a map and a set, your GitHub is completely irrelevant.
jlrdw liked a comment+100 XP
2w ago
@june92 Seriously, how many questions are you going to ask on this topic…?
You keep asking questions that if you do X, you will magically be a senior developer, or if you do Y, you will magically get a job. That’s not how the industry works.
jlrdw liked a comment+100 XP
2w ago
Laravel is only a framework, a tool to develop. It's like a hammer. It's not because you have a hammer that you are a good carpenter. A carpenter has to know his job.
For the developers, it's exactly the same logic : it's not because you know Laravel that you are a good developer.
What is important is to acquire an approach. If you have the good approach, then coding is only manipulating lines of code.
And to acquire an approach, it's not just learning how to hammer nails, how to use Laravel or VueJS or Symfony or any language. Acquiring an approach needs that you have been confronted with problems and that you have experienced many solutions to solve this problem.
Furthermore, because development is so vast that you just can't know everything, you need to work with other people, not mandatory with your own team (you can for example work as a freelancer), but also sharing on social networks (like Laracasts).
So acquiring an approcha is possible only if you are curious with the stacks and over all if you listen what more experienced people advise you.
That's called experience.
jlrdw liked a comment+100 XP
2w ago
Never stop learning, that's sure, development technologies evolve very quickly.
Forget all the buzz words ... what buzz words ?
jlrdw wrote a reply+100 XP
2w ago
Maybe code it like a pedigree program.
jlrdw wrote a reply+100 XP
2w ago
Two things:
- When you apply, actually know how to code.
- Be the type person that is a problem solver
On point one, you either know or don't know. If you know how you are good to go.
jlrdw wrote a reply+100 XP
3w ago
Will there be multi pick and multi drop?
jlrdw wrote a reply+100 XP
3w ago
There is no such this as a serverless database. The term is just a marketing misnomer. Managed for you is what it really means.
Cloud is also a marketing term nothing more. They are servers.
Companies love putting fancy labels on things for sales.
And I am not referring to desktop DB's.
jlrdw wrote a reply+100 XP
3w ago
Are you sure cache isn't what you are after? For session data to be displayed just load the page that uses that session data. I don't understand why it would take 30 seconds.
But sessions are temporary don't forget. They are generally used during the interaction with the application.
If other data needs storing for retrieval use another table specific for that. You should never have to "query" sessions as they are available anyway.
Like a cart, store the cart in a cart table. and when the cart data is needed put in session if user continues to shop.
But so many ways to deal with this stuff. But session should have garbage collection. A session table isn't meant to permanently store data, it's meant for temporary data.
jlrdw wrote a reply+100 XP
3w ago
If it offers an update but doesn't work then there has to be an issue with the updater code.
That's my guess. Are there any issues on this already on Github?
Edit:
Found this: https://github.com/laravel/installer/issues/510
jlrdw liked a comment+100 XP
3w ago
jlrdw wrote a reply+100 XP
4w ago
I would suggest code an app first following MVC and laravel conventions which is usually all that is needed. Then do any evaluations on the app. You may be jumping ahead of yourself.
jlrdw wrote a reply+100 XP
4w ago
I went ahead and ask AWS AI assistant this:
is AWS Well-Architected basically guidelines
The answer:
Quote
Yes, AWS Well-Architected is essentially a set of guidelines and best practices. It's a framework developed by AWS to help you build secure, high-performing, resilient, and efficient infrastructure for your applications. The framework is built around six pillars:
Operational Excellence - focuses on operational processes and continuous improvement
Security - prioritizes strong security measures and data protection
Reliability - ensures systems can recover from failures and meet demands
Performance Efficiency - optimizes resource usage for performance
Cost Optimization - manages costs effectively
Sustainability - minimizes environmental impact
AWS also provides the AWS Well-Architected Tool to help you review your workloads against these best practices and get recommendations for improvement.
Please let me know if you have any follow-up questions. I can also connect you with an AWS Sales Representative for further discussion.
Unquote
Bottom line if using AWS they can answer your AWS related questions.
jlrdw wrote a reply+100 XP
4w ago
Is this in a docker container?
jlrdw wrote a reply+100 XP
4w ago
The aws well-architected framework is just things you do and check concerning your app. Sort of a check list. But yes you can use AWS to deploy to (host) the app.
jlrdw wrote a reply+100 XP
4w ago
Who are the policies for? If users why an API why not a regular web application.
jlrdw wrote a reply+100 XP
4w ago
Follow what @tray2 mentioned and follow laravel conventions. Namely MVC.
cloud architecture and virtual infrastructure
Companies like throwing fancy names on things like "cloud".
It boils down to:
You have code on a server that runs. Cloud is a fancy name for a server.
jlrdw wrote a reply+100 XP
4w ago
All your Github code shouldn't be a portfolio. Have one good example site to use for an example.
jlrdw wrote a reply+100 XP
4w ago
It's a CSRF error, your token was probably set.
jlrdw wrote a reply+100 XP
1mo ago
If it's working code just needing some refactoring, why wouldn't they.
jlrdw wrote a reply+100 XP
1mo ago
Do you mean use it or fix it for you?
jlrdw wrote a reply+100 XP
1mo ago
I know https://www.wps.com is an official site.
See:
https://en.wikipedia.org/wiki/WPS_Office
I run links through Virustotal as well. Be aware they embed characters in some links to look official.
I also check country of origin for software and stay away from some countries, but that's your choice.
I also do backups of my drive with Macrium Reflect. If you have Linux there is software for that, search.
jlrdw liked a comment+100 XP
1mo ago
Conventions like MVC exist because they are the most practical approach for most projects.
Of course this can be overly structured for very simple sites, and not structured enough for much larger projects.
Yes, you could write data straight from the request to the model, this might work for simple forms, but what when the request involves MULTIPLE models? What if you need to run business logic on the data; where would you put that?
You can write php any way you like, but if you write a decent amount you will wish you had been more careful about the way it was built in the first place.
jlrdw liked a comment+100 XP
1mo ago
@randy_johnson You could also just dispense with it all and put everything in a single index.php script.
jlrdw wrote a reply+100 XP
1mo ago
jlrdw wrote a reply+100 XP
1mo ago
VC is fine in some cases. If using query builder instead of eloquent for example.
In java many time I'd use VC, meaning servlet and view.
But usually in a larger app it's best to go full MVC. I know in laravel a lot of people do as you do and store in the controller. I as well, but for queries to retrieve data I use full MVC. I make use of query scopes also when needed.
I try to keep the controller lean. I'd rather have a fatter model.
jlrdw liked a comment+100 XP
1mo ago
I accidentally stabbed myself in the foot. Is there any way to unstab my foot? I only have two feet and this one is used to kick the cat so I cant afford to lose it.
jlrdw liked a comment+100 XP
1mo ago
Funny comparison ;).
jlrdw wrote a reply+100 XP
1mo ago
Look over: https://docs.digitalocean.com/products/snapshooter/how-to/back-up-managed-databases/
But I backup at least daily depending on the app.
jlrdw liked a comment+100 XP
1mo ago
I regularly use AI.
When I started using AI, I was impressed about the results, but there was frequently errors, too frequently. I lost time because of using AI.
Now I'm using AI only to save time for writing code I already know how write it, but much faster to write by the AI : I say to AI exactly what I want and there are less errors, I just have to correct some mistakes.
If you don't know what you need, the AI is not the best approach to code.
You must know what you need, then you can explain the AI exactly what you need, and the AI executes.
According to me you don't need EDA for your example.
I often say to me that I should always code as easy as possible (KISS principle).
jlrdw liked a comment+100 XP
1mo ago
I think you should learn how to code, and then use AI as a tool, and not as a developer.
jlrdw liked a comment+100 XP
1mo ago
Honestly, ignore the AI on this one. What you’ve written is a solid, clean Action class. It’s readable, it handles the transaction properly, and it gets the job done.
EDA is fantastic for decoupling, but it’s absolute overkill for a simple stock adjustment. You only really need to go down that road if a stock change needs to trigger a bunch of unrelated side effects like hitting a third-party API, sending emails, or clearing remote caches and you don't want to bloat your main logic.
jlrdw wrote a reply+100 XP
1mo ago
Be careful using AI, it gets side tracked a lot. And do not use it for authentication or authorization, write your own. Know how to do these things without AI before using it as a tool.
Also see my reply here: https://laracasts.com/discuss/channels/ai/gemini-vs-claude-with-boost?page=1&replyId=975232
But I knew what to check to ensure AI was correct.
If AI seems side tracked, start over. Otherwise it gets more side tracked.
jlrdw wrote a reply+100 XP
1mo ago
I agree with @martinbean and I see no reason to obsfucate code.
The framework part is open source anyway. And any application done in laravel, any knowledgeable developer can duplicate anyway.
If really concerned about "hiding" code I suggest have a SaaS application, that way an end user never actually sees the code.
jlrdw was awarded Best Answer+1000 XP
1mo ago
It's already protected if the repo is private. Besides any modern app can be duplicated anyway by a knowledgeable developer.
Take this forum, can you see all the code used, no. Not counting the fact he shares how it's done. But if it was a private repo you couldn't.
I would suggest have a private repo for the client.
jlrdw wrote a reply+100 XP
1mo ago
Just FYI I do my own. For Windows I download the zip files for mariadb, apache, php. Setting up is a little learning curve at first, but once you do it, it becomes easy.
And Linux, just install what you need.
Never used a MAC.
Digital Ocean has some good how to articles.
jlrdw wrote a reply+100 XP
1mo ago
Has it been checked for safety?
jlrdw wrote a reply+100 XP
1mo ago
I clicked the link and after getting out of the error page it seems laracast.com looses scroll. So somewhere Jeffrey seems to still have a CSS error.
jlrdw liked a comment+100 XP
2mos ago
I think if you're new go for it and give a month or two of studying. I think you're lucky to have it because it wasn't around when I started and everything has changed so much especially front end.
jlrdw liked a comment+100 XP
2mos ago
For me Laracasts has been worth every penny, and if you are missing something you can always contact the Laracasts team and ask for a more specific course on something, and if you are lucky they will create it.
jlrdw liked a comment+100 XP
2mos ago
Policies is great to keep all authorizations at the same place.
A service is to handle business logic, you shouldn't write any authorization code in a service.
For example, in my code :
-
the services only execute the code for the business logic : get, store, update, delete, ...
-
the policies contain the authorizations
-
the controllers check for authorizations via the policies and then execute an action via the services
jlrdw wrote a reply+100 XP
2mos ago
Have you tried hasFile with the thumbnail?
The dd ends execution.
jlrdw wrote a reply+100 XP
2mos ago
Dis you tell apache new htdocs location?
DocumentRoot "/xampp/apache/htdocs"
<Directory "/xampp/apache/htdocs">
jlrdw wrote a reply+100 XP
2mos ago
Are you sure Livewire 4 was pulled in?