JoerJoers

JoerJoers

Member Since 4 Years Ago

Naga City

Experience Points 27,725
Experience Level 6

2,275 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 251
Lessons
Completed
Best Reply Awards 17
Best Reply
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    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 Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

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

19 Oct
1 year ago

JoerJoers left a reply on Integrity Constraint Violation: 1048 Column 'post_id' Cannot Be Null

Try doing saving first before syncing the tags.

$post->tags()->sync($tags_id);
$post->save();

I think the post model instance should be created first before syncing to the tags.

08 Oct
1 year ago

JoerJoers left a reply on Vue Component For Image Upload: Pass Image Source From View

@favor Yah missed that one. Thanks a lot for your help!

07 Oct
1 year ago

JoerJoers left a reply on Vue Component For Image Upload: Pass Image Source From View

Thanks for your @favor.

But i found out the issue.

I should do

<upload-photo image-data='{{ $character->photo }}'></upload-photo>

instead of

<upload-photo :imageData='{{ $character->photo }}'></upload-photo>

JoerJoers started a new conversation Vue Component For Image Upload: Pass Image Source From View

I'm trying to pass the image source from the view to the vue component however, it doesn't work at all. Please help me figure this out. Thank you.

Vue Component

<template>
  <div>
    <div class="form-group">
      <label for="photo_preview">Photo Preview</label>
      <figure>
        <img :src="imageData" class="preview">
      </figure>
    </div>
    <div class="form-group form-group--upload">
      <div class="form-group__avatar">
        <img src="/images/avatar-empty.png" alt="">
        <div class="form-group__label">
          <h6>Character Photo</h6>
          <span>40x40 min size</span>
        </div>
      </div>
      <div class="form-group__upload">
        <label class="btn btn-default btn-xs btn-file">
          Upload Image <input type="file" @change="previewImage" name="photo" id="photo" style="display: none;" accept="image/*">
        </label>
      </div>
    </div>
  </div>
</template>

<script>
    export default {
        data() {
          return {
            imageData: ""
          }
        },

        methods: {
          previewImage: function(event) {

            var input = event.target;

            if (input.files && input.files[0]) {

                var reader = new FileReader();

                reader.onload = (e) => {

                    this.imageData = e.target.result;
                }

                reader.readAsDataURL(input.files[0]);
            }
          }
        }
    }
</script>

View

<upload-photo imageData='{{ $character->photo }}'></upload-photo>
28 Sep
1 year ago

JoerJoers left a reply on Uxweb/sweet-alert: Alert Type Is Not Working

@Jaytee mix.scripts doesn't work either. No errors in the console as well. Thanks for your help. I appreciate.

JoerJoers left a reply on Uxweb/sweet-alert: Alert Type Is Not Working

@JackJones ive tried including the CSS but still got same result.

JoerJoers started a new conversation Uxweb/sweet-alert: Message Type Is Not Working

I am currently using uxweb/sweet-alert for alerts in my app. However, when trying to do

alert()->success('Your account has been updated.', 'Rak On!');

I only got a normal alert. Image of Alert

Setup: In my vendor.js

require('sweetalert');

Mix:

mix.js([
    'resources/assets/vendor/jquery-duotone/jquery.duotone.min.js',
    'resources/assets/vendor/marquee/jquery.marquee.min.js',
    'resources/assets/js/vendor.js',
], 'public/js/vendor.js');

View:

  <script src="{{ asset('js/app.js') }}"></script>
  <script src="{{ asset('js/core-min.js') }}"></script>
  <script src="{{ asset('js/vendor.js') }}"></script>
  <script src="{{ asset('js/init.js') }}"></script>

  @include('sweet::alert')
24 Sep
1 year ago

JoerJoers left a reply on Connect With Facebook Using Socialite Using Authenticated User Already

Anyone has the same problem? I'm thinking if i should just force the users to register and login via Facebook only. I'll not include other socialite providers.

JoerJoers started a new conversation Connect With Facebook Using Socialite Using Authenticated User Already

How do you connect or get the Facebook details of an Authenticated User using Socialite? Basically, i wanted to get the Facebook ID of a registered and authenticated user for Facebook Messenger notification purposes. The problem is when trying to redirect to Facebook using socialite again, i'm always redirected to the home page.

