siangboon

Developer at Kuala Lumpur, Malaysia

Member Since 4 Years Ago

Kuala Lumpur

Experience Points
256,700
Total
Experience

0 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
1720
Lessons
Completed
Best Reply Awards
106
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.

  • Community Pillar

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

Level 50
256,700 XP
Feb
25
14 hours ago
Activity icon

Replied to Best Way To Remove Columns From Table [ Live Project ]

hahaha...

first you should clone the same environment to Testing Environment and then test whatever suggested or you like...

Activity icon

Replied to Class App\Http\Middleware\VendorMiddleware Does Not Exist

Class App\Http\Middleware\VendorMiddleware does not exist

system won't suddenly not working.... most likely something had changed...

check the class (exist or not, case sensitivity or typo error issue) or check the namespace also...

if you have update something then review back what had updated that affect the functionality...

Feb
23
2 days ago
Activity icon

Replied to Laravel Pusher With Echo Returns 405

405 Post Method Not Allowed exception telling there is missing of a POST method for the endpoint of the request....

try to list all the routes and double check....

btw, here the Broadcast:routes works, it may give you some ideas

    /**
     * Register the routes for handling broadcast authentication and sockets.
     *
     * @param  array|null  $attributes
     * @return void
     */
    public function routes(array $attributes = null)
    {
        if ($this->app instanceof CachesRoutes && $this->app->routesAreCached()) {
            return;
        }

        $attributes = $attributes ?: ['middleware' => ['web']];

        $this->app['router']->group($attributes, function ($router) {
            $router->match(
                ['get', 'post'], '/broadcasting/auth',
                '\'.BroadcastController::class.'@authenticate'
            )->withoutMiddleware([\Illuminate\Foundation\Http\Middleware\VerifyCsrfToken::class]);
        });
    }
Activity icon

Replied to Error When Trying To Create A Feature Using Opensoft/Rollout

I'm not so sure about this issue and package... but just feel that bootstrap/app.php seem not a good place to put plugin/package code inside... and some of the kernal functions may not ready if you put the sequence wrongly....

Feb
21
4 days ago
Activity icon

Awarded Best Reply on 500 | SERVER ERROR Appeared After Uploading File To Shared Hosting.

did you enable the debug mode by setting APP_DEBUG=true in .env file...

usually, the first time upload and give error will be:

  • document root not set correctly
  • .htaccess
  • permissions
  • typo error (case sensitivity) on certain file name
Activity icon

Replied to 500 | SERVER ERROR Appeared After Uploading File To Shared Hosting.

did you enable the debug mode by setting APP_DEBUG=true in .env file...

usually, the first time upload and give error will be:

  • document root not set correctly
  • .htaccess
  • permissions
  • typo error (case sensitivity) on certain file name
Activity icon

Replied to The Best Course To Learn JavaScript

i believed that there is no such best recipe that fit all, everyone have different taste, end up you will get lot of recipes and still need time to try it out yourself and filter your own....

just go try out whatever you found... and keep trying and coding... as the key important element is not the recipes but the practices... learn from the mistakes are much more valuable than learn from the perfect... as real world and works does not always perfect....

Feb
19
6 days ago
Activity icon

Replied to Frustrating 419 | Page Expired On Login Using Jetstream

419 is related tokenMismatchException, did you put the @csrf token in the form and able to render in the form (_token hidden input field)??

perhaps paste the code here will help at least it avoid to many guess works

Feb
18
1 week ago
Activity icon

Replied to Unable To Launch A New Process.while Running Laravel On Window Server

i guess that this may not related to Laravel yet, but the system environment or web server setup...

perhaps try to load a simple html and php page to check whether your web server is working fine first...

Activity icon

Replied to Questions About A Windows-based Home Server.

get onedrive or google drive or any cloud drive will be much easier... whatever local server also need a backup as server will failed in one day...

Feb
17
1 week ago
Activity icon

Replied to Question About Routing

the sequence of the route may affect the priority of the request especially when there is a same method with wildcard parameters, all the sub path will always be assumed as parameters...

Feb
16
1 week ago
Activity icon

Awarded Best Reply on SQLSTATE[42S21]: Column Already Exists: 1060 Duplicate Column Name 'deleted_at' (SQL: Alter Table `posts` Add `deleted_at` Timestamp Null)

SQL: alter table posts add deleted_at timestamp null

