siangboon

siangboon

Developer at Kuala Lumpur, Malaysia

Member Since 4 Years Ago

Kuala Lumpur

Experience Points
196,790
Total
Experience

3,210 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
1440
Lessons
Completed
Best Reply Awards
69
Best Reply
Awards
  • start your engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-in-session Created with Sketch.

    School In Session

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

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

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

  • subscriber Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist Created with Sketch.

    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 Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

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

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

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

Level 40
196,790 XP
Apr
08
4 hours ago
Apr
06
2 days ago
Activity icon

Replied to Group By Fetch Only Data Of First Row

i think you should use order by instead of group by....

Activity icon

Replied to Insert Database Rows Into A Txt File

i think that you should return after the for loop

Activity icon

Replied to Passing Variable From A @include Partial File To A Main Blade File

Not so sure but I guess that you can't declare and pass the variable like that, instead need to declare inside controller/route, or view composer...

Activity icon

Replied to Can I Add A Laravel Policy To My Route?

policies are more to organize authorization logic on a particular model or resource...

perhaps you may consider Gate

https://laravel.com/docs/7.x/authorization#gates

Apr
05
3 days ago
Activity icon

Replied to How To Get Limited Words In Laravel Blade And Get Like This 0-100 Words And 100-200 Words In Laravel

usually people limit the character instead of words as the words can be short or can be very long, it's very hard to estimate...

before using str_limit may consider strip off the html tags https://www.php.net/manual/en/function.strip-tags.php

Apr
03
5 days ago
Apr
02
6 days ago
Activity icon

Replied to Follow Unfollow System Implementation Time Get This Error How To Solve

it stated clearly "Table 'swe332.followables' doesn't exist"...

Is there a typo error or you use custom table name but forgot to specify it in your relationship? what are the differences between "followables" and "pivot_followables"??

Mar
31
1 week ago
Activity icon

Replied to Laravel Telescope Entries.

perhaps may consider turn it off... the server log and laravel log should be pretty enough for monitoring... turn it on when only you need debugging again...

Activity icon

Replied to Laravel Telescope Entries.

you should find out why it so massive log and fix it if due to error, or could consider to filter only those data you interested in...

Mar
30
1 week ago
Activity icon

Replied to Problems Sending Email Mail With Bluehost Via PHP Or Laravel

first of all, test your code with log (change the driver to log in config/mail.php) or mailtrap... if log does not show any log, something wrong with your code... if mailtrap not working mean something wrong with your code or firewalll/security policy on the server... if log show some message, then can try to seek help from bluehost to get the mail log error....

Activity icon

Replied to SQLSTATE[42S02]: Base Table Or View Not Found: 1146 Table '***.indices' Doesn't Exist

the schema you shown was indexpage table, however the error is telling that your was querying indices table, double check your query, or specify your table if you have any custom table name in your model....

Activity icon

Replied to Hook A Route Middleware Or Event Without Touching Route

you can inject in the constructor of the controller...

Mar
29
1 week ago
Activity icon

Replied to How Do I See Latest Uploads From Laracasts?

Click on your profile photo there is a "What's New" menu you can click

or click on this link

https://laracasts.com/week-in-review

Activity icon

Replied to Convert Paginate Result Into An Array

the command look fine... you sure the error is triggered at this line? It seem weird, as the error message telling that this "DB::table('users')->paginate(10)" is an int.... try to return this result before appending ->toArray()...

Mar
28
1 week ago
Activity icon

Awarded Best Reply on How To Display Image From Local Disk Such As C,E,D Drive?

you should always put the image under your web public directory...

Mar
25
2 weeks ago
Activity icon

Replied to SQLSTATE[HY000] [2002] No Connection Could Be Made Because The Target Machine Actively Refused It.

it's more related to database service.. possible service not started, db port incorrect or firewall blocked that port...

Mar
23
2 weeks ago
Activity icon

Replied to General Error: 1364 Field 'name' Doesn't Have A Default Value

most likely the name field does not have any value... please dd($data) in Create method to double check it.

btw, your validator method is not in use in your create method....

Mar
22
2 weeks ago
Activity icon

Commented on Make The Timeline Dynamic

$table->foreignId('user_id') seem only exist in Laravel 7...

Mar
20
2 weeks ago
Activity icon

Replied to I Need A Good Course, A Tutorial, A Book.

Laravel is php framework and mainly for backend development nothing conflict with what frontend framework or javascript you use... whatever you know or learned about javascript, it should be fully compatible and applicable in laravel...

you haven't take enough time to know more about laravel....

take some time to watch laracasts free cources... there are vue, react, and chartjs series, but not sure is't free or paid subscriber....

Activity icon

Replied to Setup In Ubuntu Only Shows Index.php As Text

when you able to see .php file rendered as plain text content on your web server, it tell you that you web service is running but php is not installed/enabled or not configure properly...

Activity icon

Replied to Call To Undefined Method Illuminate\Database\Query\Builder::ignore()

i think ignore() method only exist in Rule but not in Query....

Mar
18
3 weeks ago
Activity icon

Commented on Twitter Clone Setup