Any ideas how to solve this issue?

Thank you.

28 May
2 years ago

JoerJoers left a reply on Hello Guys If This Has Happened To Someone Please Help,$ Php Artisan Make:view About File Does Not Exists

What's exactly the problem? Is it running the php artisan make:view?

JoerJoers left a reply on Any New Laravel Courses Starting Soon ????

I've heard in the PHP Roundtable Podcast that JeffreyWay will do a Database Design Course after the Let's Build A Forum course.

JoerJoers left a reply on New Vue Component Not Working

@mistre83 and @MaverickChan I'll take note of those moving forward. Thank you guys!

Thanks for your time @bashy! Sorry to pull you in again :)

JoerJoers left a reply on New Vue Component Not Working

@MaverickChan Surprisingly, it works. However, do i really need to clear the cache everytime i have changes on my vue component? Thanks.

JoerJoers left a reply on New Vue Component Not Working

Need help @bashy and @pmall. Any idea how to solve this problem? sorry to pull you in. Thanks

JoerJoers left a reply on New Vue Component Not Working

@MaverickChan There's no error. I even checked the compiled js from the public folder and i can see that the vue component has been compiled.

27 May
2 years ago

JoerJoers left a reply on New Vue Component Not Working

@MaverickChan Yes, even a single word for vue component name doesn't work.

JoerJoers left a reply on New Vue Component Not Working

@MaverickChan Does it matter? JeffreyWay says its better to use '-' for vue component names.

JoerJoers started a new conversation New Vue Component Not Working

I have tried creating new vue component with the same template with the Example.vue scaffolding.

Invite-Buttons.vue

<template>
    <div class="container">
        <div class="row">
            <div class="col-md-8 col-md-offset-2">
                <div class="panel panel-default">
                    <div class="panel-heading">Example Component</div>

                    <div class="panel-body">
                        I'm an example component!
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        mounted() {
            console.log('Component mounted.')
        }
    }
</script>

app.js

Vue.component('invite-buttons', require('./components/Invite-Buttons.vue'));

Then, i run npm run dev.

It's get weirder when i tried deleting the Example.vue file and Vue.component('example', require('./components/Example.vue')); and then tried to use <example></example> it's still works.

I'm thinking if there's something wrong with the webpack compilation or cache maybe. Any idea how to solve this one?

28 Apr
2 years ago

JoerJoers left a reply on Development Of An EWallet System For ECommerce Application

@duongtd Do you mind marking the answer as the correct one? For the benefit of others as well.

27 Apr
2 years ago

JoerJoers left a reply on Development Of An EWallet System For ECommerce Application

I have the problem as well but i decided to go to the Option 1 because basically, what is the point of having two separate tables (Deposit and Withdrawal) if they have the same columns? So having the Transaction Model with the Transaction Type (Withdrawal, Deposit) is a perfect choice. Another good point is the process / performance when you try to retrieve all the transactions and sum it up. Instead of including the two tables in the query, you'll just need to sum the amounts in the Transaction Model. This also means that the amount of the Withdrawal should in negative (-) and Deposit should be positive (+).

And for the Balance field in the Wallet Mode, i totally agree in your approach. In fact this was also what i did. So every transaction that will happen, the balance in the wallet will be updated.

26 Apr
2 years ago

JoerJoers started a new conversation After Running Cache:clear, Config:clear And View:clear, All Views Cannot Be Found

After running cache:clear, config:clear and view:clear, all views cannot be found. I've also tried clearing the browser history and cache however, it still doesn't work.

All my views are not working already.

InvalidArgumentException in FileViewFinder.php line 137:
View [auth.login] not found.

Any idea how can i solve the issue?

JoerJoers left a reply on User Profile Is Not Displaying In The Default Make Auth After Login To /home Dashboard.

@abhishekganguly21@gmail.com Glad to know it works now. Mark the correct answer for the benefit of others :)

JoerJoers left a reply on User Profile Is Not Displaying In The Default Make Auth After Login To /home Dashboard.

Have you tried checking if there was a profile retrieved? Try dd($profile) and see if there are results.

24 Apr
2 years ago

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

