siangboon

siangboon

Developer at Kuala Lumpur, Malaysia

Member Since 4 Years Ago

Kuala Lumpur

Experience Points
215,190
Total
Experience

4,810 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
1517
Lessons
Completed
Best Reply Awards
82
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 44
215,190 XP
Jul
11
1 day ago
Activity icon

Replied to An Impossible Error

after take a glance on your long description without code, i only see file not able to upload issue... usually the common issue is forgotten the enctype="multipart/form-data" or permission issue

<form action="upload.php" method="post" `enctype="multipart/form-data"`>
Jul
09
3 days ago
Activity icon

Replied to Remote DB User Denied Access.

Not sure it's the case, but only few default ports is opened in Azure by default, user need to configure inbound security rule in order for the specific ports to be opened.

Activity icon

Replied to Limiting The Column String To 192

the max key length error and the limit is at the older version of mysql side, the command is to help to set the limit at Laravel to avoid the error during the migration...

if you want to use the higher length, use newer version of db that support so...

Jul
08
4 days ago
Activity icon

Replied to Error On Schedule Task

just simply guess, since it's an extention, probably can try double check the php.ini in use in terminal is same as the one in use in laravel....

Activity icon

Replied to How To Setup Default Domain On Apache?

instead of using *:80 , i think you may use a IP Address binding for a default virtual host or default vhosts for all ports...

Activity icon

Replied to Public IDs

Str::orderedUuid() is a helper that purposely created to solve the situation like yours.... and it has the higher uniqueness, at lesat compare to str_random(8), but you always have the choice to use the simpler generation way as you like...

Jul
07
5 days ago
Activity icon

Replied to Search By Month

try to output your $month and compare with the column in the database, perhaps the expected format not same... or, simply enable a querylog and copy the query into your database to query directly.

Activity icon

Replied to NPM Install Failing

perhaps try to start the vagrant as Administrator...

Jul
06
6 days ago
Activity icon

Replied to Vue Js Component Not Registering

did you run

npm run dev

to recompile the script???

Activity icon

Replied to Is It Good Or Bad If I Use Laravel's Before And After Middleware For Encrypt And Decrypt Every Request?

i would suggest that use SSL certificate for secure encryption unless for password kind of sensitive data....

Activity icon

Replied to How To Save The Content Of Tinymce

typically you just need to have a text column, and the textarea input in your form will be replaced by tinymce if you initial and setup according to the documentation correctly... at the end, system will just treat the HTML content as an input value and you should be able to save it as like other input...

dd() the input parameter once received to double check the value is received, one of the common mistake usually is forget to give the id and name for input control...

Jul
02
1 week ago
Activity icon

Replied to What Am I Doing Wrong? LoadViewsFrom

interesting... first time see @extends('test::login') instead of @extends('test.login')

Activity icon

Replied to Facade\Ignition\Exceptions\ViewException $Posts

I'm not sure your are confusing yourself or not but i was confused...

the layouts/blog is a view for index or for show or is a layout???

i guess the error hit when it hit show where your in your show.blade.php your first line is

@extends('layouts.blog')
Activity icon

Replied to @error Not Working

your input don't have name

Jul
01
1 week ago
Activity icon

Replied to How To Retrieve Address Of All User

User::all() will return a collection of Users, hence you have to use a loop to retrieve each user's address...

Activity icon

Replied to Where To Put {{csrf_field}} In Form Post?

it's just a helper function which will covert and rendered as hidden input (token), as long as within a form you are good to go... but usually people put it just after the opening form tag (as often forget) so it's easy to check it exist instead of scroll down to the end of the form to check...

Jun
30
1 week ago
Activity icon

Replied to Column Not Found In Laravel

this the error related to your database, try to run this query in your db server...

select storefront_facebook_link from settings

Jun
29
1 week ago
Activity icon

Replied to FadeIn & FadeOut For Flash Message

this is nothing to do with the code above, fadeIn/fadeOut is depend on your CSS.

you easily google it or check out one of the example... https://blog.hubspot.com/website/css-fade-in

