JoerJoers

JoerJoers

Member Since 4 Years Ago

Naga City

Experience Points
30,825
Total
Experience

4,175 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
282
Lessons
Completed
Best Reply Awards
17
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.

Level 7
30,825 XP
Oct
19
1 year ago
Activity icon

Replied to Integrity Constraint Violation: 1048 Column 'post_id' Cannot Be Null

Try doing saving first before syncing the tags.

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

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

Oct
08
2 years ago
Activity icon

Replied to Vue Component For Image Upload: Pass Image Source From View

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

Oct
07
2 years ago
Activity icon

Replied to 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>
Activity icon

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>
Sep
28
2 years ago
Activity icon

Replied to 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.

Activity icon

Replied to Uxweb/sweet-alert: Alert Type Is Not Working

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

Activity icon

Replied to Uxweb/sweet-alert: Alert Type Is Not Working

@uxweb Any idea on the issue?

Activity icon

Started a new conversation Uxweb/sweet-alert: Alert 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. Screenshot

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')
Sep
24
2 years ago
Activity icon

Replied to Linked 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.

Activity icon

Started a new conversation Linked Facebook Using Socialite Using Authenticated User Already

How do you connect or linked 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.

May
28
2 years ago
Activity icon

Replied to 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?

Activity icon

Replied to 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.

Activity icon

Replied to 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 :)

Activity icon

Replied to 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.

Activity icon

Replied to New Vue Component Not Working

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

Activity icon

Replied to 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.

May
27
2 years ago
Activity icon

Replied to New Vue Component Not Working

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

Activity icon

Replied to New Vue Component Not Working

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

Activity icon

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 and use <invite-buttons></invite-buttons> is not working.

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?

Apr
28
2 years ago
Activity icon

Replied to 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.

Apr
27
2 years ago
Activity icon

Replied to Development Of An EWallet System For ECommerce Application

I have the same 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 and retrieve all transaction history in one table. It is also logically correct to make the amount of the Withdrawal to negative (-) and Deposit to 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.

Apr
26
2 years ago
Activity icon

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?

Activity icon

Replied to 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 answer that helps you resolved the issue for the benefit of others :) Thanks!

Activity icon

Replied to User Profile Is Not Displaying In The Default Make Auth After Login To /home Dashboard.

@abhishekganguly21@gmail.com it only means that you dont have Authenticated user. Have you used the Authentication Scaffolding? make:auth

Activity icon

Replied to 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.

Apr
24
2 years ago
Activity icon

Replied to Generating Charts Server-side

You can try the instructions here to generate the charts server-side.

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

Package: https://github.com/ConsoleTVs/Charts

You can generate the chart like this.

Charts::multi('line', 'highcharts')
    ->setColors(['#ff0000', '#00ff00', '#0000ff'])
    ->setLabels(['One', 'Two', 'Three'])
    ->setDataset('Test 1', [1,2,3])
    ->setDataset('Test 2', [0,6,0])
    ->setDataset('Test 3', [3,4,1]);
Activity icon

Replied to No Query Results For Model [App\BranchPerson].

Can you share the actual error text?

Activity icon

Replied to 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]" Make sure that you indicated the correct path on the Homestead.yaml and you're running vagrant up from the Homestead directory.

You may run it globally by following this instruction - https://laravel.com/docs/5.4/homestead#daily-usage

Apr
20
2 years ago
Activity icon

Replied to 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 :)

Activity icon

Replied to How To Delete Images That Are Inside The Public Directory Of The Application?

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

Nonetheless, it solves your problem :) I've also corrected my replies.

Cheers!

Activity icon

Replied to 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);

Activity icon

Replied to How To Delete Images That Are Inside The Public Directory Of The Application?

You can use php function unlink()

http://php.net/manual/en/function.unlink.php

Example,

unlink(file_path)

Or in a more Laravel way,

// Delete a single file
File::delete($filename);

// Delete multiple files
File::delete($file1, $file2, $file3);

// Delete an array of files
$files = array($file1, $file2);
File::delete($files);

By default, File Facade is looking for files in your public path so need to indicate it.

In your case, you'll do something like this.

File::delete('plugins/img/perfil' . $fileName);
Apr
19
2 years ago
Activity icon

Replied to AppServiceProvider Boot() Does Not Work

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

Activity icon

Replied to Nested Looping Not Working

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

Can you describe what are you trying to do?

Activity icon

Replied to Nested Looping Not Working

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

Activity icon

Replied to 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)?

Activity icon

Replied to 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.

Activity icon

Replied to [Laravel 5.4 Coventions] - Where Should I Create Functions

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

Activity icon

Replied to 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');

Activity icon

Replied to [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.

Activity icon

Replied to Manually Add Captcha

This is the most popular Laravel Recaptcha package.

https://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

Apr
09
2 years ago
Activity icon

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!

Apr
08
2 years ago
Activity icon

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!

Nov
15
2 years ago
Activity icon

Replied to Laravel Podcast Link

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

Activity icon

Started a new conversation Laravel Podcast Link

Hi @JeffreyWay, the link of the Laravel Podcast on the Site Map under the Discuss column still links to the old website www.laravelpodcast.com.