Show HN: Laravel 3.1 PHP Framework. Includes awesome ORM.
1–10 of 10 posts
Re: Show HN: Laravel 3.1 PHP Framework. Includes awesome ORM.
#2Re: Show HN: Laravel 3.1 PHP Framework. Includes awesome ORM.
#3This looks to be a very nice php framework. I used to be all over codeigniter or fuelphp, but since moving to ruby (rails & sinatra) I am happy to see php frameworks like this springing up.
great work.
Re: Show HN: Laravel 3.1 PHP Framework. Includes awesome ORM.
#4Re: Show HN: Laravel 3.1 PHP Framework. Includes awesome ORM.
#5In addition, the idiom of static calls for everything seems strange. Why was that pattern (or anti-pattern) chosen above other, more OO options?
Re: Show HN: Laravel 3.1 PHP Framework. Includes awesome ORM.
#6The ORM looks better than PHP ActiveRecord, though it's kind of weird that validations live outside of the database models.
Re: Show HN: Laravel 3.1 PHP Framework. Includes awesome ORM.
#7The link should probably have gone to http://laravel.com/docs instead of the Routing page. The ORM looks better than PHP ActiveRecord, though it's kind of weird that validations live outside of the database models.
I'm assuming you could put a static $validationRules on a model and grab it in a controller for validation, but that it's not described/recommended/defaulting to that behaviour is a bit disappointing.
Re: Show HN: Laravel 3.1 PHP Framework. Includes awesome ORM.
#8This is an excellent example of good documentation. And for some reason it is refreshing to not see a twitter bootstrap site as well. This looks to be a very nice php framework. I used to be all over codeigniter or fuelphp, but since moving to ruby (rails & sinatra) I am happy to see php frameworks like this springing up. great work.
Re: Show HN: Laravel 3.1 PHP Framework. Includes awesome ORM.
#9The link should probably have gone to http://laravel.com/docs instead of the Routing page. The ORM looks better than PHP ActiveRecord, though it's kind of weird that validations live outside of the database models.
Agreed that validations outside the models is a bit weird. There are times when you have 'business logic' validation rules that aren't 'data validation' rules, but we almost always have data validation rules that match up with a particular model/table. Forcing those to be developed and documented apart from each other is odd. I'm assuming you could put a static $validationRules on a model and grab it in a controller…
There's no reason to tie a validation system into a model. That's enough justification for it not to be done. You have the flexibility to implement it easily in whatever way you see fit.
Re: Show HN: Laravel 3.1 PHP Framework. Includes awesome ORM.
#10Earlier quoted context omitted.
Agreed that validations outside the models is a bit weird. There are times when you have 'business logic' validation rules that aren't 'data validation' rules, but we almost always have data validation rules that match up with a particular model/table. Forcing those to be developed and documented apart from each other is odd. I'm assuming you could put a static $validationRules on a model and grab it in a controller…
Laravel isn't the kind of framework to lock you into a specific way of doing things. It's different than what you may expect if you're coming from Symfony, Kohana, CodeIgniter, or Fuel. There's no reason to tie a validation system into a model. That's enough justification for it not to be done. You have the flexibility to implement it easily in whatever way you see fit.
Hell - why have models? There's no reason to tie a model in to a framework - just be flexible and do it however you want, right?