Laravel is an free, open-source web MVC framework for PHP.
0
votes
0answers
26 views
What is the best approach to create a modular application
I just started using the l5modular package from packalyst to make my application a modular one. What I'm looking to achieve is giving to my potential users the ability to upload remove and disable ...
0
votes
0answers
16 views
MVC single view file with multiple uses depending on passed in value
I'm using Laravel with Blade to build a simple maintenance application for my work. One of the functions of the application is to display simple statistics for a piece of machinery. To keep things ...
-1
votes
1answer
35 views
Understaing the “fillable” in Laravel migration [on hold]
Using models is one the best facts in Laravel, but when using a model, it is not like my "native" environment (J2EE, models declare all DB table colums), it has three variable, and which of them is ...
2
votes
1answer
55 views
Array vs Object for View in Laravel
First, yes This question is very similar to Arrays vs Objects in view template but my question sort of expands on this...
When deciding on whether to use an object or array to pass data to your view. ...
5
votes
2answers
143 views
Designing a ticketing system where the User and Administrator have similar but different functionality
I am designing a simple ticketing system in Laravel 4. The system will simply allow a User to create a ticket, and an Administrator to answer it.
The User will be able to:
View a list of his ...
-1
votes
1answer
116 views
How do front-end developers test pages when the files they are handed are PHP views? [closed]
Someone who has a PHP project invited me to do the front-end work on his site. I don't know PHP, I've only ever worked with HTML/CSS/JS files. I cloned the project files from GitHub, and all of the ...
5
votes
1answer
174 views
How to prevent multiple form submissions when user reloads the page
I'm currently working on a project which requires that we integration a 3rd party SOAP API to handle a number of basic CRUD type operations.
Our current implementation allows us to leveraging the ...
-1
votes
1answer
120 views
What might be a good way to get hands on experience with Object Oriented PHP [closed]
I am a Computer Science student. I took a course on OOP, and I understand the concepts (classes, extending, encapsulation, etc). I'm also a web developer, have been doing it for about three years; ...
0
votes
0answers
48 views
API Architecture
I have a Laravel web application. Imagine if our company has many customers. Each customer has one or more addresses. Each Address can have multiple fences and each fence has points which define ...
1
vote
1answer
132 views
Laravel using models
I started working with Laravel about a month ago and I started by reading the documentation etc. Now I'm working on a project in Laravel 4.2 and I skipped some parts of the full documentation. In my ...
2
votes
1answer
635 views
Laravel 5 Multi-App
So my work has a dashboard built in codeigniter where every app on the dashboard has its own subfolder in controllers / models / views and nothing is shared. I have been tasked with upgrading this to ...
-1
votes
1answer
364 views
Laravel - BLOB File Management System - Possible obstacles?
I'm working on this weird project where I need to upload huge files (500mb+) and store them in a postgresql table as a blob.
Before you start telling me that storing files in the database is bad and ...
0
votes
1answer
135 views
Validate polymorphic votes - Controller or Model?
I have a question because I don't want to do something wrong.
I have a polymorphic relation called votes. Well, I want to save votes but I need to validate if a user already has voted. But even if, ...
2
votes
0answers
206 views
Unit testing Eloquent outside of Laravel
How can I unit test my Eloquent models when I'm using the ORM outside of Laravel? What I'm hoping to do it run tests on each model but somehow mock the database connection/query/builder(?) object.
...
0
votes
1answer
378 views
Like structure table with Laravel and showing the most popular content at top
I am using Laravel to creating a website, my users can post questions and other users can write their comments under the post, each comment have Up vote and Down vote, and users can voting for ...
0
votes
2answers
75 views
What pattern do I use and how do I implement it for one method that will be handled multiple ways
My scenario: I am creating an application that will allow me to create a mapping of redirect url's that will point from the request url (the url in the old ecommerce solution) to the target url. There ...
1
vote
0answers
44 views
Database integration of Rails and Laravel apps
I have some very small apps on a VPS running ruby on rails and a co-worker also have some of his own apps running on laravel at another VPS.
So far we dont needed to share any data among the apps, but ...
2
votes
1answer
103 views
What should be the structure of a person to person store database?
I am going to create a person to person store with Laravel, a website where its users can share and sell their product or their mobile, TV, Computer, Shoes, Shirts, Books, Cars, Bags, Animal, etc.
I ...
1
vote
1answer
259 views
Laravel relationships and database schema
I am playing around with Laravel and came across something in the documentation for defining 1 to 1 relationships between tables that I would like to get feedback on.
The example in the docs is ...
2
votes
1answer
675 views
Should I use foreign keys in my database if I use laravel?
I'm creating a website with Laravel for the first time. I checked relationships documentation today and it seems that Laravel just uses simple SQL queries.
class User extends Eloquent {
public ...
1
vote
0answers
89 views
Managing customer-specific modules in a composer/PHP-based SaaS
I'm developing a business-to-business SaaS.
I expect that most of my customers will be able to use my mainline product, and I intend to deploy it in an independent instance for each customer. Some ...
1
vote
1answer
170 views
How to avoid switches? [duplicate]
I use Laravel as a PHP framework, although the question is not exactly about laravel, more about structuring controller methods.
I have a route to orders page. Depending on the user role I need to ...
1
vote
0answers
236 views
Properly design program database to reflect organization structure
I'm having trouble setting up my program's database the 'right' way. I was hoping you guys could give me suggestions on doing it properly. I am creating a database+client for a non-profit organization ...
2
votes
1answer
101 views
How does code produced on an open-source framework is affected by it's original license (MIT in this case)
I'm looking into building a new PHP commercial app for a client that will be hosted as a paid service and possibly resold to third parties with a non-compete clause.
I've tested a few frameworks and ...
2
votes
2answers
499 views
Best pratice for return json in a REST application?
I'm starting now with REST (using Laravel 4.2) and Mobile (Android, iOS, SP, etc.) applications.
Initially I'm checking if the request is ajax/json and then return a json response.
But this ...
0
votes
1answer
301 views
When to use packages or Repositories in Laravel?
I'm a Laravel (PHP) developer, and new with DI, Packages (workbench) and Repositories (Pattern).
I want to know about the best concept/methodology for a more flexible design; ie. the project can grow ...
0
votes
1answer
251 views
Is testability and mockability really that important in web development?
I'm reading this series on Laravel, and it's in great depth dealing with making everything testable, using Repository instead of just using the Models, using Dependency Injection and other obscure ...
0
votes
0answers
63 views
Laravel 4: Binding/linking two users together
I'm building a unittest system. At some point I want to bind two users together in order to make an assignment for those two.
So when the admin chooses to link two students together the system should ...
-1
votes
6answers
5k views
How can I team up two MVC frameworks without having them fight each other? [closed]
I'm creating a CRUD-based web project, and am thinking about using a server side MVC framework (such as CodeIgniter or Laravel) in tandem with a client side MVC framework (such as AngularJS). Is this ...
0
votes
1answer
1k views
I'm thinking to CSRF protect all public AJAX requests that return JSON, but I have some concerns
I'm thinking to CSRF protect all public AJAX requests that return JSON, because what's to prevent another site from spoofing the AJAX header and using the JSON as if it were a public API? I think CSRF ...
1
vote
1answer
179 views
Need help modelling a User/Project/Task relationship
So I'm creating a very simple project/task management application in Laravel 4 and I'm not sure how these relationships would work. I have a Project, Task and User model. A User can own a Project or ...
3
votes
6answers
1k views
How do you handle multiple developer configuration in a project?
I've been thinking lately about how I handle config changes between multiple developers on a project.
Specifically here about a Laravel project in PHP, but I guess this applies largely to all ...