0
votes
4answers
22 views

$.getJSON wrong URL in Knockout.js

I'm utilizing Laravel 4 PHP MVC framework and Knockout.js for a simple app I'm doing. I have set up a RESTful API and want to do a $.getJSON request from the client but the get request is sent to ...
1
vote
2answers
50 views

Injecting Dependencies in config() modules - AngularJS

Currently in app.js i have the following routes: var gm = angular.module('gm', ['gm.services','gm.directives','gm.filters','gm.controllers','ngSanitize']); gm.config(['$routeProvider', 'Path', ...
0
votes
1answer
65 views

Base URL in AngularJS

While dveloping my AngularJS app on my local WAMP server it resides in: http://localhost/Projects/myLaravelProject/public/ When calling routes as $http.post("/login", ...
0
votes
1answer
185 views

AngularJS and Laravel 4 controllers, multi page app

This question is regarding best practices and application architecture for Laravel 4 and AngularJS Is it advisable to create an RESTful application in Laravel 4 that serves a blade template for each ...
0
votes
1answer
86 views

Laravel 4 and AngularJS Templates

Is it possible to create a Laravel 4 RESTful API application and an AngularJS application that calls this API? Can AngularJS templates be stored in the laravel ./app/ folder or must they be served ...
0
votes
0answers
116 views

Laravel + AngularJS application structure

Currently im in the process of architecturing an application based on Laravel-4 and AngularJS I do not want to create a single page application. Is it ok to structure the application along the ...
0
votes
0answers
43 views

How to get cookie in javascript set by Laravel Auth?

I have a login that remembers the login through: Auth::attempt($credentials, true); // remember I believe (correct me if I'm wrong) this sets a cookie to be able to remember once the user exits the ...
0
votes
1answer
125 views

How to: pass data from controller to JavaScript in Laravel 4?

I'm developing a mobile web app with Laravel 4 and jQuery Mobile and I have some problems to pass data from Controller to JavaScript file. I find a solution but I think there is a proper way to do ...
0
votes
1answer
147 views

How to add functions in Bootstrap modal - Laravel

I'm currently developing a system with Laravel framework. Though, I'm not very familiar with MVC architecture yet. When I'm developing the system, I come across a problem which relates with this ...
2
votes
1answer
70 views

How can I be sure all collections have been populated?

I need to populate all my app's collections before presenting any view. The problem is, however, sometimes I have to refresh the page a few times before I see that all have been populated. As an ...
0
votes
2answers
146 views

Passing HTML dynamic table row data to PHP / Laravel

I am using an HTML table and dynamically adding rows to it via Javascript. I am trying to pass the data from these rows to PHP / Laravel using input="hidden". Adding the rows to the HTML page seems to ...
-1
votes
2answers
273 views

Laravel, converting data from raw query to JSON [duplicate]

Hy all, can anyone help me with converting some data which will be return from model(based on the RAW query) into JSON. So in my controller i have something like: public function get_index() { ...
1
vote
2answers
238 views

Using Laravel functions inside a javascript file that is included as an asset

Let's say I have a piece of jQuery javascript that binds to a div on load and dynamically defines an img in that div. Something like this: $(document).ready(function() { ...
1
vote
1answer
398 views

How to call one javascript asset only in laravel?

In my base controller, I added two asset inside: Asset::script('jquery', 'js/jquery-2.0.0.min.js'); Asset::script('test', 'js/test.js'); But when I called : Asset::script, all these two ...
0
votes
1answer
50 views

Complex web form, any JS component or plugin to make my life easier?

I'm working on a web form in an existing web application in which there's a bunch of simple fields (name, email, etc...) but also a more complex section, as seen below: I want to be able to ...

1 2
15 30 50 per page