GTHell

GTHell

Member Since 1 Year Ago

Cambodia

Experience Points 10,550
Experience Level 3

4,450 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed 14
Lessons
Completed
Best Reply Awards 0
Best Reply
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.

20 Feb
2 days ago

GTHell started a new conversation How Do You Handle Public API?

Currently, I need to publish some api to the third party APP. Their app need to use my API. I've only use JWT but don't know how to handle with third party app.

Do I need to give them one secret key and had a middleware to check that key if it exist? I'm guessing all user on their app will be able to use my API one they login to that third party.

28 Jan
3 weeks ago

GTHell left a reply on Nginx Or Apache If I Want Performance?

@cronix I go with Apache because I used to have a problem with Nginx non fixable bug before.

24 Jan
4 weeks ago

GTHell left a reply on Can We Use Jquery On Vue Js Application ?

jQuery is already included in Laravel. To import themeforest.css, you can either import it in your app.scss or in webpack.mix.js. If you're not using NPM then just do a normal import like your old project does by putting everything into public directory.

GTHell left a reply on Nginx Or Apache If I Want Performance?

@CRONIX - I would love some explanation

GTHell started a new conversation Nginx Or Apache If I Want Performance?

Currently, my app require a really fast performance but less request made to server (Probably 2-3 minimum to 20-30 maximum). Most of other web app I built is just using whatever the server already has because it's just medium site but this one is different.

22 Jan
1 month ago

GTHell left a reply on How To Use CarbonPeriod?

Carbon\Carbon and Carbon\CarbonInterval available by default but not Carbon\CarbonPeriod I don't know why. I didn't say that I can't do that. Adding new Carbon package will conflict with existing one unless alias it to 1.25.0

21 Jan
1 month ago

GTHell left a reply on How To Use CarbonPeriod?

Like I said, Carbon\CarbonPeriod doesn't exist. However I manage to get it work by adding "nesbot/carbon": "1.29.0 as 1.25.0" to composer.json

GTHell left a reply on How To Use CarbonPeriod?

If I able to use the CarbonPeriod this question wouldn't be exist. I can't find Carbon anywhere in composer.json

GTHell started a new conversation How To Use CarbonPeriod?

There is no Carbon in composer.json. I can't update it and I need to use CarbonPeriod.

10 Jan
1 month ago

GTHell left a reply on First Connection Is Always So Slow. Why?

@BOBBYBOUWMANN - The problem happen with any database connection, whether it's installed sql or the sql server on the server.

GTHell left a reply on First Connection Is Always So Slow. Why?

@BOBBYBOUWMANN - I'm running in development mode locally with php artisan serve. The end system is intranet with window servers 12.

My current setup was Docker sql server + php artisan serve.

GTHell started a new conversation First Connection Is Always So Slow. Why?

Every time the app is idle and then I make a post or get request for some query then it take 5-6 second but after that connection it will be normal. What causing this? Is the server going into a sleep mode?

09 Jan
1 month ago

GTHell started a new conversation Is Build A Separate Real Time Server Good Idea?

Is it applicable to separate socket.io+nodejs server from the Laravel server?

07 Jan
1 month ago

GTHell left a reply on DevExpress' DevExtreme DataGrid Server-side Script

You can try implementing the PHP package they have. Not easy but not that too hard. It's time consuming to build a wrapper around these library. I get all functionality to work but not polish yet so not yet to publish the source.

06 Jan
1 month ago

GTHell left a reply on Laravel Export Eloquent Query As Report?

Is printing support responsive?

05 Jan
1 month ago

GTHell left a reply on Laravel To Codeigniter, How Hard It Will Be?

@JLRDW - The .net core is too damn easy to get up and running and super fast. Beside, I want to make a move to c# since the stack is too good compare to PHP or Java.

GTHell started a new conversation Laravel To Codeigniter, How Hard It Will Be?

A client offer a project with codeigniter backend. Only thing I need to do is architect it to meet their need. How hard it will be knowing only Laravel, expressjs and maybe ASP.net mvc?

02 Jan
1 month ago

GTHell left a reply on Laravel Export Eloquent Query As Report?

@JLRDW - @jlrdw they basically want the power of SQL select where!!! I wish we had SQL admin so there is no more developer work to leverage the task. Also has SQL people will probably help a ton to the company in generating report and study the data. Well, I'm not the boss so I can only ask for easy solution here.

@cronix Cool package. I think it's what I needed.

GTHell started a new conversation Laravel Export Eloquent Query As Report?

So I have a beautiful query and would like to export it to A4 or possibly excel but with header, logos date just like typical invoice you see everyday. How would I do that?

01 Jan
1 month ago

GTHell started a new conversation Is There A Problem If I Switch DB Driver To Other DB?

Currently I'm using MySQL but realize that the production the production server is using Windows stack with SQL Server.

Is it just a matter of changing DB_CONNECTION from mysql to sqlserver? Is it that simple or do I need to be aware of something else?

Note: my query are all in eloquent.

15 Dec
2 months ago

GTHell started a new conversation What Is The Best Grid Library You Ever Use?

Working with data is never been easier. I sometime just make a simple table or use some random grid table library found on the internet. Non of them are perfect but it would be great if someone share their favorite grid table library one.

14 Dec
2 months ago

GTHell left a reply on Is Laravel Scalable?

@cronix not sure what other people think of what scalable is but to me it's about handling more request.

