Tagged Questions
Laravel is an open-source PHP web development framework created by Taylor Otwell. Laravel helps you create applications using simple, expressive syntax.
6
votes
0answers
774 views
Facebook deauthorize callback not called
I develop an Facebook app (game, in "development mode") consumed by a web client (Facebook canvas) and a mobile client (Android app). I have also a REST API (under Laravel) which allow the exchanges ...
4
votes
0answers
295 views
Implement Payum/Laravel recurring payment
I have some issues trying to get this working, I've implemented the checkout express (or seems to be) successfully, but also my system needs subscription option, following this example.
Now, my ...
3
votes
0answers
110 views
Exposing Elastic Beanstalk environment variables to Laravel's artisan using Docker
I'm attempting to deploy my application to production for the first time using Elastic Beanstalk, and I've created an RDS instance along with my Elastic beanstalk application. Since my application ...
3
votes
0answers
126 views
Asynchronous Execution of Laravel Elixir Commands
I'm having some trouble with Laravel Elixir and working out in what order things are executed. I've been let to believe that chaining elixir calls will force them to execute synchronously but I've had ...
3
votes
0answers
166 views
Guzzle slow on laravel forge and homestead
I don't understand why guzzle requests are really slow on laravel forge and laravel homestead. I did not change default server configuration on forge and homestead.
Every simple request like this one ...
3
votes
0answers
141 views
Rocketeer. How can I execute commands on different servers after deploying?
I have several servers - backend, frontend and api.
To deploy the code on the servers I use Rocketeer.
I use multiple servers for one connection:
'connections' => array(
'production' => ...
3
votes
0answers
257 views
laraval queue daemon mail stops functioning with SSL error
I am running a laravel queue daemon, which sends mail depending on the actions taken. This is running through supervisor to ensure it always runs. It works fine at first, but after some time the mail ...
3
votes
0answers
213 views
Laravel 4.1 - Error messages stays for next requests
I'm sending errors that appear in validation process like this:
return Redirect::back()->withInput()->withErrors($article->errors());
and retrieving them in view. Normally when I was doing ...
3
votes
0answers
475 views
laravel Redirect::intended() redirects to the full URL
I'm using a custom Auth driver for Laravel 4 that needs to redirect back to whatever page triggered the authentication process. The driver drops the user out to a single sign-on service on a ...
3
votes
0answers
2k views
Persist Form Data Across Multiple Steps in Laravel
When I've made multistep forms in the past I would generally place the form data into the session so that should the user refresh the page or use the browsers native back buttons the data persists.
...
3
votes
0answers
623 views
How to automatically run the migrations in a Laravel package?
I just installed Cartalyst's Sentry 2 in a Laravel 4 application but I found out that I have to run that package's migrations separately by specifying --package=cartalyst/sentry, which makes automatic ...
2
votes
0answers
46 views
Laravel using select in Eloquent scope and query
I'm trying to clean up some code that I made.
This is the current code:
$message = Message::with('comments')
->join('users', 'messages.created_by', '=', 'users.id')
->join('team_user', ...
2
votes
0answers
42 views
Booking dates calculations
I am developing a simple web application with PHP / Laravel. It is a booking system, where you can book rooms. A single room, for each date can be booked more than one time, let's take 5 for example. ...
2
votes
0answers
64 views
Laravel 5 - Queued Commands throwing spl_autoload_call() error
UPDATE - This has been narrowed down to beanstalkd, sync works
I am receiving the following error when attempting to run queued commands in my production environment:
exception 'ErrorException' ...
2
votes
0answers
35 views
Laravel5 MessageBag keys and input names arrays
working with a Laravel 5 project, I'm trying to use my custom Request class for validation, and I have a form with several inputs which name's are arrays. Example input :
<input name="en[title]" ...
2
votes
0answers
36 views
How to change all cell's height and width in laravel excel
I want to apply height and width for all row's in laravel excel
I am able to change height and width for single row at time by using following code
$sheet->setSize('A1', 25, 18);
...
2
votes
0answers
55 views
How do a query where, joining a table, the field can get a value from fields A or B with Laravel
I got two tables
Players (Id - Name)
Games (TournamentID - Player1 - Player2 - Result)
I'm trying to join the tables in a main one, named "Tennis Tournament" where it shows each game such as ...
2
votes
0answers
85 views
Laravel 5 - where to place uploaded image handler logic?
In my project there will be several places where I need to use uploading image form.
On server side I use L5 and I want to make uploaded image handler with:
check image type
check image size
moving ...
2
votes
0answers
49 views
Having problems with php artisan serve using laravel
When I try executing the php artisan serve command in my terminal on laravel 5.0 I'm getting this error.
Failed to listen on localhost:8000 (reason: php_network_getaddresses: getaddrinfo failed: ...
2
votes
0answers
69 views
Extending core Laravel 5 functionality
The question is quite simple - is it possible to extend Laravel 5 functionality in any smart way or you need to copy sometimes a lot of code/classes just to achieve what you want.
Because it's quite ...
2
votes
0answers
30 views
Failing unit testing of controller to check successful login in laravel 4.2
I am testing whether a successful log in happens or not. For that I am checking,
- If successfully logged in
- Application should redirect to dashboard
For that My controller looks like this
...
2
votes
0answers
42 views
Filter polymorphic relationship in Laravel
I have such entities as: user, contact, activity, touch.
One user has many contacts. One contact has many activities. Activity is polymorphic and may be a touch or something else. Touch has a type ...
2
votes
0answers
243 views
Laravel: Call to undefined function Symfony\Component\Console\mb_convert_variables()?
I'm running a vanilla Amazon EC2 server. I installed PHP 5.5.21 myself. My web application is built on Laravel. For weeks, everything was working flawlessly. Now, however, when running the Laravel ...
2
votes
0answers
76 views
Laravel Homestead Routing : InvalidArgumentException in compiled.php : View [****] not found
After getting my Laravel Homestead up and running, I'm facing a new problem.
Even after some googling, I can't find a solution for setting up routes in Laravel Homestead.
Here is my routes.php (I ...
2
votes
0answers
35 views
laravel first0rNew Integrity Constraint Violation
I'm using Laravel Eloquent's firstOrNew() function to retrieve a DB record based on 3 criteria:
$summary = $this->firstOrNew(array(
'date' => $date,
'product_id' => $product_id,
...
2
votes
0answers
59 views
Laravel migration blows up on foreign key. Already using unsigned int and referencing created tables
I am racking my brain trying to figure this out, but to no avail. Please help.
I have the following code:
Schema::create('inventory_category_relations', function(Blueprint $table)
{
...
2
votes
0answers
211 views
How to debug Laravel5 Elixir gulpfile.js?
I'm having the following gulpfile.js:
var elixir = require('laravel-elixir');
/*
|--------------------------------------------------------------------------
| Elixir Asset Management
...
2
votes
0answers
75 views
asynchronous guzzle call to a function while seeding in laravel
I am trying to fetch geocodes from an api and update in my database against address entries. I am running this through a seed class in laravel.
And I am using Guzzle to make an asynchronous call. I ...
2
votes
0answers
62 views
Logic behind search query in Laravel using Elasticsearch
I am using Laravel together with Elasticsearch in order to search an table/type.
I have a total of 5 search filters that a user can use in order to search.
Title(string) - type(boolean) - state ...
2
votes
0answers
243 views
Laravel Multiple Image Upload using Ajax
I have been trying to upload multiple images in Laravel 4, using jQuery & Ajax without the page refreshing, with the progress bar, remove button and review (display the uploaded thumbnail where ...
2
votes
0answers
61 views
Laravel Validation With Multi Select
I'm making a multi select form element for updating schools and specialties pivot table school_specialty. The problem is that when I change only something in multi select not other inputs or ...
2
votes
0answers
76 views
How can I make multiple Laravel filters that are 'OR' related?
In Laravel's filters, we can provide a filter AND relation like so:
Route::get('user', array('before' => 'auth|old', function()
{
return 'You are authenticated and over 200 years old!';
}));
...
2
votes
0answers
259 views
Laravel Homestead error installing Gulp with elixir
When running npm install in homestead I get a long list of errors which start out with
npm ERR! UNKNOWN, mkdir ...
2
votes
0answers
183 views
Laravel Multi Domain Session
I am not a superb developer, so I guess the problem I did run into is just to big for me.
I have a project where I have different subdomains for the current language. When I login a user it is logged ...
2
votes
0answers
160 views
Undefined property: stdClass after switching database to postgres in laravel
I have a site, that uses laravel 4.2 (stable) with Eloquent. I am also using this User messaging system. I wanted to switch database from mysql to postgres. On mysql, everything worked fine. I changed ...
2
votes
0answers
231 views
Laravel session expires randomly
We had this issue on our website that we got CSRF errors randomly from our users. The session cookie and session data were set to be expired in 12 hours and session driver is set to use Redis. Further ...
2
votes
0answers
384 views
Laravel 4: Unable to guess the mime type as no guessers are available
in my app im uploading files and saving them in the database (the path not the image itself), in my view I want to display a link for each file in my table when click on the link it should take to a ...
2
votes
0answers
35 views
Resolving database connectivity issues on Forge
When I try to login to the app I have setup on Forge, my Laravel app spits out this error:
SQLSTATE[HY000] [1045] Access denied for user 'appname'@'localhost' (using password: YES)
I have the ...
2
votes
0answers
63 views
Using a Doctrine package in an active record framework - Laravel
Im struggling with certain decisions regarding the integration of Sylius Components into a Laravel e-commerce package ecosystem. As this would cut the development time massively and leverage a cross ...
2
votes
0answers
45 views
Laravel - injecting a class with unknown argument
I'm trying to inject a class via my controller constructor so I can test it. However, the class I'm using comes from an external package. The class SteamId requires an argument to be passed.
$steam = ...
2
votes
0answers
410 views
Create a task in Laravel Elixir that runs Gulp tasks in a specified order
I'm trying to create a custom Elixir task in Laravel 5:
Convert a SVG file to favicons.
Optimize the created favicons.
Delete the unoptimized favicons.
var gulp = require('gulp');
var ...
2
votes
0answers
106 views
Laravel + Angular JS + xDebug
I have a AngularJS + Laravel application and not able to setup debugging.
On project root folder I have a PHP file and the debugger breaks at this file always. I use PHPStorm and have unchecked the ...
2
votes
0answers
473 views
Error $HTTP_RAW_POST_DATA is deprecated, use the php://input stream instead."
Using PHP 5.6.2 on MAMP. I upgraded Laravel from 4.1 to 4.2, after fixing some errors and changes as described in Laravel's upgrade docs, I finally get this error:
"Automatically populating ...
2
votes
0answers
131 views
Laravel : Should ALL the classes be injected through constructor?
I just read Taylor otwell's article Don't use Facades stating that you should try to avoid Facades. Also, he stated that you should try to inject the classes through the constructor. Now I was ...
2
votes
0answers
608 views
vagrant / homestead up - connection timeout ONLY on home network
The problem
Whenever I run vagrant up (or homestead up for Laravel Homestead 2.0) I get a connection timeout error as follows;
(...usual 'vagrant up' stuff...)
==> default: Waiting for machine to ...
2
votes
0answers
184 views
Google Analytics integration with Laravel
I am trying to intergrate google analytics api with laravel. I am following this tutorial HelloAnalytics.php but so far I am faced with an obstacle. I have reached the part Code Summary: ...
2
votes
0answers
66 views
oauth-4-laravel - Just need a simple Application Only Auth and search/tweets.json
I am using https://github.com/artdarek/oauth-4-laravel#basic-usage library for Laravel 4
The example they provide is how to login with Twitter. I DO NOT NEED THAT.
All I am trying to do is send a ...
2
votes
0answers
132 views
Laravel php artisan serve to mimic HTTPS
I have been searching around to see if there is a way I can mock SSL for local development using Laravel's artisan to serve HTTPS with no luck.
Is this possible and if so, how?
I understand this is ...
2
votes
0answers
336 views
davibennun laravel track push notification
I have done installed APNs in laravel using https://github.com/davibennun/laravel-push-notification and work perfectly on sending push notification to the devices.
And now i can't track if any push ...
2
votes
0answers
39 views
Laravel Paginator get item page
I'm implementing a forum system. The application will have a following system and every user will be able to see activity from their friends. So, when a friend of mine posts something in a forum I ...