Questions tagged [laravel-4.2]

A past version of the open-source PHP web framework created by Taylor Otwell. It was released on 2014-06-01

Resources:

Other notable tags:

210 questions
54
votes
10 answers

Error: ReCAPTCHA placeholder element must be empty

I am using recaptcha with my laravel application. I just want to check recaptcha's response on form submit using jquery and stop user by alert that pleade validate captcha. but , I could not stop form submission even if captcha is not filled. here…
Nirali Joshi
  • 1,968
  • 6
  • 30
  • 50
19
votes
4 answers

Laravel Input::hasFile('image') returns false even if a File is uploaded

I have a Form field for an Image upload, which I open with 'files' => true, like so: {{ Form::label('image', 'Image') }} {{ Form::file('image') }} And in my Controller I want to check if a File was uploaded and do something with it: if…
jrenk
  • 1,387
  • 3
  • 24
  • 46
9
votes
5 answers

jquery datatables, custom sorting on server side

I am using Laravel 4.2, with server side jQuery data-tables. Package: https://github.com/Chumper/Datatable How can I add custom sorting ? like for columns of currency, time, etc
Riz
  • 9,703
  • 8
  • 38
  • 54
8
votes
2 answers

Laravel migrate command is not working for remote database

I am working on a project using the Laravel 4.2 framework. I want to execute the command php artisan migrate but when I run this command it shows an error: [PDOException] SQLSTATE[42000]: Syntax error or access violation: 1142 CREATE command…
Katty
  • 489
  • 6
  • 28
7
votes
4 answers

Laravel - get DB result without table column name

I wanted to have the result with only the values not with the table column name in Laravel 4.2. For example, $recs = DB::table('table_name') ->select('id', 'title') ->get(); the result is array(2) { [0]=> object(stdClass)#863…
user2609021
  • 681
  • 2
  • 11
  • 30
7
votes
1 answer

Session is being lost in Laravel4 in production server

I am checking if the user logged in or not like this Class LoginController extends BaseController { public function getIndex(){ return View::make('login',array('eventname' => Request::segment(1))); } public function…
Vikram Anand Bhushan
  • 4,836
  • 15
  • 68
  • 130
6
votes
1 answer

required_without not working with multiple fields

Laravel required_without is not working when I'm passing multiple fields. This is my rules: $rules = [ 'startDate' => 'date|date_format:m/d/Y|required_without:customerId,purchaseId,orderId', 'endDate' =>…
Raunak Gupta
  • 10,412
  • 3
  • 58
  • 97
5
votes
1 answer

Running Artisan Command from laravel 4.2 Controller

I am trying to execute some custom artisan command from controller like Artisan::call('php artisan MyCustomCommand'); but it works fine when I execute php artisan MuCustomCommand from CLI. I have registered command in…
suresh726
  • 77
  • 1
  • 9
4
votes
0 answers

composer could not scan for classes inside /vendor/laravel/framework/src/Illuminate/Queue/IlluminateQueueClosure.php

Basically a fresh git clone of a working repo... When I try to composer install I get an error. Seems like the laravel folders are not being installed the way composer expects to look for them? I tried updating/installing composer, deleting…
Phil
  • 2,176
  • 10
  • 33
  • 56
4
votes
1 answer

Using relationships in Laravel Eloquent with bridge table

I have an app that handles user info, and one of the pieces of data we collect is what school(s) they're attending. We have a User object, School object, and a UserSchool object. This is the user_schools table: user_id (int),school_id (int) With…
StackOverflowed
  • 5,854
  • 9
  • 55
  • 119
3
votes
1 answer

Laravel 4.2: Force URL to be rendered as HTTP or HTTPS

We have a simple route defined like the following one: Route // Home Route::get('/home', [ 'as' => 'home::index', 'uses' => 'IndexController@home' ]); View Home We need to force our link/route in…
lin
  • 17,956
  • 4
  • 59
  • 83
3
votes
1 answer

Deduplicating Laravel events / jobs

I have an app that processes product and order updates and use a mixture of events and jobs to respond to changes in either. Having worked on this for almost 2 years and watching it in action Ive found the biggest bottleneck is when duplicate…
aarcarr
  • 186
  • 1
  • 14
3
votes
0 answers

Downloading multiple files via SFTP in laravel

I need to transfer files over sftp in laravel. By now, I've been able to upload and download a single file with SSH facade such as SSH::into('staging')->put('somefile', 'copyfile'); SSH::into('staging')->get('somefile', 'copyfile'); But my problem…
Dhouard
  • 165
  • 16
3
votes
1 answer

Run function from Button or URL in Laravel

I have the following test function, that I want to call directly from my URL or by clicking a link from my blade view. public function callMeDirectlyFromUrl() { return "I have been called from URL :)"; } My Question: Is it possible to call a…
Maytham Fahmi
  • 31,138
  • 14
  • 118
  • 137
2
votes
1 answer

dynamodb query im trying to get some data from dynamodb using laravel

the query is work now but the problem is the attribute_not_exists when I added the attribute_not_exists the whole query not working. error message: "One or more parameter values were invalid: Secondary (truncated...) ValidationException (client):…
1
2 3
13 14