siangboon

siangboon

Member Since 3 Years Ago

Kuala Lumpur

Developer at Kuala Lumpur, Malaysia

Experience Points 129,510
Experience Level 26

490 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 1062
Lessons
Completed
Best Reply Awards 31
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.

16 Sep
1 day ago

siangboon left a reply on How To Debug Maximum Execution Time Of 30 Seconds

use telescope.

or write a simple function to log before and after each execution of scheduled task/command.

siangboon left a reply on Laravel How To Disable Login Page Auth::routes(['login' => False]);

if you do not need a login page, most likely you do not need to login mean you do not need to run make:auth and no login page will be added if you had already run make:auth, "Auth::routes();" will be added in to routes/web.php and all the list of authentication routes are declared. Just simply remove this "Auth::routes();" line, all the authentication route will go no where

siangboon left a reply on Javascript/JQuery/Ajax Code In Laravel Controller

No. javascript only rendered and processed at client browser (front end), you can prepare your script in template and load the required script template when the certain condition matched.

14 Sep
3 days ago

siangboon left a reply on Route SLUG On Main Route?

the route sequence does matter, it execute from top to bottom...

hence, laravel will treat articles as {slug} parameter if your Route::get('slug', '[email protected]') is top of Route::get('/articles', '[email protected]'), so just change the sequence will solve.

13 Sep
4 days ago

siangboon left a reply on Translate Database

it'll be more flexible if you separate out the columns of the content that you need to have multi language into another table (i.e. lang_id, body)

siangboon left a reply on Uninstall Laravel From Godaddy.com

if it's purely the laravel and 4 add-on domain, you can leave the addon-domain folders and .htaccess, then simply delete other files/folders.

siangboon left a reply on Unique Slug Duplicate Entry

by adding the slug url with an id of the news at the back i.e localhost:8000/post/welcome-to-my-post-1 if the ID of the post is 1

this should be pretty straight forward, if you can store post's slug as 'welcome-to-my-post' you should be able store post 'welcome-to-my-post-1', please try it out yourself.

siangboon left a reply on Array And Object How To Solve This? Any Help?

if your $Orders->Status is a collection your can append the helper.

->toArray();
12 Sep
5 days ago

siangboon left a reply on Permission Denied Error For Laravel.log

the error is related to permission

failed to open stream: Permission denied in

After installing Laravel, you may need to configure some permissions. Directories within the storage and the bootstrap/cache directories should be writable by your web server or Laravel will not run. If you are using the Homestead virtual machine, these permissions should already be set.

10 Sep
1 week ago

siangboon left a reply on Eloquent Is So Slow ...

indexing of right column also make the big different too..

siangboon left a reply on How To Add Css Inside {{ }}

{{ $event->event }}   {{ $event->when }}

siangboon left a reply on How To Add Css Inside {{ }}

{{}} 

is just a blade way of

<?php  echo "" ?> 

You can have any expression or echo whatever you want....

09 Sep
1 week ago

siangboon commented on At A Glance

Excellent animation! But for the first time i felt that Jeffrey's voice does not match with the video and I almost did not listen what Jeffery is talking about but only focusing on the animation :laughing:

siangboon left a reply on Laracasts Coupons Codes?

Don't think so. Laracasts is relatively cheap compare to most other online training sites. But from the past experiences, Jeffrey may offer some instant flash sales during the year end or festival season.

08 Sep
1 week ago

siangboon left a reply on How To Add Google Map Like This Video Shown

the documentation is the best source you can get... if you need complete code and make it running without putting any effort then just pay for other to do it..

siangboon left a reply on Error 419 When Sending Request From Subdomain To Domain

https://laravel.com/docs/5.8/csrf#csrf-excluding-uris

protected $except = [
        'stripe/*',
        'http://example.com/foo/bar',
        'http://example.com/foo/*',
    ];

siangboon left a reply on Website Based On State, City And Category

it depend on your requirement... most of the MNC global site i observed that they will detect the IP address and ask the user to choose whether to proceed to global site or to their region/country site...

siangboon left a reply on Trying To Get Tags Associated To A Post

First make sure yourself clear on what you are calling, is an object or value. if it's collection of objects then you need to loop each object in order to call the property...

