Skip to main content
Filter by
Sorted by
Tagged with
0 votes
3 answers
8k views

I've some areas in my form something like: <ul> <li> <input type="checkbox" name="post_categories[]" value="16">English First Main Category<br> <ul> <li><input ...
dr.linux's user avatar
  • 752
3 votes
2 answers
5k views

I'm sure it's very simple but I couldn't find any examples. I am using fluent in my Laravel application to log my users' logins and so I have created my own auth driver, however I am having a problem ...
Neo's user avatar
  • 11.7k
2 votes
1 answer
489 views

I have this list of things generated from an array, where the array value maps to the array key, which maps to a query in the database. Now the problem I'm facing is that when this list is included in ...
rococo polkadot bandit's user avatar
1 vote
3 answers
518 views

I'm trying out Laravel 4. When using the ORM to create a new user account, this is echoed to the page: array(1) { [0]=> object(stdClass)#103 (1) { ["id"]=> int(98) } ...
conradkleinespel's user avatar
0 votes
1 answer
696 views

I tried following the documentation found at http://net.tutsplus.com/tutorials/php/build-web-apps-from-scratch-with-laravel-the-eloquent-orm/ and http://laravel.com/docs/database/eloquent but it ...
user9507's user avatar
  • 319
2 votes
2 answers
458 views

I've just started using Laravel Framework and found a nice little guide for hierarchical-data (through this site) that I have working quite well. The only problem I've come across is running the ...
LewiG's user avatar
  • 267
1 vote
2 answers
3k views

I made a website with laravel for one of my clients, and they are using a shared hosting. And i installed laravel to its home folder, so public folder became the public_html folder in host, and i ...
Umut Sirin's user avatar
  • 2,502
4 votes
1 answer
4k views