13 Dec
2 months ago

GTHell left a reply on So, How Exactly Do You Get JQuery From Webpack To Work With Blade?

I finally solve this problem. For those in the future who struggle to get jQuery to work you should add Event Listener to the window

@push('script')
<script defer>
window.addEventListener('DOMContentLoaded', function() {
        (function($) {
            //jQuery will work here
        })(jQuery);
    });
</script>
@endpush

The problem is that the defer script without src attribute will load before the defer script that has src attribute. Hence you either refactor your inline to a script file and reference through src or just do the above for a dynamic script experience. Cheer

GTHell left a reply on Do I Need Server Side Rendering?

@lars-janssen why not?

GTHell started a new conversation Do I Need Server Side Rendering?

SSR in JS backend is easy. But do I need SSR with Laravel + Vue?

GTHell left a reply on Is Laravel Scalable?

@lostdreamer_nl php as a language is scalable but for Laravel as a framework, there's still question missing its answer.

GTHell started a new conversation Is Laravel Scalable?

I know all of my project is just a one in a life time project that will never get scale. But out of curiosity, is it scalable? Get into argument some JS warrior who said that Laravel ain't scalable but JS framework. I can't find a good point to say that it is.

12 Dec
2 months ago

GTHell left a reply on What Is The Flow That You're Following When Developing API Application?

@wilk_randall Actually, In one my project I make use of library from validation to customize component between bootstrap and vuetify. Still, the work flow is suck. Especially when their are a lot of CRUD operation involve where a small change will require go to different file just to track the file that I want to change. I wish people share their work flow online.

11 Dec
2 months ago

GTHell left a reply on What Is The Flow That You're Following When Developing API Application?

@wilk_randall what about other thing like fetching data? I find everything to be extra work. CRUD is extremely time consuming.

GTHell started a new conversation What Is The Flow That You're Following When Developing API Application?

I never go full API application between Laravel + Vue. The problem is it's time consuming to develop web app with API. For example, the form validation is extra work when using API + Vue.

07 Dec
2 months ago

GTHell left a reply on So, How Exactly Do You Get JQuery From Webpack To Work With Blade?

@munazzil But my problem was to find a work with npm.

05 Dec
2 months ago

GTHell left a reply on So, How Exactly Do You Get JQuery From Webpack To Work With Blade?

The jquery $ suppose to work fine. I think it's the problem with defer attribute in script tag. <script src="js/app.js" defer></script> when I remove the defer keyword, the jquery work but not the Vue. Well, I need both vue and jQuery...

GTHell left a reply on So, How Exactly Do You Get JQuery From Webpack To Work With Blade?

Yeah man it's suck. I need to import jQuery twice. One from npm and another one for whatever snippet I want to use in Laravel blade.

GTHell left a reply on So, How Exactly Do You Get JQuery From Webpack To Work With Blade?

@jlrdw How do you import the webpack into your laravel blade?

04 Dec
2 months ago
03 Dec
2 months ago
02 Dec
2 months ago

GTHell left a reply on Tips On Doing/query Report

@JLRDW - Joining table is simple using eloquent. The challenges is that, joining too much will result in huge column list. I think I'll just throw all column and make use of front end javascript to do the sorting.

Should sorting/select be done in front end or back end? Gotta admit that I never do much report before beside CRUD.

GTHell started a new conversation Tips On Doing/query Report

I don't know what user want so It would be good to give them choice. Since the user can't do SQL, what are some way to generate a query builder with front end?

24 Nov
2 months ago

GTHell left a reply on How To Generate Report?

@jlrdw Thank, I choose to go with C# because it's seem easier than all of this.

21 Nov
3 months ago

GTHell left a reply on What Is The Efficient Way To Store Config Option?

take a look again and it seem akaunting settings package is better than laravel config.

19 Nov
3 months ago

GTHell left a reply on What Is The Efficient Way To Store Config Option?

I decide to go with config facade and name the file settings.php

GTHell left a reply on What Is The Efficient Way To Store Config Option?

@ianfain I assume that you already have multiple databases since it's e-commerce. I would store store settings in key-value database.

{ 
  "base_currency": "usd",
  "exchange_rate" : {
      "eur" : 1.4.....
   ....
}

GTHell left a reply on What Is The Efficient Way To Store Config Option?

@cronix Cache it with what?

@ianfain If it a big app then just use key-value pair database for setting. Mine is small app focus on performance so I don't want to waste performance with database connection.

GTHell left a reply on What Is The Efficient Way To Store Config Option?

@cronix It's rarely change. It's a company policy set by admin on the backend. It's more like a global settings where end point consume the API but can only change by the back office admin. Hardcode it is not preferable because office people can't code.

GTHell started a new conversation What Is The Efficient Way To Store Config Option?

Like in video game you have different setting for different thing. Having those config option store in database and query it every time doesn't look efficient. Is there a way of doing it that I'm missing? XML?

GTHell left a reply on How To Generate Report?

@jlrdw what solution to turn it into the excel file?

GTHell left a reply on How To Generate Report?

The link doesn't work.

18 Nov
3 months ago

GTHell started a new conversation How To Generate Report?

On C# they have something call Crystal report and Jasper report for Java. My point is, I want a report solution similar to those I mention.

I'll have the data showing as table but need some functionality to display the print + download as excel file because isn't everyone using excel in the office?