Buy your loved one the ultimate gift. Lifetime gift certificates are $100 off.

keyur

Experience

6,700

1 Best Reply Awards

  • Member Since 3 Years Ago
  • 100 Lessons Completed
  • 2 Favorites

5th November, 2017

keyur left a reply on Implementing Complex Business Rules • 1 month ago

+1

6th April, 2017

keyur left a reply on Considering Switching To Magento • 8 months ago

thanks for responding @sijukalikadan . I actually ended up quitting on magento 2 after about 9 months of development time.

So many bugs and development was painful!!! It would take about 10 months to deploy to production because of the way magento compiles files.

I am now working on migrating to Shopify. I am close to finishing. Except for a few limitations, it works very well. It has feature limitations, but not bugs like Magento has.

The issues list on magento's github just keeps growing all the time. And the design decisions for magento 2 are so complex! After all that time, I could barely understand how they would query for products.

I am actually enjoying developing again after using shopify. And I can still pair up laravel with shopify for custom app functionality. Shopify gives great API access.

20th March, 2017

keyur left a reply on Provisioning Multiple Apps Efficiently? • 8 months ago

I will probably go down the Lambo route. But our of curiosity, could I create my own package that does all the necessary bootstrapping of the third party packages?

keyur left a reply on Provisioning Multiple Apps Efficiently? • 8 months ago

Thanks, what about adding entries for each composer package into config/app.php?

For each package, I usually have to make 1-2 entries in that file.

Also, publishing config files, such as for debugbar?

keyur started a new conversation Provisioning Multiple Apps Efficiently? • 8 months ago

I need to create multiple applications often, and wondering if there is an easy way to repeat the installation of many basic packages and steps that I do in all of them.

i.e. install

  • debugbar
  • collective
  • shopify api

Would creating my own custom package be able to handle this?

Thanks.

20th February, 2017

keyur left a reply on Implementing Leaky Bucket Rate Limiting For External API • 9 months ago

ok, i'll look into that. unless i missed something, this library doesn't seem to read the header for rate limiting though.

or are you adding that around your API call as you mentioned earlier?

It would be nice to create a little group that is doing Shopify / Laravel development.

16th February, 2017

keyur left a reply on Implementing Leaky Bucket Rate Limiting For External API • 9 months ago

@dhonions are you developing shopify apps using laravel?

keyur left a reply on Implementing Leaky Bucket Rate Limiting For External API • 9 months ago

thanks so much!

I forgot to mention that I did find a library that does incorporate checking from the headers as you mentioned

https://github.com/tyler-king/Basic-Shopify-API

I have to figure out the best way to integrate the package into laravel. probably a service provider.

14th February, 2017

keyur started a new conversation Implementing Leaky Bucket Rate Limiting For External API • 10 months ago

Hello,

I'm trying to make calls to Shopify's API using Guzzle and need rate limit the external requests.

I'm not quite sure how to do this.

I saw this library:

https://github.com/bandwidth-throttle/token-bucket

but not sure how to get it to work with Laravel (5.4). Would I need to implement the 'bootstrap' part in a service provider?

Any other recommendations on how to get this setup would be very helpful.

Thanks!

22nd July, 2016

keyur left a reply on Zapier Type Services • 1 year ago

yeah, it takes a bit of work sometimes in laravel, but it's not so bad. it is pretty cool how you can get some pretty complex integrations in zapier with multiple services.

20th May, 2016

keyur left a reply on Intercooler.js Jquery Ajax Library • 1 year ago

thanks for sharing the final solution!

16th May, 2016

keyur left a reply on Intercooler.js Jquery Ajax Library • 1 year ago

I haven't used it myself, so not sure how the code would work. I think you would return the X-IC-Redirect header from Intercooler, and they you would have to process that on the front end with jquery / javascript to redirect. Or it might do it by itself.

12th May, 2016

keyur left a reply on Intercooler.js Jquery Ajax Library • 1 year ago

you can use the X-IC-Redirect to have the client go to a new url.

if your div contains the area to update and an empty div for the error message, then you can return that whole div with the div for the error message with the error.

then you wouldn't need the client to trigger a full page refresh.

keyur left a reply on Intercooler.js Jquery Ajax Library • 1 year ago

sorry to see you're having issues. It worked pretty much out of the box for me. I am using laravel form helpers to create my forms and I think it includes the csrf token automatically when using the tag for "Open"

https://laravelcollective.com/docs/5.2/html#opening-a-form

If you use the Form::open method with POST, PUT or DELETE the CSRF token will be added to your forms as a hidden field automatically.

12th April, 2016

keyur started a new conversation Zapier Type Services • 1 year ago

Seems like the latest trend is to use services like Zapier to tie in different API's.