Jun
27
2 weeks ago
Activity icon

Replied to Homestead2.test/login - But Not Loading App.css, App.js From

try run vagrant as an administrator, and use sudo to npm install

Jun
26
2 weeks ago
Activity icon

Replied to MySQL Login Issues

you have to replace "mysql-data-directory" with your own data directory...

The exact location and name of this file depend on your distribution, host name, and configuration. Common locations are /var/lib/mysql/, /var/run/mysqld/, and /usr/local/mysql/data/. Generally, the file name has an extension of .pid and begins with either mysqld or your system's host name.

basically the kill command is to stop the mysql process... perhaps can try this also

sudo systemctl stop mysql
Activity icon

Replied to 504 Gateway Timeout

check your server log and laravel log...

Jun
25
2 weeks ago
Activity icon

Awarded Best Reply on Admin Middleware In Blade

i think what you referring is called blade custom directive

https://laravel.com/docs/7.x/blade#extending-blade

Activity icon

Replied to Admin Middleware In Blade

i think what you referring is called blade custom directive

https://laravel.com/docs/7.x/blade#extending-blade

Activity icon

Replied to I Got Symfony/translation Errors Installing Laravel 5 On Remote Server

as far as we know, threads are not allowed to be deleted. however, you can change it to ask other question or simply mark it as resolved.

Activity icon

Replied to I Got Symfony/translation Errors Installing Laravel 5 On Remote Server

you can't simply change the php version in composer.json (old version) and expected it will work, especially it's more than 2-3 minor versions...

in laravel 5 (depend on version) some use php 5.6 and earlier version, there are quite number of commands deprecated and changes between php 5.6 and 7.1, hence the laravel version had some changes updated according to the php version respectively...

upgrade and test the laravel 5 project to the version as production version in your local first, or, use the same php and laravel version in production...

Activity icon

Replied to Homestead2.test/login - But Not Loading App.css, App.js From

when you run npm run dev, it should compile the sass and js file from the resources folder output into public/js and public/css

but before that, npm install have to be executed before npm run dev to ensure all the dependencies are in place.

in your case, it seem errors (npm ERR! code EPROTO npm ERR! syscall symlink npm ERR! path ../@babel/parser/bin/babel-parser.js...) while executing the npm command... hence no output file processed...

i didn't use vagrant and babel etc, can't help much but suggest that run the npm instsall and npm run dev separately to easy identify where the error is...

Activity icon

Replied to What Are The Sequence Of Courses Should I Follow Up ?

Jeffrey had setup the journeys, you can jump to the section you interested or depend on your skill level

https://laracasts.com/skills/laravel

Jun
23
2 weeks ago
Activity icon

Replied to Blog Post With BlogCategory Controller Relationship Not Working.

it seem more like some of your "blog" have not attach to "blogcategory" yet....

Jun
22
2 weeks ago
Activity icon

Replied to PHPUnit Does Not Work Inside VS Code's Terminal!

make sure your "users" table exists or have the create "users" schema migration file exists .

Jun
21
3 weeks ago
Activity icon

Replied to Error 500 After Deploying Application

interesting.... you yourself marked it as best answer but at the end you hit error....

Jun
20
3 weeks ago
Activity icon

Replied to Error 500 After Deploying Application

i think I would check the document root and .htaccess rather than modify the index.php(so far i have never modify once)

https://laravel.com/docs/7.x/installation#pretty-urls

Jun
14
4 weeks ago
Activity icon

Replied to Error Artisan Route:list

it is better solve a problem at a time, otherwise it's not only very confusing and mess up the problems...

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

if the above issue resolved then just simply briefly explain what you did that solved the issue, then close the thread... for other following questions, then just create another new one

This will help and ease others who encountered the same issue to refer back...

Activity icon

Replied to FataThrowableError - Laravel 5.4

you may try to use PHP version 5.6.4 for Laravel 5.4...

Activity icon

Replied to FataThrowableError - Laravel 5.4

perhaps first thing to check is the php version if it's newly install and setting up...

Jun
10
1 month ago
Activity icon