I think it should be like this, without the ().

$table->rememberToken->nullable()->change();

JoerJoers left a reply on Generating Charts Server-side

You can try the instructions here to generate the charts server-side. Included there is the package for laravel charts.

https://laravel-news.com/laravel-charts

JoerJoers left a reply on No Query Results For Model [App\BranchPerson].

Can you share the actual error text?

JoerJoers left a reply on I Run The Code “vagrant Up” In Terminal And I Get An Error 'No Such File Or Directory'?

How you generate the id_rsa? If not, run this command ssh-keygen -t rsa -C "[email protected]"

20 Apr
2 years ago

JoerJoers left a reply on How To Delete Images That Are Inside The Public Directory Of The Application?

@anderking I think it would be better if you'll mark my first reply instead of the last reply. Because the first reply actually contains the solution :)

JoerJoers left a reply on How To Delete Images That Are Inside The Public Directory Of The Application?

@anderking ahhh yaah apologies it should be "." instead of ",".

JoerJoers left a reply on How To Delete Images That Are Inside The Public Directory Of The Application?

@anderking It is because your are still including the public_path() in the $path variable.

$path = public_path() . '\plugins\img\perfil';

Try doing this instead File::delete('plugins/img/perfil', $previous);

19 Apr
2 years ago

JoerJoers left a reply on AppServiceProvider Boot() Does Not Work

Can you provide more information about this? Maybe you share us your code for AppServiceProvider.

JoerJoers left a reply on Nested Looping Not Working

It looks like +"namesubcategory": "mobile" is not actually an array that's why you are getting error when using foreach.

JoerJoers left a reply on Nested Looping Not Working

Can you share the results if you do dd($users)?

JoerJoers left a reply on Getting Value From Multidimensional Array By Key In Blade

You don't need to cast the value from the array_get() to (array) because if the value of 'value.pred' is array it will return an array object. Can you share the result if you dd($sel)?

JoerJoers left a reply on Laravel Blog App!! Create A Post But Not To Publish It!!

The proper way solve this problem is to have something like PUBLISHED column that will have a boolean value in your POSTS table. In this case, if it is set to TRUE, it will be displayed in the front end. It displaying the POSTS in the front end, you need to filter it out by PUBLISHED = TRUE.

JoerJoers left a reply on [Laravel 5.4 Coventions] - Where Should I Create Functions

Or alternatively, you can explore and create your custom helper :)

JoerJoers left a reply on Getting Value From Multidimensional Array By Key In Blade

You can try to use the Helper function array_get().

https://laravel.com/docs/5.4/helpers#method-array-get

For example, array_get($attr, 'value.pred');

JoerJoers left a reply on [Laravel 5.4 Coventions] - Where Should I Create Functions

Are you allowing the User to input to a Location field in your form? Because normally, location like States for example is displayed as Select Box in the form so you just let the user select the location and no need for validation if that location exists.

In any case, yes if you will need to use it globally, you should create the function inside the Location Model so that you wont need to repeat the process for each controllers.

JoerJoers left a reply on Manually Add Captcha

This is the most popular Laravel Recaptcha package.

www.github.com/anhskohbo/no-captcha

or if you don't want to use package, you can simple integrate it by using the js provided by Google.

https://developers.google.com/recaptcha/docs/display

09 Apr
2 years ago

JoerJoers started a new conversation Steam Web API: How To Identify Steam User From The Results Of GetMatchDetails?

I know this isn't related to laravel but i am having trouble getting any information on how to identify or relate a Steam User to the results of the GetMatchDetails of DOTA2? The list of players result does not have any identifier or id to relate to the user. Any ideas how? Thank you!

08 Apr
2 years ago

JoerJoers started a new conversation GuzzleHttp: Request Exception CURL Error 18

RequestException in CurlFactory.php line 187:
cURL error 18: transfer closed with 104 bytes remaining to read (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

I'm doing a get request using GuzzleHttp but unfortunately i encountered an error above. Can you guys help me out how to solve the issue? Thank you!

15 Nov
2 years ago

JoerJoers left a reply on Laravel Podcast Link

I though this is the new podcast site. https://laracasts.com/podcast. Apologies though :)