you are altered the table, the schema you shown is creating... most likely there is another migration file that alter the table by adding the softdeletes....

or you may simply remove the alter posts migration file as the columns already exists...

Activity icon

Replied to SQLSTATE[HY000] [2002] Connection Refused Laravel Docker

the error said there is a service (mysql) already using this port 3306, if you are not using it then just stop the service temporary or uninstall it, but if you want to use both at the same time then just change either service to use other port number...

Activity icon

Replied to Call To Undefined Method Illuminate\Database\Eloquent\Builder::befriend()

from my understanding... this package only support Laravel 5 at the moment...

Kindly change this in an updated version as The fire() method is an alias to the dispatch() method. The renaming of this method started way back in the 5.3 to 5.4 upgrade, and is included in the upgrade guide:

https://laravel.com/docs/5.4/upgrade

Thanks as we can use this package fro laravel updated versions

https://github.com/hootlex/laravel-friendships/issues/145

Activity icon

Replied to SQLSTATE[42S21]: Column Already Exists: 1060 Duplicate Column Name 'deleted_at' (SQL: Alter Table `posts` Add `deleted_at` Timestamp Null)

SQL: alter table posts add deleted_at timestamp null

you are altered the table, the schema you shown is creating... most likely there is another migration file that alter the table by adding the softdeletes....

or you may simply remove the alter posts migration file as the columns already exists...

Feb
15
1 week ago
Activity icon

Replied to Laravel Uploaded File Name Change Is Not Working

not only the space, i think the custom_name should update before the move...

do you meant the name not change because the echo result of this getClientOriginalName()???

echo '<img src="uploads/' . $file->getClientOriginalName() . '"/>';

mind to dd the $file and also the $custom_name?

Feb
11
2 weeks ago
Activity icon

Replied to Upgrade L7: App\exceptions\handler.php File,

handler.php from v7,

use Throwable; is outside the class...

<?php

namespace App\Exceptions;

use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use Throwable;

class Handler extends ExceptionHandler
{
    /**
     * A list of the exception types that are not reported.
     *
     * @var array
     */
    protected $dontReport = [
        //
    ];

    /**
     * A list of the inputs that are never flashed for validation exceptions.
     *
     * @var array
     */
    protected $dontFlash = [
        'password',
        'password_confirmation',
    ];

    /**
     * Report or log an exception.
     *
     * @param  \Throwable  $exception
     * @return void
     *
     * @throws \Exception
     */
    public function report(Throwable $exception)
    {
        parent::report($exception);
    }

    /**
     * Render an exception into an HTTP response.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Throwable  $exception
     * @return \Symfony\Component\HttpFoundation\Response
     *
     * @throws \Throwable
     */
    public function render($request, Throwable $exception)
    {
        // if token mistmatch = timeout
        if ($exception instanceOf \Illuminate\Session\TokenMismatchException) {    

            // flash your message

            flash('Your session have expired. Please try again', 'warning', 5000, false); 

            return redirect('login');
        }
        
        return parent::render($request, $exception);
    }
}


Feb
09
2 weeks ago
Activity icon

Awarded Best Reply on Controller Not Working When In Subfolder

Target class [App\Http\Controllers\CreateReportController] does not exist.

the error stated the system encountered issue on calling the "App\Http\Controllers\CreateReportController", since you had confirmed that the namespace is setup correctly, meant that there may have some route/place you miss out or overlook...

Feb
08
2 weeks ago
Activity icon

Replied to Controller Not Working When In Subfolder

Target class [App\Http\Controllers\CreateReportController] does not exist.

the error stated the system encountered issue on calling the "App\Http\Controllers\CreateReportController", since you had confirmed that the namespace is setup correctly, meant that there may have some route/place you miss out or overlook...

Feb
07
2 weeks ago
Activity icon

Replied to Log User Activities

perhaps check out the "Build A Laravel App With TDD" series, there are quite some lessons cover "activities" in details...

https://laracasts.com/search?q=activity

Feb
05
2 weeks ago
Feb
03
3 weeks ago
Activity icon

Replied to Auth::attempt Validate User Login Correctly But Does Not Save User Session So User Still Appear Not Login

i think the user query is unnecessary as the Auth::attempt will validate the user and log it in.

perhaps try comment the $user query and replace the $user with auth()->user()

Activity icon

Replied to "Target Class [ExcelController] Does Not Exist."

did you create the class correctly?? double check any typo error and also the namespace....

