laravel-3 Questions

1

Solved

I have a query where I need to get info from 2 tables. So I need to get invoices with the invoice_status 1, where the user_status is 1. I though I could query the Invoices table with the users tabl...
Evieevil asked 17/10, 2014 at 15:34

5

Solved

I'm learning laravel, and I'm stuck on a simple process. I want the tables to be generated as UTF-8 but varchar and text fields are like latin-1. Schema section in guide did not help at all. I fou...

2

Solved

I am totally new to PHP and Laravel Framework.I want to print the variables in Laravel on server side to check what values they contains. How can I do console.log or print the variable values on th...
Flotation asked 22/5, 2014 at 12:27

1

I'm trying to catch a PDOException in laravel 3 but it seems as if I cannot do this. My code is as follows: try{ DB::connection()->pdo->beginTransaction(); Myobject::create($cleaned_input...
Ardeth asked 7/5, 2014 at 19:42

3

Solved

I have a navigation bar like this. <li>Account</li> <ul> <li>Register</li> <li>Login/li> ... I want to update this dynamically depending on Auth::check...
Allo asked 23/5, 2013 at 10:43

1

Solved

I created my first Laravel (3.2) app awhile back on a VPS that I had. Now, the time has come for me to move to a dedicated server, and I need to move that app to the new server. I used RSYNC via S...
Bozarth asked 9/2, 2014 at 0:0

1

Solved

I'm running WAMSERVER 2.4 (32-bit) with PHP 5.4.16, this is a Laravel 3 project. In a try block, which I'm expecting to fail, I am submitting a duplicate row for insertion against a uniqueness con...
Duarte asked 6/1, 2014 at 18:43

1

Solved

I'm trying to instantiate a class (a Laravel3 Eloquent model) by a variable, and I'm getting an error saying that the class is not found. When I hardcode the class name, though, it works just fine....
Dialyser asked 3/1, 2014 at 16:41

4

Solved

I would like to use built-in ORM functionality in Laravel's Eloquent ORM to automatically join the tournaments and countries tables together when running a query, and return the data set that inclu...
Hemisphere asked 19/6, 2012 at 10:59

6

Solved

I would like to customize my login in laravel 4 where username is either his username or email so what I did is: public static function custom_login($uname,$pwd) { $res = DB::select("select * fro...
Irrupt asked 19/7, 2013 at 4:31

2

I'm new at MVC and my first framework is Laravel (3 for now). I've started coding exclusively in the routes, and I moved to the controller. I'm however doing all of my database operations in the co...
Tervalent asked 12/9, 2013 at 20:18

2

Solved

I'm using Laravel 3, and I am AJAXing in a user comment. We are adding images to this comment and I can't seem to get the File Data to go through. When I set processData to false, I am also unable ...
Maieutic asked 4/9, 2013 at 15:58

1

I have this join: Return DB::table('volunteer') ->join('volunteer_volunteer_category', 'volunteer_volunteer_category.volunteer_id', '=', 'volunteer.id') ->select(array('*','volunteer.id AS...
Phellem asked 30/4, 2013 at 11:6

1

Solved

Ok so I want to check if my users are online or not, I think a good way of doing this is using the sessions table that laravel provides. I'm a newbie though so can anybody first of all explain to m...
Zelmazelten asked 11/6, 2013 at 18:35

1

Solved

I'm unsure how I can get something equivalent to: path('public') to work in a Javascript file? I basically just need the path to the public folder for displaying some images from my JS file.
Bopp asked 14/5, 2013 at 9:43

1

Solved

For reasons of a complex schema & a library that requires either Fluent or Eloquent to be used (not just raw DB::query() ), I need to create: LEFT JOIN `camp_to_cabin` ON `camper_to_cabin`.`c...
Fulvous asked 18/4, 2013 at 11:53

1

Solved

Mates, I'm havin a problem to save a record to the database. As I understand the error, it seems as it doesn't exist an 'id_purchase' in the table. But it does. The code I'm using is the foll...
Stockade asked 16/4, 2013 at 22:12

2

Solved

I have a base controller with a method to return a twitter feed to my view. I want to move this in the view from the page view to the default blade to reduce redundancy as it will be appearing si...
Pronounce asked 16/4, 2013 at 9:4

1

Solved

In Laravel 3, one could do the following in the model (http://laravel.com/docs/database/eloquent#eager): class Book extends Eloquent { public $includes = array('author'); // this line public f...
Punctual asked 4/4, 2013 at 23:15

2

Solved

I have a system where I need to list an arbitrary amount of employees with a textfield for each day of the week where an "hours worked" value can be entered. So I need to generate a table with a d...
Hahnke asked 4/4, 2013 at 19:22

2

Solved

I want to add an "AND" clause to the end of a query builder, the code looks like this: $orderers = DB::table('address')->where(function($query) use ($term) { $query->where('id', 'LIKE', '%'...
Archaeopteryx asked 8/3, 2013 at 2:53

1

Solved

I have a list of all the "servers" in my "servers" table returned in my view with pagination. I have been struggling to figure out how to get sorting (asc & desc if possible) and filtering (sea...
Widen asked 5/3, 2013 at 3:19

4

Solved

I've set up a wildcard subdomain *.domain.com & i'm using the following .htaccess: Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !www\. RewriteCond %{HTTP_HO...
Maure asked 18/1, 2013 at 14:52

3

Solved

I'm curious if there is anyone using Laravel since version 3 running into problems setting cookies in various version of IE when there is an underscore in the cookie name. I came across this probl...
Acme asked 22/2, 2013 at 3:11

2

Solved

I have an array that I'm storing as a string in a database to make it easier to retrieve (it's refreshed with new data every 15-30minutes via cron). 'player_list' -> 'Bob,Dave,Jane,Gordy' 'plug...
Rosemarie asked 16/2, 2013 at 13:17

© 2022 - 2024 — McMap. All rights reserved.