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…
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…
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
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…
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…
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…
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' =>…
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…
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…
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…
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…
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…
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…
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…
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):…