siangboon

siangboon

Member Since 3 Years Ago

Kuala Lumpur

Developer at Kuala Lumpur, Malaysia

Experience Points 117,150
Experience Level 24

2,850 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 1014
Lessons
Completed
Best Reply Awards 21
Best Reply
Awards
  • start-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-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-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist 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.

17 Jul
5 days ago

siangboon left a reply on Send Mail With Fake Data

did you start your queue worker?

siangboon left a reply on Want To Create User Table But I Don't Understand What Can I Do Create Customize User Table Or Use Laravel Built In Auth

I think you should ask yourself what you want for your system instead of asking people to suggest you as different people different system have different requirements. there is no such thing call the best for all but only the most suitable solution for your need...

build in auth is good enough for most of the case (especially you have no idea what you want and what you want to do also). if your extra fields are not many then can simply add some columns to the existing users table, if there are many information to cater you may need to create a table to store it and link to the users table accordingly.

Authentication is for your to validate only the users registered in the system to be allowed to access, authorization is for you to control what resources the users can access and do. No point to tell you everything as all are well documented, you can read your own, it's better you tell people what you want then only people can help. the short answer to your question is it depends.

these are 3 lessons that i think it may help you also https://laracasts.com/series/whip-monstrous-code-into-shape/episodes/4

12 Jul
1 week ago

siangboon left a reply on Laravel Min Validation Not Working

however if I enter a string of 2 characters for the device and data, it is still accepted and no error is returned."

you said 2....

siangboon left a reply on Doubt On How To Define Model For Team-Athletes-Sports Relationsships

examples online everywhere, why not try yourself first as an initiative to show your own efforts before seek for others to help...

siangboon left a reply on Laravel Min Validation Not Working

based on the code, your min for device is 6 and min for data is 22, hence 2 is acceptable for both device and data.

10 Jul
1 week ago

siangboon left a reply on Sql Query Too Slow

maybe agolia can help...

09 Jul
1 week ago

siangboon left a reply on Failed Asserting That Exception Of Type "\Exception" Is Thrown.

i think the expectException is expecting a valid and specify type of exception class like:

$this->expectException(InvalidArgumentException::class);

08 Jul
2 weeks ago

siangboon left a reply on Failed Asserting That Exception Of Type "\Exception" Is Thrown.

will it something wrong with your '/api/enums/nonexistingenum' file? how is the code look like?

siangboon left a reply on CSRF Token Not Found Even If It's In Meta Tag And AjaxSetup

the browser wont lie, it's better to double check the page source of the rendered html to find out the csrf_token input and check whether is it included in your ajax submission properly.

siangboon left a reply on SQLSTATE[HY000] [2054] Server Sent Charset Unknown To The Client

did you restart mysql service after changed the config?

05 Jul
2 weeks ago

siangboon left a reply on Error On PHPUnit

have you double check the path and case sensitive issue...

it's better to show the error message for other to understand your problem clearer.

siangboon left a reply on Using A Model Instead Of \DB::table

cease to work or did not work can mean a lot of things, it's better to elaborate the expected result and the actual result or at least show the errors. It save others' time and your time as well.

siangboon left a reply on The Page Has Expired Due To Inactivity.

I think I will remove the entire node_modules folder and rerun npm install if no customization on any module...

03 Jul
2 weeks ago

siangboon left a reply on Making Imported Vue Components Accessible Throughout My Laravel App

either you nested header as the components.... or just leave the header for php...

siangboon left a reply on I Don't Understand Request Objects In Laravel

Just think that $request as a wrapper for all the http request parameters, where it include a lot of useful functions to easier your work.

02 Jul
2 weeks ago

siangboon left a reply on Mail Delivery Issues

check the log it may help

siangboon left a reply on Laravel Package Update Not Working !!!

in the documentation, the $group is gained from make or you can create a new

$groups = App::make('Groups');

to get a particular group, you can read the source https://github.com/musonza/groups/blob/master/src/Groups.php probably, Group:::group($groupID)

siangboon left a reply on How To Populate A Dropdown Menu From Database ?

@TYKUS - spend more time for person who take the initiative and efforts... From the threads he posted, i don't see him put any effort to learn the basic at all but just a quick solution for his own works...

siangboon left a reply on Laravel - MYSQL Error

@NARCECL - No, you did not run the

php artisan config:clear

this command will delete the bootstrap/cache/config.php

siangboon left a reply on Elastic Email Is Not Working In Laravel

@GOUSEFEROZ - reverse back the steps you changed one by one and dd() out the credentials of each point before it hit to find out the real cause of the issue.

01 Jul
3 weeks ago

siangboon left a reply on Laravel - MYSQL Error

try clear the cache (php artisan cache:clear or php artisan config:clear)

siangboon left a reply on Elastic Email Is Not Working In Laravel

email not working can have more than dozen of reasons, it's better to check the log, either laravel or the server log may helpful to identify the root cause.