Awarded Best Reply on Fwrite(): Send Of 6 Bytes Failed With Errno=10054 An Existing Connection Was Forcibly Closed By The Remote Host.

the fwrite() function was failed and most likely the remote host does not allow the action hence reject it by disconnecting the connection....

Activity icon

Replied to Fwrite(): Send Of 6 Bytes Failed With Errno=10054 An Existing Connection Was Forcibly Closed By The Remote Host.

the fwrite() function was failed and most likely the remote host does not allow the action hence reject it by disconnecting the connection....

Activity icon

Replied to Error Artisan Route:list

i think this "Missing required parameters for [Route: users.edit] " is different error... (better create another thread to avoid confusing others)

the information given in the thread show that your UsersController is not defined in App\Http\Controllers but *App\Http\Controllers\Admin* according to your namespace

namespace App\Http\Controllers\Admin;

hence the error occurred

Target class [App\Http\Controllers\UsersController] does not exist

meant that the system can't find UsersController in App\Http\Controllers folder....

and most likely this error is triggered at your route file

Route::group(['middleware' => ['role:administrator']], function () {

    Route::resource('users', 'UsersController');   
    ...

should be

Route::namespace('Admin')->group(['middleware' => ['role:administrator']], function () {

    Route::resource('users', 'UsersController');  
   ...

or

Route::group(['middleware' => ['role:administrator']], function () {

    Route::resource('users', 'Admin\UsersController');   
    ...
Activity icon

Replied to Removing Public Url Problem With Subfolder Installation.

https://laravel.com/docs/7.x#configuration

Public Directory

After installing Laravel, you should configure your web server's document / web root to be the public directory. The index.php in this directory serves as the front controller for all HTTP requests entering your application.

Activity icon

Replied to Error Artisan Route:list

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

possible that your route file (web.php) forgot to group or prefix the "Admin\" for UsersController....

Activity icon

Replied to What Is More Efficient Model:: Or $model = New Model

I think having plenty of helpers or many simple ways to code is one of the benefits of Laravel but sometimes it may confuse....

both statements are same... often see Jeffrey refactoring it to this single line method, CustomerReview::where()->get(), when there is only call for once and no need to assign to variable for reuse...

Jun
09
1 month ago
Activity icon

Replied to Best Practice For Checking "capabilities" Instead Of "permissions"?

To me, presenting actions to the user that they can't perform may not always a bad UX, sometimes it let the user to know there is such thing exists but they just do not have that level of permissions, so at least they know the action can be done but they need higher level authority or authorized persons assistant to execute that.

For example, in a forum, new registered user can login and read posts but only verified email address user can comment or create new thread, hence it's fine for me to show the comment and create post button but it will pop up a reminder to request user to verify their email before the action allowed.

Another example, Laracasts, non-subscribers are able to view the free lessons, but they can't watch other lessons but they still able to see the listing even able to click on the lesson page but only see the description about the lesson and some comment (or may be rating or review) about the lessons...

back to the question, in the policy, it is not only limited to check the user role or permission, you may add in your own state checking inside, or if you don't like gate then just simply store your state in a variable and have a state checking at the view to decide whether show it or not...

Activity icon

Replied to Sqlstate Hy000 General Error 1005 Can't Create Table Laravel

are these data type same? btw, the collation of provinces table is different from others...

Activity icon

Replied to Laravel 5.8 / Route Not Found (404 Error) But Exist

Sorry, I'm bit confusing, the first route show is GET request for delibContrepartie but the controller show is destroy And is the destroy a GET method or DELETE method???

Activity icon

Replied to Multiple Get Methods For One Model

there is no right or wrong... just make it work first then you can feel it and you can always refactor it later when it's necessary...

perhaps, I would just accept the filter cafeterias and sorting parameters instead of the fields and return the partials articles (paginated) with all necessary fields into view, then let the view to enable/disable the display of fields...

Activity icon

Replied to Sqlstate Hy000 General Error 1005 Can't Create Table Laravel

make sure the referencing tables exist before the foreign key can be created...