keyur

keyur

Member Since 4 Years Ago

Experience Points 6,770
Experience
Level
Lessons Completed 99
Lessons
Completed
Best Reply Awards 1
Best Answer
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • Chatty Cathy Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

05 Nov
1 month ago

keyur left a reply on User Editable Templates

I ended up integrating Twig into my app and letting users use twig to create custom layouts for each item.

It's working out really well actually. Twig has a really cool macro feature that reduces the amount of code that needs to be written.

05 Oct
2 months ago

keyur left a reply on User Editable Templates

I actually need a separate layout for each row in the table

keyur started a new conversation User Editable Templates

I have a table with rows of pages in my database.

Each row is a separate page and pulls in data from other tables to build the page.

Each page needs a different layout. Id like to see what options are available besides storing a separate blade file for each page in the views folder.

Thanks!

05 Nov
1 year ago
06 Apr
1 year ago

keyur left a reply on Considering Switching To Magento

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.

20 Mar
1 year ago

keyur left a reply on Provisioning Multiple Apps Efficiently?

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?

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?

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.

20 Feb
1 year ago

keyur left a reply on Implementing Leaky Bucket Rate Limiting For External API

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.

16 Feb
1 year ago

keyur left a reply on Implementing Leaky Bucket Rate Limiting For External API

@dhonions are you developing shopify apps using laravel?

keyur left a reply on Implementing Leaky Bucket Rate Limiting For External API

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.

14 Feb
1 year ago

keyur started a new conversation Implementing Leaky Bucket Rate Limiting For External API

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!

22 Jul
2 years ago

keyur left a reply on Zapier Type Services

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.

20 May
2 years ago

keyur left a reply on Intercooler.js Jquery Ajax Library

thanks for sharing the final solution!

16 May
2 years ago

keyur left a reply on Intercooler.js Jquery Ajax Library

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.

12 May
2 years ago

keyur left a reply on Intercooler.js Jquery Ajax Library

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

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.
12 Apr
2 years ago

keyur started a new conversation Zapier Type Services

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

25 Feb
2 years ago

keyur left a reply on Considering Switching To Magento

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.

24 Feb
2 years ago

keyur left a reply on Considering Switching To Magento

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

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.

06 Jan
2 years ago

keyur started a new conversation How Are People Creating Back End Admin Forms

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.

30 Nov
3 years ago

keyur left a reply on VUE Instead Of JQuery/Javascript?

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.

24 Aug
3 years ago

keyur left a reply on How To Integrate Into External Application

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

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');
12 Jul
3 years ago

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

Thanks! That looks amazing

keyur left a reply on Sum Total From Products

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.

08 Jul
3 years ago

keyur left a reply on Error On Npm Install With Homestead

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/

25 Jun
3 years ago

keyur started a new conversation Using Route Middleware To Disable Cookie Generation

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.

23 Jun
3 years ago

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

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

06 Jun
3 years ago

keyur left a reply on Ajax Framework For Laravel?

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

01 May
3 years ago

keyur left a reply on Session Queries Are Taking A Long Time

thanks, that did solve the issue!

29 Apr
3 years ago

keyur started a new conversation Session Queries Are Taking A Long Time

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.

28 Apr
3 years ago

keyur left a reply on Laracasts Forums Crave For Moderation

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.

23 Mar
3 years ago

keyur left a reply on Eloquent Book Coming

Filtering fields for administrative forms like grids and records

Good luck!

keyur left a reply on Eloquent Book Coming

Filtering fields for administrative forms like grids and records

Good luck!

04 Mar
3 years ago

keyur started a new conversation Intercooler.js Jquery Ajax Library

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.

23 Feb
3 years ago

keyur left a reply on Combining Laravel With A CMS

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

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!

28 Jan
3 years ago

keyur left a reply on Start To Completely Reusable Administrator Panel

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.

23 Jan
3 years ago

keyur started a new conversation Switching Session Storage

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!

01 Dec
4 years ago

keyur left a reply on Caching View Vs Caching Queries

ok, thank you.

25 Nov
4 years ago

keyur started a new conversation Caching View Vs Caching Queries

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.

24 Nov
4 years ago

keyur left a reply on Tip: How To Enable SSL In Homestead 2.0

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.

16 Nov
4 years ago

keyur left a reply on Using Models Or Repositories Without A Database

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

14 Nov
4 years ago

keyur left a reply on Refresh A Model?

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

10 Nov
4 years ago

keyur left a reply on Model Events Usage

thanks for the suggestions everyone.

05 Nov
4 years ago

keyur left a reply on Where Are You All From?

San Francisco Bay Area

02 Nov
4 years ago

keyur left a reply on Alternative To Using A Javascript MVC Client Side

Thanks for those recommendations. Will definitely look into those

01 Nov
4 years ago

keyur started a new conversation Alternative To Using A Javascript MVC Client Side

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.