28 Jun
3 weeks ago

siangboon left a reply on Deleted User Notification Problem

i would probably have columns to indicate the status and duration of the users about to be deleted and have a schedule to check daily and send notification to the user before deleting it.

26 Jun
3 weeks ago

siangboon left a reply on Laravel Menu

I would like to suggest you that it is better to spend some hours to learn the basic of laravel at least learn how to query data from database, after understand that then only start learn about vuejs. These all fundamental are covered very well in Jeffrey's lessons.

https://laracasts.com/series/laravel-from-scratch-2018

https://laracasts.com/series/learn-vue-2-step-by-step

And only seek for help when you really encountered some issue/problems.

siangboon left a reply on Laravel Explode Not Working

seriously, i felt that this fellow does not deserve for any help as he did not put any initiative to learn at all but just to get cheap, quick and free help to solve his own works. i wish that @jeffreyway could have some feature to report or rate bad users.

siangboon left a reply on Implode(): Invalid Arguments Passed

seriously, i felt that this fellow does not deserve for any help as he did not put any initiative to learn at all but just to get cheap, quick and free help to solve his own works. i wish that @jeffreyway could have some feature to report or rate bad users.

siangboon left a reply on Laravel Redirect()->intended() Is Not Working In Custom Login Method

perhaps you could look at App/Middleware/RedirectIfAuthenticated.php and try from there.

siangboon left a reply on SQLSTATE[HY000]: General Error: 1364 Field "adresse" Doesn't Have A Default Value

the error (SQLSTATE....) is from database not the application. When creating the table via the migration table, all columns are not null by default, hence it's required to either mark the column as "->nullable()" or give a default value using "->default('something')". the faster way to resolve the issue is just simply tick uncheck the NN on the "address" field in your database, or update the schema accordingly and refresh your migration.

siangboon left a reply on Invalid Argument Passed

mvd and the error message had mentioned clearly that it's related to your argument and obviously it's not an array.

take couple of seconds to read doc from the link and is this "B.edM.edNTT" an array?

https://www.php.net/manual/en/language.types.array.php

25 Jun
3 weeks ago

siangboon left a reply on State And City With Select2

my own code, it's working for me but not optimize... perhaps someone can help to optimized it.

<template>
    <div class="widget widge-search-right">
        <div class="widget-header vert-line-r-l vert-line-primary">
            <h2>Search</h2>
        </div>
        <div class="widget-content">
            <form action="/layout1/search" method="GET">
                <input type="hidden" name="viewMode" value="viewMode">
                <div class="form-group">
                    <select class="form-control" id="brand" name="brand" v-model="carBrand" @change="updateBrand(carBrand)">
                        <option value="0">All Make</option>
                        <option v-for="(brand, index) in JSON.parse(brands)" :value="brand.id" v-text="brand.name"></option>
                    </select>
                </div>
                <div class="form-group">
                    <select class="form-control" id="model" name="model" v-model="carModel">
                        <option value="0" selected="selected">All Model</option>
                        <option v-for="model in selectedBrandModels" :value="model.id" v-text="model.name"></option>
                    </select>
                </div>
                <div class="form-group">
                    <div class="scale-range" id="nonlinear-year">
                        <label>Year</label>
                        <div class="nonlinear"></div>
                        <div class="scale-range-value">
                            <span class="nonlinear-min"></span>
                            <span class="nonlinear-max"></span>
                        </div>
                        <input type="text" class="value-min hidden" placeholder="" value="Date.getFullYear() - 20"  id="from_year" name="from_year" />
                        <input type="text" class="value-max hidden" placeholder="" value="Date.getFullYear()"  id="to_year" name="to_year"/>
                    </div>
                </div>                  
                <div class="form-group">
                    <div class="scale-range" id="nonlinear-price">
                        <label>Price</label>
                        <div class="nonlinear"></div>
                        <div class="scale-range-value">
                            <span class="nonlinear-min"></span>
                            <span class="nonlinear-max"></span>
                        </div>
                        <input type="text" class="value-min hidden" placeholder="" value="1" id="from_price" name="from_price"/>
                        <input type="text" class="value-max hidden" placeholder="" value="100" id="to_price" name="to_price"/>
                    </div>
                </div>
                <div class="form-group">
                    <select class="form-control" id="transmission" name="transmission" v-model="carTransmission">
                        <option value="0" selected="selected">All Transmission</option>
                        <option v-for="transmission in JSON.parse(transmissions)" :value="transmission.id" v-text="transmission.name"></option>
                    </select>
                </div>
                <div class="form-group">
                    <select class="form-control" id="condition" name="condition" v-model="carCondition">
                        <option value="0" selected="selected">All Condition</option>
                        <option v-for="condition in JSON.parse(conditions)" :value="condition.id" v-text="condition.name"></option>
                    </select>
                </div>
                <div class="form-group">
                    <select class="form-control" id="location" name="location" v-model="carLocation">
                        <option value="0" selected="selected">All Location</option>
                        <option v-for="location in JSON.parse(locations)" :value="location.id" v-text="location.name"></option>
                    </select>
                </div>
                <div class="form-group submit-box text-center">
                    <button type="submit" class="btn btn-custom btn-custom-primary color-primary"><i class="fa fa-search"></i>Search</button>
                    <button type="button" class="btn btn-custom btn-custom-default color-default" @click="reset"><i class="fa fa-power-off"></i>Reset</button>
                </div>
            </form>
        </div>
    </div>
