what's so revolutionizing about it?
Nothing. They use the word "artisan" which makes me think it's made for hipsters rather than programmers. Almost everything is static, libraries are named like "Illuminate" and "Elloquent", it's as if an art student has worked out how to write static classes.
Show HN: Laravel 4 - This framework is revolutionizing PHP.
21–30 of 32 posts
Re: Show HN: Laravel 4 - This framework is revolutionizing PHP.
#22Really sorry to say this, but my eyes hurt from the text contrast. Maybe you should consider changing the font size?
Re: Show HN: Laravel 4 - This framework is revolutionizing PHP.
#23what's so revolutionizing about it?
Nothing. They use the word "artisan" which makes me think it's made for hipsters rather than programmers. Almost everything is static, libraries are named like "Illuminate" and "Elloquent", it's as if an art student has worked out how to write static classes.
Re: Show HN: Laravel 4 - This framework is revolutionizing PHP.
#24what's so revolutionizing about it?
As for the facade that lets you make a lot of static calls, y'know, I don't think that does significant harm, and it makes it possible to write Laravel code that's almost as easily readable/understandable as Flask and Sinatra.
Re: Show HN: Laravel 4 - This framework is revolutionizing PHP.
#25Very glad to see this on the front page. This is by far the best PHP framework out there. It still blows me away what it is capable of.
Hi, I'm currently a heavy codeigniter user, looking for a switch. Can you please give me some of these examples you speak of that blow you away? Thank you.
return Model::Find('asdf=1');
and it outputs a json serialized array as html. so your ajax action is like one line of code, yay. or you can $row = Model::Find('asdf=1'); and manipulate in php from there.http://www.youtube.com/watch?v=QSt9rBa_oUM this guys series on laravel is really good.
Re: Show HN: Laravel 4 - This framework is revolutionizing PHP.
#26Earlier quoted context omitted.
Hi, I'm currently a heavy codeigniter user, looking for a switch. Can you please give me some of these examples you speak of that blow you away? Thank you.
one that got me was in a controller you can: return Model::Find('asdf=1'); and it outputs a json serialized array as html. so your ajax action is like one line of code, yay. or you can $row = Model::Find('asdf=1'); and manipulate in php from there. http://www.youtube.com/watch?v=QSt9rBa_oUM this guys series on laravel is really good.
Actually, it renders a raw JSON response - a single object of 'unguarded' attributes (all by default) for the model with Content-Type: application/json set. It has nothing to do with HTML.
Your syntax is invalid too. To do what you want you'd actually call
return Model::where('asdf', 1)->first();Re: Show HN: Laravel 4 - This framework is revolutionizing PHP.
#27I used Laravel for a small project for the past couple months. Although I started web development in PHP, I am strictly a Ruby/Rails developer right now and I have to say working in Laravel felt very natural and right at home. I'm not saying that being Rails-like is merit in it's own right, but I had that same feeling with Laravel as I did when I first started using Rails. I'd highly recommend trying this framework a…
Re: Show HN: Laravel 4 - This framework is revolutionizing PHP.
#28I stopped reading the minute I saw they are using a template engine for rendering the views. I simply don't get it. Why would someone use a separate template engine when PHP itself is a very good one to use ? Why to add an extra layer to the app ?
We don't have to recreate anything, the views should be pure PHP, not code written in some that is then translated to PHP.
Re: Show HN: Laravel 4 - This framework is revolutionizing PHP.
#29I don't know why everyone it is so excited about this framework. I've had a quick look over the documentation a few months ago, when there was this hype around this new kid from the block thinking that there must be something really interesting. I stopped reading the minute I saw they are using a template engine for rendering the views. I simply don't get it. Why would someone use a separate template engine when PHP…