It sounds like you just don’t have the time to learn different frameworks. Tailwind and bootstrap are not the same thing. I am going through a similar process but I’m personally able to take the time to learn. That might not be the case for you with your project and that’s understood. But I don’t think it’s fair to trash laravel when it is giving you options (not opinions). You don’t have to use any of the scaffolding that it comes bundled for your convenience. You’re free to do things as you did with the last version of laravel.
It's honestly kinda disappointing how little support for enterprise Laravel has. It's a great framework and already excels at helping to do basic things, but a lot can be done for making it easy to do the types of things you're suggesting. Or even things like multi-tenancy is difficult to do if you want to develop a SaaS product.
I'm suggesting just make it public. Why charge money for it when it's promo for the SaaS platforms they're building, and also getting people to learn and use Laravel?
Why not use Twitch? Is the issue being able to sell digital tickets? Offer a download code to buyers to download VODs and try some of the premium SaaS platforms that the Laravel crew have been developing. But on Twitch, you're going to expand your reach and people will see the cool stuff you're building.
Uh it sounds like you don't know what you're doing. It depends on the context. Every company I have worked at, for static deployments has used .env files or equivalent (both very large and small applications). They are always gitignored, never public, nor are they ever in the web root. For those familiar with services like AWS, when using ECS or beanstalk, environment variables are configured in AWS and physical .env files do not get deployed.
It takes like 5 minutes to learn an ORM, and is quicker to write, and provides more visual clarity to a developer.
I'm not saying that you learn ORM in place of writing raw SQL. Every developer should know raw SQL, should know all of the fundamentals from indexing, primary keys, foreign key constraints, cascading, etc. I think a developer who learns ORM and doesn't learn SQL is setting themselves up for a plateau later in their career. But I'm saying that if you know SQL, then by all means ORM is fine if you know when ORM doesn't make sense.
I don't think there should be a default disdain for Eloquent/ORM unless you've graduated to a place in your app where you are better off writing your own queries.
Most queries are entirely fine with Eloquent. I don't get why someone would always trade code that's quicker to write, and easier for other developers to read (e.g., Eloquent), in lieu of wanting to write pure SQL.
When you write an application, a large scale one, and I do work on one, and we use Laravel/Lumen in some places--my gut instinct isn't to cut away Eloquent. If we notice there is an opportunity optimization that is needed, due to Eloquent, we will do it. Otherwise it's pre-mature and a waste of time.
One thing that would be beneficial is being able to set this up so that you can build via microservices.
A common problem with this approach is that if your PHP has to communicate with, say a lumen service via lumen1.localdev, PHP doesn't know how to find lumen1.localdev, you need to route it through some sort of dnsmasq or consul, etc.
That would really help for us folks who are building for scale.
You don't need to do anything special to your application to scale vertically, that's just resizing your instance for more resources or moving to a bigger server.
Scaling horizontally is when you need to add hardware to scale. e.g., adding 5 servers behind a load balancer. Things like where you store your cache and sessions, etc. start to matter.
Why bother with all that when the migrate commands already support this natively?
Create an Artisan Console command that does the Customers loop you have in the example to grab the tenant connection name, or dynamically create it on the fly, and then have the command call the migrate artisan command using:
migrate --database=<tenant_db_connection_name>
All the Laravel database commands can do this (seeding, refresh, rollback, etc)
I'm not a fan of October. We tried it. It's okay if you need something super simple, but extending it is a nightmare once you need to do something actually complicated.
Pssst... he might not be a very good developer
It sounds like you just don’t have the time to learn different frameworks. Tailwind and bootstrap are not the same thing. I am going through a similar process but I’m personally able to take the time to learn. That might not be the case for you with your project and that’s understood. But I don’t think it’s fair to trash laravel when it is giving you options (not opinions). You don’t have to use any of the scaffolding that it comes bundled for your convenience. You’re free to do things as you did with the last version of laravel.
I guess
post->user_id == user->idis too much of a pre-optimization!The tier of PHP developers:
Joomla > Wordpress > Drupal > (Symfony & Laravel)
I think it's harder for people with only Joomla/Wordpress/Drupal experience to get better jobs because they're stuck doing old and archaic things.
It's honestly kinda disappointing how little support for enterprise Laravel has. It's a great framework and already excels at helping to do basic things, but a lot can be done for making it easy to do the types of things you're suggesting. Or even things like multi-tenancy is difficult to do if you want to develop a SaaS product.
Is that screenshot supposed to be a good example of a routes file?
Where are the named routes? Groupings? Middlewares? Prefixes? You wouldn't see a route like that in an app with even a little bit of complexity.
I'm suggesting just make it public. Why charge money for it when it's promo for the SaaS platforms they're building, and also getting people to learn and use Laravel?
Why not use Twitch? Is the issue being able to sell digital tickets? Offer a download code to buyers to download VODs and try some of the premium SaaS platforms that the Laravel crew have been developing. But on Twitch, you're going to expand your reach and people will see the cool stuff you're building.
Is graphql the new nosql?
Ok I understand now. You are right. I haven't used phpdotenv in a multithreaded environment.
Uh it sounds like you don't know what you're doing. It depends on the context. Every company I have worked at, for static deployments has used .env files or equivalent (both very large and small applications). They are always gitignored, never public, nor are they ever in the web root. For those familiar with services like AWS, when using ECS or beanstalk, environment variables are configured in AWS and physical .env files do not get deployed.
Wasn't the original post about Eloquent?
It takes like 5 minutes to learn an ORM, and is quicker to write, and provides more visual clarity to a developer.
I'm not saying that you learn ORM in place of writing raw SQL. Every developer should know raw SQL, should know all of the fundamentals from indexing, primary keys, foreign key constraints, cascading, etc. I think a developer who learns ORM and doesn't learn SQL is setting themselves up for a plateau later in their career. But I'm saying that if you know SQL, then by all means ORM is fine if you know when ORM doesn't make sense.
Yeah, don't worry about it. You dodged a bullet.
I don't think there should be a default disdain for Eloquent/ORM unless you've graduated to a place in your app where you are better off writing your own queries.
Most queries are entirely fine with Eloquent. I don't get why someone would always trade code that's quicker to write, and easier for other developers to read (e.g., Eloquent), in lieu of wanting to write pure SQL.
When you write an application, a large scale one, and I do work on one, and we use Laravel/Lumen in some places--my gut instinct isn't to cut away Eloquent. If we notice there is an opportunity optimization that is needed, due to Eloquent, we will do it. Otherwise it's pre-mature and a waste of time.
what?
I hope it doesn't become like the Wordpress ecosystem.
This doesn't make your site secure?
One thing that would be beneficial is being able to set this up so that you can build via microservices.
A common problem with this approach is that if your PHP has to communicate with, say a lumen service via lumen1.localdev, PHP doesn't know how to find lumen1.localdev, you need to route it through some sort of dnsmasq or consul, etc.
That would really help for us folks who are building for scale.
You don't need to do anything special to your application to scale vertically, that's just resizing your instance for more resources or moving to a bigger server.
Scaling horizontally is when you need to add hardware to scale. e.g., adding 5 servers behind a load balancer. Things like where you store your cache and sessions, etc. start to matter.
Why bother with all that when the migrate commands already support this natively?
Create an Artisan Console command that does the Customers loop you have in the example to grab the tenant connection name, or dynamically create it on the fly, and then have the command call the migrate artisan command using:
migrate --database=<tenant_db_connection_name>
All the Laravel database commands can do this (seeding, refresh, rollback, etc)
OP pls answer this
Did I just read an advertisement for some agency?
This is cool, any plans to add methods for CRUD of groups/users, password changes, etc?
I'm not a fan of October. We tried it. It's okay if you need something super simple, but extending it is a nightmare once you need to do something actually complicated.