I have the following tables with the following fields: person: id, lastname, firstname phoneboookentry: id, name I have the following two models: class Person extends Eloquent { public static ...
user avatar
0 votes
2 answers
1k views

I am exploring the possibility of using Laravel in our startup. Looking to explore it through an app that provides above all to see how that behaves and how it compares to codeigniter framework.
Rajan Chandi's user avatar
0 votes
3 answers
787 views

So, I was wondering which is the best way include a single view (views/login.blade.php) into a layout loader, so I won't have to repeat all the code again. This is my route that loads the login view: ...
Alex's user avatar
  • 7,708
2 votes
1 answer
290 views

In my PHP unit tests, I am using an SQLite in-memory database, which contains the following table: CREATE TABLE "battlegroup_request" ( "id" INTEGER NULL PRIMARY KEY AUTOINCREMENT, "battlegroupID"...
Aistina's user avatar
  • 12.7k
44 votes
4 answers
36k views

I am looking at getting into Laravel, it looks like an awesome framework, but it seems to be missing one vital piece of its documentation... A "Getting Started" tutorial. A simple blog ...
Hailwood's user avatar
  • 93.2k
2 votes
1 answer
2k views

Hi im trying to use blade to create a dynamic tracking code for my website. this is what i have so far i tried yielding straight to the piwikTracker var but got all sorts of errors passing it as a ...
Mitchell Bray's user avatar
3 votes
2 answers
2k views

I'm trying to setup a Laravel task to eventually be called as a cron job using the artisan interface. In trying to get a simple task working, I keep getting the error that Laravel can't find that ...
jamis0n's user avatar
  • 3,850
0 votes
3 answers
1k views

Been using laravel (current stable version) for 2 days now, and after reading the documentation... played a bit with the templating systems and some other stuff. Now after installing Authority bundle ...
Alex's user avatar
  • 7,708
385 votes
17 answers
445k views

How can I select a random row using Eloquent or Fluent in Laravel framework? I know that by using SQL, you can do order by RAND(). However, I would like to get the random row without doing a count on ...
DigitalWM's user avatar
  • 4,536
1 vote
2 answers
4k views

I have a basic form where i would like to extract the user input and then display the concatenated inputs from the form echo Form::open('url_encoder','GET'); echo Form::token(); echo Form::text('...
user1763208's user avatar
46 votes
10 answers
33k views

I am moving over the the Laravel framework, but I am having trouble with the database settings, Specifically, I have my environments setup, and they are working fine for the application.php config ...
Hailwood's user avatar
  • 93.2k
23 votes
3 answers
23k views

I am looking at switching to laravel for my next project. My next project is probably going to be a small site with a few static pages, a blog and a projects manager and will be using controllers not ...
Hailwood's user avatar
  • 93.2k
0 votes
1 answer
3k views

I have a bookmarklet that injects a button on a foreign webpage. When the button is clicked, a popup containing a page from my website appears. I am using a PHP framework called Laravel, tested using ...
Nyxynyx's user avatar
  • 64.1k
2 votes
1 answer
1k views

In my Laravel Project, I have following folder structures application/controllers/products.php application/controllers/products/categories.php In my products.php class Products_Controller extends ...
KKK's user avatar
  • 1,662
3 votes
2 answers
2k views

Im going to try to develop a web application like blogger(blogspot). I'm going to have users, every user will have a blog, the user can post in his blog, the post will have tags. Other users should be ...
FakeHeal's user avatar
3 votes
1 answer
2k views

I am new to this concept of DI, and IoC so i might be doing this completely wrong but i am trying to inject the Model that matches a controller into that controllers constructor (UserModel -> ...
silkAdmin's user avatar
  • 4,840
19 votes
4 answers
12k views

I have two fields i need to increment the character limit on. I're read through the documentation and to my surprise i found no option for it. Is it possible to do? If not, how should i go about ...
qwerty's user avatar
  • 5,304
1 vote
1 answer
174 views

My mysql structure is as follows: +----+-------------------------+-------------+-----------+--------------+ | id | title/text/moretext/img | language_id | course_id | country_code | +----+------------...
rococo polkadot bandit's user avatar
6 votes
3 answers
7k views

I'm using Laravel and I need to output data as it happens. When I attempt to load the page outside Laravel, it works just fine. If I use this inside Laravel, it doesn't flush, it waits until the end ...
sdot257's user avatar
  • 10.4k
3 votes
1 answer
5k views

--- Custom validation class (application/libraries/validator.php) --- class Validator extends Laravel\Validator { public function validate_passwdU($attribute, $value, $parameters){ $...
Sophy SEM's user avatar
  • 223
0 votes
1 answer
885 views

So here's what i have set up. I have two tables; users and todos. Every user can have multiple "todos". Here's what the tables look like: Users: Todos: And the models: class User extends Eloquent {...
qwerty's user avatar
  • 5,304
8 votes
2 answers
3k views

Let's say I have users which have many computers which belong to a certain computer_type (users->computers->computer_type). I know that I can load both users and their computers with: User::with("...
duality_'s user avatar
  • 18.9k
1 vote
1 answer
5k views

I want to add a localization information to my routes. Currently my route definitions are: Route::controller('browse'); Route::controller('search'); Route::controller('support'); ...
Jindra's user avatar
  • 810
4 votes
2 answers
7k views

Just a simple function in native php protected function some_function(){ session_start(); if(!isset($_SESSION['a'])) { $_SESSION['a'] = 'some value'; return true; } ...
itachi's user avatar
  • 6,393
16 votes
3 answers
4k views

I need to know which are my options when deploying codeigniter/laravel apps. I develop locally all the time at my home and when i go to work i need some quick way to push all the changes to the ...
Javier Cadiz's user avatar
  • 12.6k
0 votes
1 answer
994 views

I've got the instance going and everything but my config doesn't work and I don't what to try to make it work. All I get are 503 errors and no explanation. Production mode config return array( ...
Michael J. Calkins's user avatar
2 votes
1 answer
3k views

So I have a simple table in my application which stores many to many relationship between users and orders. As such, this table has a 2 column primary key (userid, orderid) to store values. In ...
jamis0n's user avatar
  • 3,850
0 votes
1 answer
2k views

I wish to pass a JSON object that includes some HTML to my client-side application. I'm using Laravel 3.2.12 and I'm new to it.I know the problem is in my View::make directive. Which is the correct ...
Ore4444's user avatar
  • 9,365
4 votes
4 answers
11k views

Browser sends JSONP requets to Laravel, Laravel returns the results to browser. In the brower console, I get the warning: Resource interpreted as Script but transferred with MIME type text/html: I ...
Nyxynyx's user avatar
  • 64.1k
34 votes
3 answers
66k views

By default, Laravel's raw query methods return results as arrays of stdClass objects: Array ( [0] => stdClass Object ( [id] => 1 [username] => admin ...
Ramesh's user avatar
  • 1,897
7 votes
9 answers
29k views

I have created the Authentication, and its working perfectly. But there is some problem in checking the inner pages. For example, Route::get('/', array('before' => 'auth' , 'do'=> function(){ ...
KKK's user avatar
  • 1,662
0 votes
1 answer
2k views

In Laravel, I am using custom validation in my project to check whether mininum area having smaller value than maximum area. Just created the validation in Validator library public function ...
viji's user avatar
  • 1,652
6 votes
2 answers
1k views

I want only college students to be able to sign up my website, but I couldn't figure out how to control that. I also want .edu.fr, edu.tr or other .edu extensions to be able to join my website not ...
bamya's user avatar
  • 426
1 vote
2 answers
199 views

I'm studying the Laravel 3, 1 week ago, but didn't understand everything about the routes. My main question is: how to create administrative routes? In the video lessons from Jeffrey Way (Tuts ...
Patrick Maciel's user avatar
1 vote
3 answers
4k views

In laravel I want to change the error message and log it for 404 and 500 event. i tried for 404 event by event listener in routes.php, Event::listen('404', function() { Log::write('404', 'Could not ...
viji's user avatar
  • 1,652
28 votes
6 answers
36k views

I'm confused as to when ->get() in Laravel... E.G. DB::table('users')->find(1) doesn't need ->get() to retrieve the results, neither does User::find(1) The laravel docs say "...execute the ...
Bill Jobs's user avatar
  • 477
0 votes
1 answer
403 views

So as a follow up to an earlier post, I'm curious if this is the most efficient way to update a record based on POST data. Routes.php //COLLECT POST DATA IN $thisOrder ARRAY //DETERMINE THAT $...
jamis0n's user avatar
  • 3,850
22 votes
3 answers
48k views

I'm having trouble doing a basic record update via POST in Laravel. I have captured all the post data in an array, and if the existing Order# is 0, then I create a new record (works fine). Otherwise ...
jamis0n's user avatar
  • 3,850
-1 votes
1 answer
1k views

I use the Laravel PHP framework and set a cookie using Cookie::put(..), Code to set cookie using Laravel PHP, Cookie::put('id', $id , 0, '/'); when I looked into it I found cookie is being set to a ...
kishanio's user avatar
  • 7,089
1 vote
2 answers
2k views

Is it possible to validate multirow forms in laravel. I would like to validate a form which looks like this: <input name="address[]" class="addr"/> <input name="address[]" class="addr"/> ...
user225269's user avatar
6 votes
5 answers
47k views

I have a function in my Orders_Controller in Laravel called getOrders($user). It calls a raw DB query and builds a JSON array to return. I cannot figure out how to call this function from within my ...
jamis0n's user avatar
  • 3,850
6 votes
1 answer
8k views

I'm trying to use route filters in laravel to check whether a specific user has an access to a page: Route::filter('check_roles', function() { $current_url = URI::current(); $access = 0; $...
user225269's user avatar
-2 votes
1 answer
1k views

I'm creating a application. I want to clear the Laravel Application key via terminal. Not manually. Is there any way to clear via artisan. I can only generate via following command php artisan key:...
KKK's user avatar
  • 1,662