Wondering if people are using Zapier or just consuming the API directly from different sources using Laravel / Guzzle? Zapier seems great but seems you would run into their limitations quickly without a high cost plan.

Thanks

25th February, 2016

keyur left a reply on Considering Switching To Magento • 1 year ago

my current store is live, just takes a lot of work to develop for it. I would definitely start on Magento 2.0. It doesn't have as many extensions, but the file structure is more modern (though very pattern heavy). I think within a year, we should see the major extensions available.

24th February, 2016

keyur left a reply on Considering Switching To Magento • 1 year ago

thanks for the feedback everyone. I think it helps solidifies the move.

@mehany , in the example you gave, there seems to be only a 1 line difference. in your second code example, it seems that the loop is outputting the code. Which you would still need to do in the first example. I really like how Eloquent and Collections work, and there's so much code it saves.

The real pain point is creating the back end administration screens. I have created a very flexible promotion system, but on the backend it is a simple yaml block. Whereas Magento has a really nice nested rules gui builder.

I like your suggestion about using Magento on the backend, and version 2 has a very robust REST api as well. I think I will try to go with magento out of the box and see what I can modify easily. Then down the road if I have performance or development issues, then try to integrate Laravel on the front end and Magento for the checkout and backend administration.

keyur started a new conversation Considering Switching To Magento • 1 year ago

Hi, just wanted to raise a discussion and get people's thoughts. Not really a question, but more sharing my situation.

I'd originally written a custom cart in codeigniter, and then moved over to laravel a couple years ago. Took many months to build out and still ongoing with feature development. We are live with the cart and many orders have been placed on it. It is also one of the fastest carts i've seen.

But I've grown increasingly frustrated with developing basic ecommerce features (product options, rewards, promotions, etc) that Magento has out of the box or has as extensions. Building the backend admin screens is a real pain (using packages for basic crud is possible, but to do complex admin pages to manage relationships and bulk editing was a lot more work).

I always talked myself out of using a ready made cart. Primarily due to a desire to learn and a dislike of the UI decisions by magento / shopify. I also thought it would be easier to maintain and develop features for, not having to deal with Magento's complexity. But I took a look at Magento 2, and the UI is pretty nice with a lot of features out of the box.. The major drawback is magento is really slow (especially on my homestead / windows machine) and having to eventually deal with the EAV database structure.

Wondering if anyone else has considered a similar switch and your outcome. I really love using laravel, but for my needs, I think I can benefit more using a common ecommerce ecosystem instead of a generic framework. There is a steep learning curve, but it actually feels a little refreshing to not have to worry about needing to learn the best way to architect my site and instead following their guidelines. It would also be more easy to hire developers to work on building features onto a known api.

Thanks.

6th January, 2016

keyur started a new conversation How Are People Creating Back End Admin Forms • 1 year ago

I'm trying to create about 20-30 back end forms to manage data in the tables (for an existing laravel application). I have a fair amount of more advanced features, search, editable grids, sorting, pagination, saved searches.

Wondering how other people are generating these back end admin screens. I have looked at tools like Scriptcase, PhpRunner, PhpMaker. These are OK, some advantages and drawbacks, which lead me to want to make forms directly in laravel, but given that it will be a lot more work.

I have yet to try Rapyd. I'd like something that can generate easily, but allows for further customization if necessary.

Thanks.

30th November, 2015

keyur left a reply on VUE Instead Of JQuery/Javascript? • 2 years ago

i'm interested in this as well. it certainly seems theres many jquery plugins that can be replaced with vuejs, but it is hard sometimes to know when to use which.

vue's creator, evan is creating a directory of vue components and hopefully that willl grow and it will be more clear which plugins can be replaced easily.

24th August, 2015

keyur left a reply on How To Integrate Into External Application • 2 years ago

thanks for the code, appreciate your help.

unfortunately it gives an 500 Error, more specifically, the apache logs report:

End of script output before headers.

Not exactly sure why that is. Googling it looks like it might be a permission issue, but I am running my app on windows and that shouldn't be an issue.

Laravel works when loading directly and not through my external php file.

keyur started a new conversation How To Integrate Into External Application • 2 years ago

Hello,

I am trying to integrate Laravel into an external php application (scriptcase) and I am not sure how to do it for Laravel 5.1. I have found instructions for Laravel 4, but it seems to be different now and I could not get it to work.

For Laravel 4, it was,

<?php
// boot laravel
require __DIR__ .'/../../vendor/autoload.php';
$laravel_app = require __DIR__ .'/../../bootstrap/start.php';
$laravel_app->boot();

I changed the paths to reflect laravel 5, but wondering if anything else has changed as I get an error when trying to use

