siangboon

Developer at Kuala Lumpur, Malaysia

Member Since 5 Years Ago

Kuala Lumpur

Experience Points
269,790
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
1812
Lessons
Completed
Best Reply Awards
110
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
269,790 XP
May
11
9 hours ago
Activity icon

Replied to Best Practice: Laravel + Permissions: Where To Put Permissions?

I usually will have a global authorization control (such as super admin who can bypass certain of checking) at AuthServiceProvider, but you can do it with middleware so can apply anywhere as necessary, and resources/model basis, I prefer using policy...

policy is applicable on particular models basis, so you can use at more than one controller method or even more than one controller as long as you pass the model/resource accordingly, just that usually people create one policy for one method explicitly, you may use same policy for more than one method, such as update policy where user who can edit also can delete....

May
06
5 days ago
May
02
1 week ago
Activity icon

Replied to Laravel Sail Command Not Responded.

i'm using Windows, the command just work fine for me... I'm guessing that will it be the permission issue to create the folder in the certain directory in Mac???

Activity icon

Replied to How To Calculate Time Difference Plus Sum This Based On Grouping

sorry that I didn't really try out the statement but just glance on the syntax, i guess it should not have a "," in that statement, perhaps should something look like this

selectRaw('times.*, TIMESTAMPDIFF(minute, stop, start) AS minutes, sum(minutes) as total_time')

Activity icon

Replied to Laravel Project Start Error On Localhost

the system is telling you that it can't find the class that you referring (most likely it's defined in "config\app.php").

you may require the package via composer, just follow the guideline in github:

https://github.com/grimzy/laravel-mysql-spatial

Apr
30
1 week ago
Activity icon

Awarded Best Reply on SQLSTATE[42S22]: Column Not Found: 1054 Unknown Column 'image' In 'field List' (SQL: Insert Into `multimgs` (`image`, `updated_at`, `created_at`) Values (image/multimgs/1698482059909364.png, 2021-04-30 16:05:17, 2021-04-30 16:05:17))

the error telling you that the table "multimgs" does not have a column name "image"

and base on your migration file, the column should be "name"

so $newMultimgs->image is incorrect... and the $fillable is incorrect as well.

Activity icon

Replied to SQLSTATE[42S22]: Column Not Found: 1054 Unknown Column 'image' In 'field List' (SQL: Insert Into `multimgs` (`image`, `updated_at`, `created_at`) Values (image/multimgs/1698482059909364.png, 2021-04-30 16:05:17, 2021-04-30 16:05:17))

the error telling you that the table "multimgs" does not have a column name "image"

and base on your migration file, the column should be "name"

so $newMultimgs->image is incorrect... and the $fillable is incorrect as well.

Apr
28
1 week ago
Activity icon

Replied to How Much Is *correct* To Put Into A Route?

I think the "correct" and "right" way to learn may be is to go through the fundamental series first, and re-watch it and practice it.

https://laracasts.com/series/laravel-6-from-scratch (this a bit old, but still very helpful)

https://laracasts.com/series/laravel-8-from-scratch (this is new, but yet complete, may take 2-3 months or more to complete)

Apr
27
2 weeks ago
Activity icon

Replied to Maximum Execution Time Of 60 Seconds Exceeded For Simple Query

check the log and you need debug tool to trace the issue...

simplify the query first and add complexity bit by bit to find out which part of query that cause time out...

if even a simple select query can cause timeout, most likely something wrong with your resources or environment setup, such as connection to the DB server may already an issue....

Activity icon

Replied to Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException The PATCH Method Is Not Supported For This Route. Supported Methods: PUT.

yes, print out the route list and compare with the rendered url for the form action.

Activity icon

Replied to Maximum Execution Time Of 60 Seconds Exceeded For Simple Query

the system is just telling what was happening... the issue can be many, such as number of records in the table, the indexing, the resources of the server allocated, network connection performance... until you able to find out which part that causing long time execution, modify the php.ini is the quick fix but not for long term...

try enable the debugbar, telescope or Clockwork extension or any debug tool to check the total time it take, it seem you are making multiple query...

Apr
26
2 weeks ago
Activity icon

Replied to Configure Laravel To Use Mail()

Supported: "smtp", "sendmail", "mailgun", "ses",
    |            "postmark", "log", "array"

if the supported mailers does not cover your need, then just write your own.

Activity icon

Replied to Object Of Class Illuminate\\View\\View Could Not Be Converted To Number


return view('admin.categories.append_categories_level')-with(compact('getCategories'));

is it typo error?? should it be this ->with instead of -with

return view('admin.categories.append_categories_level')->with(compact('getCategories'));

or, you can just simply use compact directly without with as mentioned by automica

Activity icon

Replied to Object Of Class Illuminate\\View\\View Could Not Be Converted To Number

I'm pretty sure what you pretty sure is not what the error causes.... hahahaha.... Just kidding....

don't too fast give the conclusion or assumption, it is not good being a developer,...

show the entire page code, the partial code you shown does not seem related to the error...

Apr
25
2 weeks ago
Activity icon

Replied to Failing A Job Manually Shows Both Processed And Failed

i think that the processed meant, had been executed or the process of the job is completed...

Activity icon

Replied to Unresolvable Dependency Resolving At Component Class

parameter #5 is $model, is this parameter have value??? or you may need to have a default value for $model...

Activity icon

Replied to Laravel Sail Testing Database

perhaps, double check that your SQL instance in your machine is not running or not conflict with the port in using by the SQL instance in Sail.

Activity icon

Replied to Session Regeneration Creates Annoying 419 Error

he is referring this, I guess, but this is regenerate the token instead of session....

https://laravel.com/docs/8.x/authentication#logging-out

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;

