Laravel functional testing ajax control

In laravel 5.4, I can see that there are methods such as: $browser->pause(1000); $browser->waitFor('.selector'); $browser->waitForLink('Create'); But I don't see these in Laravel 5.3. We have two chained select boxes where second select...
more »

2017-04-14 08:04 (2) Answers

How to append query string to url in laravel 5.3

I'm using laravel 5.3 and in postLogin method, I want to append api_token as query string to url as follows: http://localhost/Exams/student/dashboard?api_token=4ZtxTu7fAwYpcPYRu46GWmVfncPO0i My LoginController.php is: public function postStudentLo...
more »

2017-02-16 06:02 (2) Answers

Search in ElasticSearch

I have a problem in elasticsearch. In the console Kibana, I am executing this code, GET bounce_gmd/_search { "query": { "match_phrase": { "date_added": "2017-02-08" } }, "size": 0, "aggs": { "date_added": { "terms": { "field": "bo...
more »

2017-02-14 10:02 (1) Answers

Query into wordpress db from laravel

I have setup my main application in Laravel and set up WordPress for blog (CRUDE) operation. Installed WordPress inside public folder and configured database settings for 2nd database in config/database.php in Laravel. The trouble I'm having is how...
more »

2017-02-12 19:02 (2) Answers

Rating system implementation in Laravel

I'm already working in a web application in Laravel that needs a rating system between users. So, I've been reading the Laravel documentation and some posts here and there but I keep wondering which is the best way to accomplish what I want to do. I ...
more »

2017-02-06 10:02 (1) Answers

What happened to laravel's redirectTo() method?

We can override this property to redirect users after login: protected $redirectTo = '/'; And here is from documentation: If the redirect path needs custom generation logic you may define a redirectTo method instead of a redirectTo property...
more »

2017-02-03 13:02 (2) Answers

Laravel collections mapWithKeys

I have been trying to create an array using laravel's collection function called mapWithKeys, but I couldn't achieve what I need. Here is my code, $years = range(1900, date('Y')); return collect($years)->mapWithKeys(function($value){ return...
more »

2017-02-01 13:02 (1) Answers

Avoid repeated code in Laravel controller

In each controller in my Laravel application, I use all of this namespace: use App\User; use App\Http\Controllers\Controller; use Google\Auth\OAuth2; use Illuminate\Support\Facades\Input; use Illuminate\Support\Facades; use Illuminate\Support\Facade...
more »

2017-01-30 22:01 (2) Answers

Laravel passport installation error

I've just downloaded the latest laravel 5.3 and I'm trying to install passport, but I'm getting the following composer error: Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/passport v2.0...
more »

2017-01-27 04:01 (2) Answers

Laravel testing undefinied method

I try to write tests in laravel, but I can't even run example test, bcs I get error: λ phpunit PHP Fatal error: Uncaught Error: Call to undefined method PHPUnit_Util_Configuration::getTestdoxGroupConfiguration() in E:\www\ikcms\vendor\phpunit\phpu...
more »

2017-01-24 13:01 (3) Answers

%like% query not giving result as expected

i'm working on search functionality, i'm querying based on the user input but i'm not getting the result as expected //if user searches walter getting proper response http://localhost:8000/api/v1/search/walter { "data": [ { "id": 1,...
more »

2017-01-21 13:01 (1) Answers

Larvel 5.3 Socialite cacert.pem error in cpanel

I create a social login such as facebook, google & twitter. I did configure in local server cacert.pem and that's working. But my hosting cpanel is still throwing an exception: RequestException in CurlFactory.php line 187: cURL error 77: erro...
more »

2017-01-09 18:01 (1) Answers

Conditional statement in FormRequest

In my controller I have conditional statement before I validate if ($request->department == 5) { $this->validate($request, [ //validation here ]; } else { $this->validate($request, [ //validation here ]; } Now I ...
more »

2017-01-07 07:01 (2) Answers

can't access object laravel 5.3

I am using laravle 5.3 mailables for sending emails.I want to pass data to view via with method. I have create a mailable MytestMail.php <?php namespace App\Mail; use Illuminate\Bus\Queueable; use Illuminate\Mail\Mailable; use Illuminate\Queue...
more »

2017-01-06 10:01 (2) Answers

Merge fields laravel collections

I have two Laravel collections. Mi first collection called $custom_product: Collection {#313 ▼ #items: array:1 [▼ 0 => array:1 [▼ "custom_description" => "insert description here" ] ] } And I have my other collection ...
more »

2017-01-01 13:01 (3) Answers

How to save it in database

In my database i have column like id,product_id,company_name,service,qty,delivery_cost,delivery_date,order_status etc. I view i used Jquery and Html and jquery dynamically add more input fields of product_id,service,delivery_cost,qty,delivery_date,o...
more »

2016-12-17 10:12 (4) Answers