Skip to content

u/newp

In this archive from Jan 2011 to Oct 2020

7
posts
40
comments
2
media
377
score

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.

1 points

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.

8 points

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.

3 points

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.

7 points

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.

3 points

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.

6 points

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.

7 points

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.

47 points

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.

0 points

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.

2 points

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)

1 points

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.

2 points

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.