Activity icon

Replied to Laravel And PHP Memory_limit

memory_limit is to limit the max memory allocation to the php process, your server physical RAM should much more than this.

probably just let it as default, until you hit issue then only fine tune... but try to understand why it need to increase the limit and also the impact before increase,sometimes fine tune the query or logic may help also...

Activity icon

Replied to Duplicate Records In Result

perhaps use RAW query will be easier...

Feb
02
3 weeks ago
Activity icon

Replied to How Can I Set Model Attribute To INT?

assume the $casts section have the typo error as mentioned by RahulKmOfficial, and missing the comma also...

the error stated Object of class stdClass it seem system detected your balance as an object, could you print out the dd() result of balance

Feb
01
3 weeks ago
Jan
31
3 weeks ago
Activity icon

Replied to How To Fix 400 Bad Request While Create Local Domain PHP Native?

i believe that you can either use different unique host name with same port 80 (<VirtualHost chat.com:80>, <VirtualHost blog.com:80>) or wildcard hostname with different unique port (<VirtualHost *:8000>, <VirtualHost *:8100>) in each virtual host section but not <VirtualHost *:80> for all....

Activity icon

Awarded Best Reply on How Can I Add Unique Url For Coupon In Wordpress

it's not too complicated... basically you just need a table to keep track the user id and the generated code...

Jan
27
4 weeks ago
Activity icon

Replied to How Can I Add Unique Url For Coupon In Wordpress

it's not too complicated... basically you just need a table to keep track the user id and the generated code...

Activity icon

Replied to How Can I Add Unique Url For Coupon In Wordpress

i think you meant random unique code instead of url....

it is similar like email verification (you can search in Laracast, there should have few lessons), simply generate a random string and store in the coupon table...

Jan
26
4 weeks ago
Activity icon

Replied to Error In Default Url In Laravel

i'm not sure how you "delete all previous code", if you unable to route back to the default root meant you missing out some steps...

I guess that->prefix('{_locale}') is more related to reason your route have a prefix en...

Jan
25
1 month ago
Activity icon

Replied to 505 Error

I think that your case may more related to to .htaccess, document root and also permissions issues...

try set the APP_DEBUG=true in .env file, check the server log and laravel log to find any hint that causing the error...

Activity icon

Awarded Best Reply on Building A Social Media Management System For Inventory

Perhaps this help you to understand:

https://laraveldaily.com/can-laravel-used-big-enterprise-apps-summary-laravel-podcast/

Laracasts is one of the good example for your comparison.

Jan
24
1 month ago
Activity icon

Replied to Get Related Tags Using Post Tags

usually pivot table, post_tag, will be good enough

Jan
22
1 month ago
Jan
21
1 month ago
Activity icon

Replied to Can't Use Anonymous Blade Components Inside Other Blade Components

try double check any@if and @endif or nested elements not closing properly....

Activity icon

Replied to Error On Installing Jetstream(Allowed Memory Size Bytes Exhausted)

try set the memory limit in your php.ini file for temporary workaround

memory_limit = -1

Jan
20
1 month ago
Activity icon

Replied to I Need Help?

we are not born with knowing English nor programming language, if you able to access Internet, you can learn any language or any programming language as you wish or literally anything you want.

go to wix.com, it's just drag and drop and it's free, or hire someone to build for you

Jan
19
1 month ago
Activity icon

Replied to I Need Help?

it seem like spam....

sellclone113.net

Jan
18
1 month ago
Activity icon

Replied to Laracasts Video Not Playing For Me

i guess it may due to internet connection slow or not stable issue... perhaps try to download and watch it...

Activity icon

Replied to Laracasts Video Not Playing For Me

can you screenshot the entire page you encountered error, including the full url in the address bar and also the console log....

Activity icon

Replied to Laracasts Video Not Playing For Me

the site is working well and the video have no problem. Try to clear the cache and re-login again.

Activity icon

Replied to LTS Or Latest Version - Which Version Would You Use?

i think version 8 is quite drastic....

Activity icon

Started a new Conversation LTS Or Latest Version - Which Version Would You Use?

This question had been asked before https://laracasts.com/discuss/channels/laravel/lts-or-latest-version-which-should-be-used but it's before Laravel follow Semantic Versioning...

with the current versioning, Bug Fixes Until only six months from release date and Security Fixes supported up to a year only...

So would you use Laravel LTS version or always the latest version???