Could reveal how many episodes and how long this final chapter will be finished???

Activity icon

Replied to Middleware Authorize Responses Status Code 500 Instead Of 403

if you get 500 meant there is something wrong with your code or some settings...

Activity icon

Replied to Globally Install Specific Version Of Laravel

laravel/installer is not equal to laravel/laravel....

laravel/installer latest version is v3.0.1

Mar
15
3 weeks ago
Activity icon

Replied to Laravel Image Upload (504 Gateway Timeout Ubuntu, Nginx)

the figures is depend on your application need, but it's big for me... anyway, try set max_execution_time = 120 for testing purpose... if it's still fail it may be other configuration/permission issue causing the error, try to find any server logs it may help..

Activity icon

Replied to The Right Way To "Class"

there is no right and wrong... totally depend on your own preferences as the code will still functioning well. But there do have some naming convention suggested and followed by majority of the developers, by doing so it help and easier others who work on the code to understand easily or avoid any confusion...

https://wiki.php.net/rfc/class-naming

Activity icon

Replied to Laravel Image Upload (504 Gateway Timeout Ubuntu, Nginx)

there are few value setting in php.ini you can try:

max_input_time (not max_execution_time!) upload_max_filesize post_max_size

but make sure configure it appropriately, otherwise, it may causing performance issue...

Mar
14
3 weeks ago
Activity icon

Awarded Best Reply on Undefined Variable: User In View When Trying To Send Email

Did you defined your $user as public property on your mailable class?

https://laravel.com/docs/7.x/mail#view-data

Mar
13
3 weeks ago
Activity icon

Replied to Undefined Variable: User In View When Trying To Send Email

Did you defined your $user as public property on your mailable class?

https://laravel.com/docs/7.x/mail#view-data

Activity icon

Replied to Laravel Permissions

for real time update you may need broadcasting...

https://laravel.com/docs/broadcasting

but in your case with proper permission/policy setup, simply ask the user to refresh will do...

Activity icon

Replied to How To Use Free Services Of Azure Dns

the service is not free, however you can create your first trial account that will give $200 credits to spend within 30 days it should be plenty enough for you to test it out...

https://azure.microsoft.com/en-us/free/

Pricing https://azure.microsoft.com/en-us/pricing/details/dns/

Mar
12
3 weeks ago
Activity icon

Replied to Sample Code Containing Expression Like {{ $title }} Cause Blank Page In Laravel

what you typed {{ $title }} here is not called variable but to the html form it just treated as plain text, it's depend on the interpreter, in blade, it treat all {{ }} as expression, this is the behavior of blade...

when the variable is undefined, Laravel will throw error, or redirect to 500 page if APP_DEBUG set to false.

Mar
11
4 weeks ago
Activity icon

Replied to Sample Code Containing Expression Like {{ $title }} Cause Blank Page In Laravel

System won't lie, If you able to output {{ 2 + 3 }} then you should able to output {{ $title }} unless there is no value or something wrong with the variable...

I guess, you are messing up variables between JavaScript and php…

Activity icon

Replied to Fetch Json In Config File

You should consider sqlite…

Activity icon

Replied to How Can Edit My Website Which Is Built With Laravel?

Learning take times and long times as require a lot of practices, if you have no time, then out source it let other to handle the job will be more appropriate…

Activity icon

Replied to A Medium Sized Personal Project

Complete the series "build a forum with TDD" build some similar community forum on your own...

Activity icon

Replied to Is There A Way To Remove All The Html Tags?

Do your own regular expression to replace the characters with empty string since you had remove all the HTML tags

Activity icon

Replied to Sample Code Containing Expression Like {{ $title }} Cause Blank Page In Laravel

Probably it will more helpful if you show code how the $file_name is being pass to blade and the dd($file_name) result first…

Activity icon

Replied to Laravel Subscription Problem

the error had explained it, you have no "subscriber" role... if you are using some 3rd party package, you should ensure the role is created before you can assign it.

Activity icon

Replied to Laravel 404 Not Found On Heroku

in general, 404 is page not found, usually related to document root, .htaccess, route file...

perhaps, you should show more info such as what page can and what cannot, and also the route list, laravel version, php version and so on...

Mar
10
4 weeks ago
Activity icon

Replied to Error Connecting Database

try clear the cache, or simply deletes bootstrap/cache/config.php file.. restart your web service...

php artisan config:clear 
Activity icon

Replied to POST Request Shows 419 Page Expired On Laravel 5.8

Double check your code whether any typo or unbalance closing tag, etc… Try revert back to the stage before you make any changed step by step and test each stage. Or simply create simple form to update a value…

Activity icon

Replied to Where Can I Download The Pretty Tinkerwell App?

https://tinkerwell.app/, you can download it after you bought the license...

try open with other browser...

Activity icon

Replied to The GET Method Is Not Supported For This Route. Supported Methods: POST

double check the route file and form again...

Activity icon

Replied to How To Update Admin Email In Settings In Dashborad?

config usually is where people use to pre-set certain settings' value according to their environment and need, for dynamic value it's more practical to keep it in database instead of in config file...