Laravel is an open-source PHP web development framework created by Taylor Otwell. Laravel helps you create applications using simple, expressive syntax.

learn more… | top users | synonyms

0
votes
0answers
56 views

Simple application to experience encapsulation

Looking at the code, is this a proper example of encapsulation? additionalComputer.php (class) <?php /** Counts up the Number of Additional PC Options * and stores them into an array then sends ...
2
votes
0answers
78 views

Laravel model and controller interaction

I want to know if I'm going about creating and calling two functions from my model to my controller in the simplest and cleanest way. Model: public function getPosts() { $post = ...
2
votes
0answers
81 views

Laravel 4 clean code review of users controller and model, trying to maintain MVC structure

I'd like you to review my attempt at creating an authorization class and let me know if there is re-factoring to be done and/or how I can make the code cleaner and abide by the MVC structure. ...
2
votes
1answer
128 views

How do I reduce the if..else soup in this Controller function?

The processing is the same, but the response type differs based on whether it's an AJAX request or not. One way I can think of is to store all the response calls inside closure functions, and return ...
0
votes
1answer
354 views

Multi-page form attempt

I have just started playing around with L4 and would like to get some feedback on how I implemented a multi-page form Here are my routes: Route::model('appointment', 'Appointment'); ...