/**
 * Log the user out of the application.
 *
 * @param  \Illuminate\Http\Request $request
 * @return \Illuminate\Http\Response
 */
public function logout(Request $request)
{
    Auth::logout();

    $request->session()->invalidate();

    $request->session()->regenerateToken();

    return redirect('/');
}


Activity icon

Commented on Turbo Boost With Factories

perhaps, you should watch the previous series first as this entire series probably will take a very long time to complete, at least 3 months I believed...

Activity icon

Replied to Help! Index.php Compromised.

check the http and ftp access log, review all the suspicious access and see what and where. reset your control panel or any backend access credential..

Apr
22
2 weeks ago
Activity icon

Replied to Show Indication That A Series Has Been Completed Within Series Cards

I guess that muggles is referring to Laracasts lessons, this Laracasts site is good in UI but not in UX, lot of features need to be improved especially the filters feature in the lessons and forum also....

although I sent number times and no update also, but the proper way i think should send the feedback using the support link at the footer below...

Activity icon

Replied to Which Type Of Relationship Should Be Used With Bookmark

a user can bookmark many images/videos, a image/video can be bookmarked by many users...

Apr
20
3 weeks ago
Activity icon

Replied to PHPUnit Testing - POST Method Is Not Supported For This Route

For convenience, the CSRF middleware is automatically disabled when running tests.

POST Method is not supported for this route usually meant there is no POST method in the route for that particular url.. double check the route especially typo error

Activity icon

Replied to Best Way To Set This Up As A Relationship?

you can create a pivot table to link up the many to many relationship for subscriptions and statuses read the relationship from Laravel documentation or watch lessons from Laracasts, it should help you to achieve it...

Apr
13
4 weeks ago
Activity icon

Replied to Trouble With Running Tailwind

perhaps make sure your existing css file not using the same file name as the the output file the default is app.css as after the npm run dev command it will override the file.

webpack.mix.js

mix.js('resources/js/app.js', 'public/js')
    .sass('resources/sass/app.scss', 'public/css');


Activity icon

Replied to Column Not Found

I'm not so sure what are you trying to do, or do you really know what are you trying to do??

your insert statement seem only have 2 columns('key' and 'value') but your schema have no such columns name 'key' nor 'value'... but consist of 'language', 'company_name' and so on as shown...

Activity icon

Replied to Route List Only Showing Debugbar

it is unlikely to happen just because after installed debugbar....

I guess that there must be some customization on the RouteServiceProvider.php...

Apr
12
4 weeks ago
Activity icon

Replied to Why I Can't Play Any Videos In Laracasts ?

the site is loading fine. most of the lessons are only viewable for subscribers, if the issue still happened, you may report the issue to the support using the Support link at the bottom page footer...

Activity icon

Replied to Laravel Installer Php 8

you may remove if there is no project using it. to remove

composer remove <package-name>

may check the help menu for more options

composer help remove
Activity icon

Replied to Laravel Installer Php 8

as my understanding, usually when see the "latest" version does not satisfy that requirement meant some of the existing dependencies/packages having compatibility issue or not support php 8 yet, you can see what are the packages had installed globally by running the command.

composer global show

perhaps, require the laravel/installer without global, or simply create new project using composer...

Activity icon

Replied to Laravel Installer Php 8

what about try update the composer first?

composer self-update

or

composer global self-update
Activity icon

Replied to Laravel Installer Php 8

https://github.com/laravel/installer/issues/181

perhaps try update the composer before require...

composer global update
Apr
07
1 month ago
Activity icon

Awarded Best Reply on Disable Register POST Route

Auth::routes(['register' => false]);

and remove the register link from view and the Auth\RegisterController as well...

Activity icon

Replied to Disable Register POST Route

Auth::routes(['register' => false]);

and remove the register link from view and the Auth\RegisterController as well...

Apr
04
1 month ago
Activity icon

Replied to Add New Column To Table Database

then just go to your database to modify the table schema....

Apr
02
1 month ago
Activity icon

Replied to Laravel Shopping Cart Error

I think you should go and learn what the package do and how to utilize it don't just simply copy and paste...

https://github.com/darryldecode/laravelshoppingcart/blob/master/src/Darryldecode/Cart/Helpers/Helpers.php

i take a guess it should read values from config file https://github.com/darryldecode/laravelshoppingcart/blob/master/src/Darryldecode/Cart/config/config.php

Mar
31
1 month ago
Activity icon

Replied to There Is Some Good Reason To Keep Using PHP? Why Do People Are Migrating To NodeJS?

you can choose to learn/use either one or learn/use both together at the same times. there is no good reason to compare each other... I believed that by the time you retired, PHP and nodejs still exists and using by many people... this question may still got people asking...

Mar
25
1 month ago
Activity icon

Replied to Changing Xampp Php Version

it's hardly go wrong if you direct download and extract/install from the original source. You should double check the source you download, copy and extract/save are as the same. i suspected that you did the wrong in either one step...

or, redownload or simply download the php version to overwrite it...

Mar
24
1 month ago
Activity icon

Replied to Undefined Constant "Yajra\Oci8\Connectors\OCI_CRED_EXT"

perhaps double check the oci8 extension is enabled in your php8 ini file....

Mar
17
1 month ago
Activity icon

Commented on An Animated Introduction To MVC

I'm quite exciting to see this learn from scratch long series back again, at the same time also hope to see some new things like more lessons on back-end user/roles/permission, dynamic menu, api, laraberg like wordpress and etc..

Mar
09
2 months ago
Mar
08
2 months ago
Activity icon

Replied to Laravel Send Email After Records Inserted Into Mysql

https://laravel.com/docs/8.x/scheduling#task-output

$schedule->command('report:generate') ->daily() ->sendOutputTo($filePath) ->emailOutputTo('[email protected]');