Комментарии:
After almost a decade leaving PHP for JS, it seems like I come a full circle to actually go back and take it serious again. Laravel seems like a much better tool (framework) than anything that we see in JS community. Yes, Next or Remix doesn't come close.
To actually have a framework where you can deploy a production ready MVP in a weekend as a Laravel novice is just mind blowing.
This was fun, but for the record if you run npm run dev instead of build, it live reloads :)
Ответить__("Dashboard"), __() is for language translate purpose
ОтветитьLooking to learn Laravel and PHP to make an app myself so thank you for reaffirming that decision. Love to see more content in this space.
ОтветитьI am a JavaScript developer working in Laville and it is just not an environment. I enjoy. Next JS feels so intuitive and Laville feels bloated and cumbersome with a lot of extra garbage built-in into every package. Maybe if I built what I’m working on from scratch. It wouldn’t feel so confusing and messy. PHP is aggravating for me. I have been working on learning Go for the backend, and it feels way more intuitive to me.
ОтветитьTo summarize, you think PHP is okay/cool/whatever because you can generate a website using some random framework and... it works? I'm not hater, just wanna point that this video is ultra dumb.. dude you didnt even show PHP code :|
Ответить+1 sub
ОтветитьInertia abstracts away communication between FE & BE, it's like having a React template, you don't have to worry about doing API calls manually, you build your React/Vue page and inertia takes care of preloading data from the server when the page is rendered and then all updates are done async via special json format. The FE component just takes in the props and renders.
ОтветитьPhp is like crypto. It died 400 times but everybody still use it
Ответитьrun npm run dev if you want to see live reload
ОтветитьLaravel Vs Others:
Laravel Has The Best Documentation
"HMR how cool" hahaha, great video!
ОтветитьPeople always forget that React was influenced by XHP which is just another way of writing PHP.
ОтветитьTruly outstandingly Honest 👏
ОтветитьReact or Vue, Inertia and Laravel, I am amazed with these.
Ответитьyou see laravel root directory structure it tell you a sequence of developing
ОтветитьLaravel is actually cool but php without laravel is not imho XD
ОтветитьI Love PHP.
ОтветитьI've been developing in PHP for 11 years now. Always worked for very small companies so my own opinions on using a framework were never challenged. I thought that using a framework would be severely limiting. About 5 years ago, a dev came on board singing the praises of Laravel. He was right and I haven't looked back.
ОтветитьLaravel docker... no thanks😅
ОтветитьAwesome video! How do I do this terminal setup?
ОтветитьI'm sure, you are not using it first time. are you are taking time to complete this video
Ответитьjs ecosystem looks much better LOL
ОтветитьDid you ever build that video using Vapor? I’d love to see it. I’m starting a b2b saas using Laravel and I want to use Vapor.
ОтветитьWith Vite you can get live reloading on blade files.
ОтветитьPHP 8.2 is COOL, laravel is dogshit
ОтветитьLaravel is great. The only thing I don't like about the MVC frameworks is that I can't figure out a way to do smooth animated page transitions
ОтветитьYour terminal colors are so much cooler than mine.
ОтветитьI love Laravel and have been using it for years! It's a stable and battle tested framework with a LOT of stuff out of the box, and the stuff they have included are well thought out and implemented in a away so it makes it easy to work with. The framework is using the MVC model (Model (database table representation), View and Controller (business logic, CRUD = Create, Read, Update, Delete, etc).
It's a GREAT framework.
The {{ __('Word') }} is for localization purposes.
Edit: {{}} are Laravel's standard syntax for bringing out variables from the controller. The __() is the localization part. Just for clarity.
Makes it easy to translate using simple translation files.
Inertia can be used even without Laravel and it enables you to pass array of key => value pairs from your backend code to a frontend Vue (or React) component that then receives those named array keys as properties set to values that you've given to those properties in your backend code. It's literally a glue between frontend and backend so your app can be more backend heavy and frontend is just made up of components that receive data they need from your backend controller that renders them. Also, routing is done on the backend side, not in Vue or similar
ОтветитьI wish I'd seen this a month ago. I used to use PHP but haven't done any web development for over 10 years. Just started a new job and built an application from scratch, just used Bootstrap for design. Laravel would've been so much easier lol
ОтветитьIn the last few years, with the development of nodejs, php has been ridiculed a lot
ОтветитьLaravel + Infyom crud generator = Rapid Enterprise Apps
ОтветитьPhp is one of the most ABHORRENT languages I know:
1. Don't you feel yourself superstupid and superdumb every time you have to type "<?php>" in the beginning of the file???
2. And then you shouldn't close this tag?? Geee....
3. And then, this tag is the reminder that you are able to (and some still do) mix Php, Html and even Javascript by means of mixing the <?php> tag with regular HTML… Geee
4. And then, your codebase is located in the AREA YOU SERVE ON THE INTERNET.... Isn't that STUPID? While you typically shouldn't, some people still leave around various API keys etc in the code. But even if you don't, your ".env" file is still sitting in the AREA YOU SERVE ON THE INTERNET.... And the Git repository is of course there too, with Git config etc..... Geeee people, one big stupid GEEEE...
5. Ah, you're backed by Apache! It's protecting you well! (if it is configured properly; did you not forget to re-configure Apache when you migrated to a newer server?) WOW! What a statement! Apache! Is it still alive?? I mean.. what is all that "modphp", "mod-this", "mod-that" bullshit and how do you know which to load and which not to load? And why not load fucking all of them if you ever need them?
6. Oh yeah, and when debugging, you have to log your debug into the ERROR LOG OF APACHE. Seriously? So, besides just sounding stupid, your log messages will be mixed with other functional log messages from Apache. But then, like I said, it's also stupid because it's the ERROR LOG. Just one Gee on top of another Gee, hard to say which one is Geeer
7. Typehints started appearing just recently, without them you really create a mess of a program when forgetting what argument what function is accepting, in which cases they can or cannot be "null" etc. And while the typehints of a "healthy human" have just started appearing as of Php 8.0, the majority of the code that has been written DOES NOT include typehints
8. Dealing with objects (like { name: "Barbara Smith" }) is super ugly in Php. Those stupid square brackets. Even the ugliest language of Python has somewhat better handling of objects
9. "array_map()" is backwards. How do you chain those? Gee people
10. Module import is the ugly garbage. You have to use another, third party PACKAGE just to be able to import a class!
11. Php stands for Personal Home Page, you didn't know? It's for creating a homepage, the kind you can easier do in Microsoft Word. NOT for a production server.
Isn't there a difference between technology and programming language?
ОтветитьI've been using PHP for about 17 years, and it would never be my first choice unless I was doing something fast where quality wasn't an issue. Like a startup app, or simple web app. Maybe I'm biased, I work with big products with complex domain logic and I think Symfony is just better for that kind of thing.
ОтветитьI’m digging it!
Ответитьfeels like a huge paid advertisement
ОтветитьLaravel is for me the best framework in PHP and the Error Page is very helpfull on development to fix the error.
Ответить"I installed my weight in [npm] packages" - after first Hello World app
ОтветитьWelcome to the Laravel world, @adamdotenv. o/
ОтветитьIf you run `npm run dev` instead of `npm run build`, it will enable HMR.
ОтветитьCool video! I have a question, what's the name of text editor that you are using?
ОтветитьAs a React/Node developer I miss working with Laravel...
ОтветитьPHP is garbage. A web programming language not supporting Unicode natively. Expect for English web site, PHP is a major pain in the A55.
Ответитьnpm run dev for auto reloading, npm run build is for production
Ответить