you should ensure the object exist before you can call the property of object....

if($tag) <= if $tag is true you may find the data what if $tag cannot find a record?

how about "else" without declare/assign proper/default $tag object, the tag is empty/null, and you call the $tag->name, hence you get error: "Trying to get property 'name' of NON-OBJECT

06 Sep
1 week ago

siangboon left a reply on Trying To Get Tags Associated To A Post

if tags is a collection you may need to loop each tag to get the name property of the tag...

siangboon left a reply on Wink - Where Are The Blade Files?

not using it but after have a glance on the project, all the files should under vendor/writingink/wink and seem using vuejs to load everything...

check out the source code https://github.com/writingink/wink

05 Sep
1 week ago

siangboon left a reply on Getting Extra Data From Pivot Table

may be try this

dd($author->books[0]->pivot->get());

siangboon left a reply on VueJS In My Blade Templates ( But Not SPA )

export default {

usually used in vue component file

why not spend some times to watch the free lessons https://laracasts.com/series/learn-vue-2-step-by-step

04 Sep
1 week ago

siangboon left a reply on Call To A Member Function Store() On String

check out others blogs or tutorials how to store image... for example.

https://blog.hashvel.com/posts/laravel-image-upload/

03 Sep
2 weeks ago

siangboon left a reply on Multiple View In Once View

you can have either single or multiple controllers or views, it's depend on your personal preference.

Personally, i make user info and profile into separate tab each tab has its own form, so user can save only the tab info instead of combine and submit all inputs at once.

siangboon left a reply on How Can I Avoid To Stop Writting Script In Ckeditor ?

I'm not really clear what is your questions. but {!! $template !!} is the right way to display html content, it should render the html tag accordingly.

01 Sep
2 weeks ago

siangboon left a reply on Sesssion Expiry Without Auth

    /*
    |--------------------------------------------------------------------------
    | Session Lifetime
    |--------------------------------------------------------------------------
    |
    | Here you may specify the number of minutes that you wish the session
    | to be allowed to remain idle before it expires. If you want them
    | to immediately expire on the browser closing, set that option.
    |
    */
31 Aug
2 weeks ago

siangboon left a reply on Best Way To Specify New Items

the best way for other may not the best way for you... just keep trying and fine tune till you and your customer satisfy...

created_at is the best for me as nothing much work to do just limit the number of new items i wish to display if i have all the product update regularly. imagine there are more than 100 of products insert every day, i do not want to unmark all the "not new" items every day. but if you have only few product to insert once a month then should be fine.

siangboon left a reply on Disable Autoplay Feature

hahaha.. possible allow to hide the left menu on large screen also...

siangboon left a reply on Laravel 5.2 To 6

there are too much of steps.... i rather create a new project, copy and paste the code portion by portion... having all unit tests and feature tests ready will be very helpful in this case...

30 Aug
2 weeks ago

siangboon left a reply on Mail Not Sending Emails With The Same Domain

what is the question? and it may be better to close this thread if you have solved the problem as stated on the thread title initially and open another thread if there are different problem

siangboon left a reply on Online Shop

may be there are some global share variables in AppServiceProvide.php... something like:


        view()->composer('*', 

29 Aug
2 weeks ago

siangboon left a reply on Font Awesome Icons Are Not Showing In Live

you copy and paste partial... the web fonts is not

yours app.css:

@import url(https://fonts.googleapis.com/css?family=Nunito);@charset "UTF-8";

/*!
 * Font Awesome Free 5.9.0 by @fontawesome - https://fontawesome.com
 * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
 */

.fa,
.fas,
.far,
.fal,
.fab {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

.fa-lg {
  font-size: 1.3333333333em;
  line-height: 0.75em;
  vertical-align: -0.0667em;
}

.fa-xs {
  font-size: 0.75em;
}

.fa-sm {
  font-size: 0.875em;
}

.fa-1x {
  font-size: 1em;
}

.fa-2x {
  font-size: 2em;
}

.fa-3x {
  font-size: 3em;
}

.fa-4x {
  font-size: 4em;
}

.fa-5x {
  font-size: 5em;
}

the fontawesome version:


/*!
 *  Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome
 *  License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
 */
/* FONT PATH
 * -------------------------- */
@font-face {
  font-family: 'FontAwesome';
  src: url('../fonts/fontawesome-webfont.eot?v=4.7.0');
  src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2'), url('../fonts/fontawesome-webfont.woff?v=4.7.0') format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.7.0') format('truetype'), url('../fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg');
  font-weight: normal;
  font-style: normal;
}
.fa {
  display: inline-block;
  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* makes the font 33% larger relative to the icon container */
.fa-lg {
  font-size: 1.33333333em;
  line-height: 0.75em;
  vertical-align: -15%;
}
.fa-2x {
  font-size: 2em;
}
.fa-3x {
  font-size: 3em;
}
.fa-4x {
  font-size: 4em;
}
.fa-5x {
  font-size: 5em;
}

siangboon left a reply on Trying To Get Property 'dept_name' Of Non-object Laravel 5.8

there may be $call that has no department (same to transaction) attached properly hence causing the get property of non-object...

try dd() the all results and double check... make sure the each $call have department attached properly or check the child exists before display $call->$department->dept_name.. .

28 Aug
2 weeks ago

siangboon left a reply on Laravel 404 NOT FOUND

list your route list and show your web.php

siangboon left a reply on Too Many Placeholders

the error message "Prepared statement contains too many Placeholders" is clear, the values you provide in the query is less than the placeholders or does not match....

27 Aug
3 weeks ago

siangboon left a reply on Php Artisan Syntax Error

web and cli may calling different global environment set hence we have to always be aware....

26 Aug
3 weeks ago

siangboon left a reply on Complex Ecommerce Database Design

take the mysql database design lessons above, the answer is inside.

siangboon left a reply on Route [] Not Defined.

the syntax is something like this:

Route::prefix('/admin/')->name('admin.')->namespace('Admin')->middleware(['auth'])->group(function ()
{

yours maybe like this

Route::group(function () {

seriously, read the documentation and watch some basic lessons, you just keep asking something are easily can be find in documentation and never appreciate people help but abuse it...

siangboon left a reply on Anyway To Pass Parameter Into Eloquent Function?

yes, let the relationship as simple as it is, use scope as tisuchi suggested...

siangboon left a reply on Laravel Add Attachment File From Public Folder To Email

->attach('/path/to/file', [
                    'as' => 'name.pdf',
                    'mime' => 'application/pdf',
                ]);
25 Aug
3 weeks ago

siangboon left a reply on So Close But So Far! - 419 Page Expired

please review your post before leave and wait for folk to answer, your explaination already not so clear and the partial of content/code and the not proper formatted the question make the guess work more difficult...

It's better to copy and paste the entire error message (please format it nicely with ```) and also the file where the error occurred instead of put what you think should relavent as sometimes your guess work may not correct too... it's also better to close the thread if the title of the issue had solved, different issue should post on different thread else this gonna be very long and not relavent with the thread title....

anyway, by guessing, check the namespace in the App\Book.

siangboon left a reply on Bootstrap Modal Is Not Working Passing Data

perhaps this forum may need a translator plugin...

siangboon left a reply on Help With Course Structure?

as sergiu17 said, Jeffrey had purposely organize the skill based lessons in order, you could just follow the path to learn... and at anytime you think you have learned some basic of php you can start the laravel series together, personally, i think you can switch to learn laravel after the Object-Oriented Bootcamp series.

23 Aug
3 weeks ago

siangboon left a reply on Installation Intervention Image Php 7.3.5

What i meant is the error seem happened at the composer.json file it tell that some error on the "database/seeds"

[RuntimeException] Could not scan for classes inside "database/seeds" which does not appear to be a file nor a folder

and one of the reasons causing it may because of some typo errors on the composer.json file

anyway, it's better to tell the folk what had you did and at which point it hit error with some screenshots or copy the entire error message instead of in words, guesssing work is tired and may lead wrong direction...

styling your code or message nicely to easy others to read and understand (https://help.github.com/en/articles/basic-writing-and-formatting-syntax)

siangboon left a reply on Installation Intervention Image Php 7.3.5

perhaps compare with a working composer.json and check your error composer.json file is there any syntax or case sensitive typo error near "database/seeds"...