'require '../laravel/bootstrap/autoload.php';
$app = require_once '../laravel/bootstrap/app.php';
$app->boot();

when i try:

\Log::alert('hello');

this does not work. the error I get is:

Class 'Log' not found in C:\Program Files (x86)\NetMake\v81\wwwroot\scriptcase\app\cart\Orders\index.php on line 553

but this works successfully, (seems like when not using laravel)

$log = new Monolog\Logger('name');
$log->pushHandler(new Monolog\Handler\StreamHandler('app.log', Monolog\Logger::WARNING));
$log->addWarning('Foo');

12th July, 2015

keyur left a reply on [tip] A Neat Web-app For A Log Tail • 2 years ago

Thanks! That looks amazing

keyur left a reply on Sum Total From Products • 2 years ago

I would store the price in the order_products table for every row. Because if you change the product price later, it will alter your previous totals.

8th July, 2015

keyur left a reply on Error On Npm Install With Homestead • 2 years ago

i was having a lot of issues installing npm's modules and this helped fix the issue for me:

https://harvsworld.com/2015/how-to-fix-npm-install-errors-on-vagrant-on-windows-because-the-paths-are-too-long/

25th June, 2015

keyur started a new conversation Using Route Middleware To Disable Cookie Generation • 2 years ago

As per this issue,

https://github.com/laravel/framework/issues/7586#issuecomment-115253741

it seems that Route Middleware cannot be used to disable cookie generation. I can't create a regular middleware because so many of my urls are hard to distinguish. Is there any other workaround to disable cookie generation through route middleware or have access to the route in the regular middleware?

thanks.

23rd June, 2015

keyur left a reply on Anyone Still Thinking About ElasticSearch Now Jeff Has Started With Algolia? • 2 years ago

good point. i was leaning towards elasticsearch and still probably will, but will be interesting to learn about how to implement algolia.

6th June, 2015

keyur left a reply on Ajax Framework For Laravel? • 2 years ago

There currently is intercooler js which works very well to provide Ajax features from the server end with minimal client side code. If there could be better integration from laravel end on returning view partials, that would be great

1st May, 2015

keyur left a reply on Session Queries Are Taking A Long Time • 2 years ago

thanks, that did solve the issue!

29th April, 2015

keyur started a new conversation Session Queries Are Taking A Long Time • 2 years ago

Hello,

I noticed through NewRelic that laravel seems to be performing session cleanup queries on my pages. It's hard to tell if it is happening on every page or certain pages.

But when it does, it seems to be very slow. My sessions are configured to last for 100 days and are stored in the database. Here's a snip from NewRelic showing the query time.

Image of Query

Any idea how to make this faster?

Thanks.

28th April, 2015

keyur left a reply on Laracasts Forums Crave For Moderation • 2 years ago

one possible thought is to add a separate section that is similar to stackoverflow for questions and answers that can be answered definitively. perhaps questions from the forums can be promoted or moved over to that system as needed and provide a nice reference source without duplicating questions.

23rd March, 2015

keyur left a reply on Eloquent Book Coming • 2 years ago

Filtering fields for administrative forms like grids and records

Good luck!

keyur left a reply on Eloquent Book Coming • 2 years ago

Filtering fields for administrative forms like grids and records

Good luck!

4th March, 2015

keyur started a new conversation Intercooler.js Jquery Ajax Library • 2 years ago

Hello,

In light of the discussions going on about integrating javascript helpers into laravel, wanted to mention a library that I have been using recently (not mine).

http://intercoolerjs.org/

it removes the boilerplate of ajax calls and has similarities to the screencast by @JeffreyWay on javascript helpers.

For those that don't need a full blown javascript front end framework, this works quite nicely.

23rd February, 2015

keyur left a reply on Combining Laravel With A CMS • 2 years ago

thanks @bashy . so i'd have to define in nginx a location block for each individual url, correct? Is there anyway to read a file and have a listing of source and destinations. such as a file called mappings.txt

widget|laravel about|wordpress privacy-policy|wordpress

@willvincent your'e right about maintaining 2 different styles. i'm doing it right now, and it is annoying. I was thinking eventually if I could manage the queries in eloquent (read about some packages that do that). Or if I can use the wordpress api to read into the data into laravel. That would probably be the ideal solution to not have to manage two frontends.

@frezno the great thing about wordpress is the admin is user friendly and very polished for entering content and managing media. I could recreate some of it in laravel, but it would be a lot of work.

OctoberCMS is very nice but I would still need to maintain 2 different front ends, unless I move my whole app over to October, which I do not want to do right now.

I'll look at the other CMS's you mentioned, but all the ones I've seen are their own app, and don't integrate directly into my main laravel app.

keyur started a new conversation Combining Laravel With A CMS • 2 years ago

Hello,