</template>

<script>
    export default {
        props: {
            viewMode: { default: 'grid' },
            brands: { type: String },
            models: { type: String },
            transmissions: { type: String },
            conditions: { type: String },
            locations: { type: String },
            selectedBrand: { default: 0},
            selectedModel: { default: 0},
            selectedTransmission: { default: 0},
            selectedCondition: { default: 0},
            selectedLocation: { default: 0}

        },
        
        data() {
            return {
                carBrand: 0,
                carModel: 0,
                carTransmission: 0,
                carCondition: 0,
                carLocation: 0,
                selectedBrandID: null
            };
        },

        mounted() {
            this.init();
        },

        methods: {
            init() {
                this.carBrand = this.selectedBrand;
                this.carModel = this.selectedModel;
                this.carTransmission = this.selectedTransmission;
                this.carCondition = this.selectedCondition;
                this.carLocation = this.selectedLocation;
                this.updateBrand(this.carBrand);
            },

            updateBrand (brandID) {
                this.selectedBrandID = brandID;

                this.carModel = 0; 
            },

            reset() {
                this.carBrand = 0;
                this.carModel = 0;
                this.carTransmission = 0;
                this.carCondition = 0;
                this.carLocation = 0;

                this.updateBrand(this.carBrand);
            }
        },

        computed: {
            selectedBrandModels () {
                if(this.selectedBrandID !== null) {
                    return JSON.parse(this.models).filter(model => model.car_brand_id == this.selectedBrandID);
                }
            }
        }

    };
</script>

siangboon left a reply on Vuejs With Laravel Is Not Working On Android/iphone

did you upload the files accordingly to your live server?? or, it may due to cache also...

siangboon left a reply on Laravel Notification & Laravel Queue

Queues is used to defer the processing of a time consuming task such as notification....

24 Jun
4 weeks ago

siangboon left a reply on Single Action Controller

I know so sure why or whether exist the AssetsController, but you can only have one namespace.

namespace App\Http\Controllers;
namespace Core\Controllers\Assets;
20 Jun
1 month ago

siangboon left a reply on PDOException::("could Not Find Driver")

i'm referring to phpinfo() function that will list all the configuration of your environment.

18 Jun
1 month ago

siangboon left a reply on Database Queries In Model Or Controller

highly suggest you to finish the series https://laracasts.com/series/laravel-from-scratch-2018, your questions are in well covered inside.

17 Jun
1 month ago

siangboon left a reply on PDOException::("could Not Find Driver")

you need to have pdo_mysql module installed or enabled. check it in phpinfo()...

siangboon left a reply on Laravel-Vue-Axios Question: Error 405 (Method Not Allowed)

are you creating an api?? All prefix "api" will be routed and handled in routes\api.php by default...

list the route and check whether your path is correct

php artisan route:list

siangboon left a reply on Is It Possible To Have Two Or More Requests In A Page?

use the different route end point for each form, in your forms' action submit to different end point said /updateinfo and /update/email and each have dedicated method to update it accordingly.

siangboon left a reply on Laravel-Vue-Axios Question: Error 405 (Method Not Allowed)

"Method Not Allowed" is about the route, double check the method in use or any typo error

13 Jun
1 month ago

siangboon left a reply on [Laravel] Fields And Custom Fields And Reports

Build a system is easy, build a big and good system and maintain it is very challenging and some more build in a short time, CRM is not a small app, personally I would probably suggest that to look for other better or suitable CRM such as Bitrix24 if there are not dedicated team nor enough of proper resources allocated.

siangboon left a reply on Laravel Login Using Id From Different Database

it's better to show the actual error message or screenshot for each step you tested... your "not working" can mean many possibilities

I suspect you custom the create user method without hashing the password...

siangboon left a reply on How The Heck Do You Install Php Extensions Onto Windows.

you just need to extract or download the .dll file (https://windows.php.net/download/) and put into your extension folder (you can find yours in php.ini (extension_dir = "ext") and uncomment and save it, then restart your web services. That's it.

siangboon left a reply on Auth Scaffolding RedirectTo Doesn't Work

it should work.

if you are redirected to '/home' when you visit '/login' page after you had authenticated it may because of the "RedirectIfAuthenticated" middleware, if so just change the redirect path in the middleware.