Just wanted to get an idea of how people are combining their Laravel application with a system to allow users to add/edit content.

  1. Is anyone combining it with a CMS like wordpress? Or are you creating your own basic forms. I do like how in wordpress the advanced editor features available and versioning and publishing features.

  2. Also, It's easy to have wordpress in it's own separate url, like www.myapp.com/blog/, but I'm thinking of a way how both laravel and wordpress can share urls without a subdirectory.

Such as www.myapp.com/widget can go to my laravel app. But www.myapp.com/about goes to the wordpress app.

Is there anyway to handle that without having separate redirects defined for each particular url inside nginx?

Thanks!

28th January, 2015

keyur left a reply on Start To Completely Reusable Administrator Panel • 2 years ago

Encountering the same issue here. I am creating custom forms for the ones needing special layouts but researching which tools are out there to make generation easier.

23rd January, 2015

keyur started a new conversation Switching Session Storage • 2 years ago

I have been running in production for last 2 months, but realized that I have been using file based session storage.

I think I would prefer to use redis or the database (mysql) instead.

If I just switch over, I am assuming that all sessions will be lost for people. Is there anyway to migrate the sessions in file over as well when making the switch?

Thanks!

1st December, 2014

keyur left a reply on Caching View Vs Caching Queries • 3 years ago

ok, thank you.

25th November, 2014

keyur started a new conversation Caching View Vs Caching Queries • 3 years ago

I'm about to push my site into production, and trying to optimize things.

I've set up view caching using before and after filters for my main pages. If I do this, it seems that it is not necessary to cache queries (using the remember feature).

Is this a good approach, or is there anything else I am missing out on?

These are mainly product and category pages for an ecommerce site. Some of the dynamic elements on the page I will pull in through javascript, such as the cart count.

Thansk.

24th November, 2014

keyur left a reply on Tip: How To Enable SSL In Homestead 2.0 • 3 years ago

thanks for this!

1) I am not able to get port 44300 to forward properly for some reason. When I access

https://www.mysite.local::44300

from my local browser, it times out with an error.

When I test out via ssh on homestead, using

https://www.mysite.local

it works fine.

So something seems wrong with my port forwarding from my local machine to homestead.

I added the line

config.vm.network "forwarded_port", guest: 443, host: 44300 

(I am on homestead 1.6)

2) also, how do you change your code so it will reference the new port 44300 during development? I added https to my routes for each route that needs it, but I believe it will go to port 443 unless I make a change somewhere.

Thank you.

16th November, 2014

keyur left a reply on Using Models Or Repositories Without A Database • 3 years ago

You can also keep it in a database and cache the query or generate static HTML pages

14th November, 2014

keyur left a reply on Refresh A Model? • 3 years ago

Interested in this as well. Have had to query the model again.

10th November, 2014

keyur left a reply on Model Events Usage • 3 years ago

thanks for the suggestions everyone.

5th November, 2014

keyur left a reply on Where Are You All From? • 3 years ago

San Francisco Bay Area

2nd November, 2014

keyur left a reply on Alternative To Using A Javascript MVC Client Side • 3 years ago

Thanks for those recommendations. Will definitely look into those

1st November, 2014

keyur started a new conversation Alternative To Using A Javascript MVC Client Side • 3 years ago

Saw an interesting article about how Shopify moved away from a heavy javascript mvc front end and moved to a case where they replaced portions of the page with server side rendered views instead.

http://www.shopify.com/technology/15646068-rebuilding-the-shopify-admin-improving-developer-productivity-by-deleting-28-000-lines-of-javascript

DHH mentioned themselves doing something similar with an internal tool that works like Pjax.

29th October, 2014

keyur started a new conversation Model Events Usage • 3 years ago

I am wondering how people are setting up their model events, such as saving, creating, etc....

These are the 3 ways I know of from reading the docs:

  • create the boot method inside the model
  • create an observers file and register the observer in the boot method of the model
  • create event listeners in global.php

Wondering if there are any other ways. I would like the methods (saving, creating, etc. ) inside the model, but aesthetically, the boot method feels out of place compared to how nice eloquent looks otherwise.

I like the way rails does it, with just a simple method named for the event, like before_create, before_save. No boot method or anything else necessary.

Thanks!

27th October, 2014

keyur left a reply on Is It Best To Use JSON Or DB For Static Data? • 3 years ago

What about keeping it in the database and caching the query so it stays in memory or file?

If it is in the database then it is easier to make changes later by building an admin screen.

25th October, 2014

keyur left a reply on CMS • 3 years ago

October and craft both look really nice. Do you know the best way to integrate craft with laravel? I don't see a rest api but if we can load it in, that seems like it should work.

By the way, I read that craft did fix some of their licensing issues

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.