see_kay

see_kay

Member Since 2 Years Ago

Experience Points 3,490
Experience Level 1

1,510 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 33
Lessons
Completed
Best Reply Awards 0
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 Mar
2 years ago

see_kay started a new conversation Laravel-Clyde - Source Files On S3?

I'm trying to use Laravel-Clyde, which is a wrapper around Glide

I'd like to show a thumbnail version of an image stored on S3 but am confused about what I should pass to the ClydeImage::url() method?

I assumed it was the full url and so used ClydeImage::url($media->getUrl(), 'icon'), where $media->getUrl() is https://s3.amazonaws.com/mybucketname/folder1/folder2/image.jpg.

The corresponding img src generated is http://localhost:8000/imgcache/https://s3.amazonaws.com/mybucketname/folder1/folder2/image.jpg?p=icon&s=xxxxxxxxxxxxxxxxxxxxxxxxxx - which returns a 404.

Same if I try a partial one assuming it takes the S3 bucket name from filesystems.php i.e. http://localhost:8000/imgcache/folder1/folder2/image.jpg?p=icon&s=xxxxxxxxxxxxxxxxxxxxxxxxxx

My config/clyde.php has:

    'source' => 's3',
    'source_path_prefix' => '', 
    'cache' => 'local',
    'cache_path_prefix' => '/uploads/.cache',

and

    'presets' => [
        'icon' => [
            'w' => 32,
            'h' => 32,
            'fit' => 'crop'
        ],

Thanks!

07 Mar
2 years ago

see_kay left a reply on Fetching Activitylog For A Specific Model Instance (using Spatie/laravel-activitylog)

Never mind, $task->activity works out of the box (doh!) and $task->comments->activity can't work since its activity for multiple comments... I'd have to fetch a collection myself, but the more I think about it, it wouldn't make sense to try and show activity fo all comments under a specific task...

see_kay started a new conversation Fetching Activitylog For A Specific Model Instance (using Spatie/laravel-activitylog)

I'm new to Laravel so a little confused by this...

I'm using the https://github.com/spatie/laravel-activitylog package to log model events to the database and that's working fine. So if I create a task and then add comments to it, and the activitylog for both is saved correctly to the database. (Here a 'Comment' has a polymorphic relationship with a 'Task'.)

However, I'd now like to retrieve all recent activity for a task and its comments - the example in the documentation is useful but pretty basic in that it shows a store and immediate retrieval of the very last entry. How do I get recent activity for a specific task i.e. $task->activity and $task->comments->activity ?

27 Feb
2 years ago

see_kay left a reply on "Real World" Example Of CRUD W/ Laravel & Vue (non SPA)

@zachleigh thanks for both your answers. The type: Array worked and now I'm on to figuring out column sorting, pagination & searches :)

I will be reviewing your Dashboard Vue component as well - I think I need to something similar using child components (if I ever get that far)

Many thanks!

25 Feb
2 years ago

see_kay left a reply on "Real World" Example Of CRUD W/ Laravel & Vue (non SPA)

(GitHub-Flavored) Markdown Editor

So I tried a simple example:

  1. blade.php
<customer-list :customers="{{ json_encode($customers) }}"></customer-list>
  1. Customers.vue
<template>
    <table class="table table-hover">
        <thead>
            <tr>
                <th>#</th>
                <th>Name</th>
                <th>Email</th>
                <th>Status</th>
            </tr>
        </thead>
        <tbody>
            <tr v-for="item in customers">
                <td> {{ item.id }} </td>
                <td> {{ item.name }} </td>
                <td> {{ item.email }} </td>
                <td> {{ item.status }}</td>
            </tr>
        </tbody>
    </table>
</template>

<script>
export default {
    props: ['customers'],
    data() {
           return {

           }
    },
}
</script>

and get "Error when rendering component <customer-list>" and "Uncaught TypeError: Cannot read property 'id' of null" errors in the Vue Devtools console

Its probably something really basic I'm missing... And then I'd like to get pagination and column sorting and search in there as well, but that's jumping too far ahead at this point :)

see_kay started a new conversation "Real World" Example Of CRUD W/ Laravel & Vue (non SPA)

"Real world" example of CRUD w/ Laravel & Vue (non SPA)

Hi,

I've been learning Laravel these last few weeks and making progress. Then I started to look into using Vue to offer a better user experience (instant feedback, remote validation etc) but then am stuck for the last few days.

I'm just trying to build a standard business/project management application with the usual projects/messaging/tasks/users-roles-permissions etc. I've integrated Zizaco/Entrust and it works perfectly. I was hoping to find a real world example where laravel is used to render the (blade) view but then Vue is used within for a richer experience within. I did find a lot of SPAs (Vuedo, ) but I'd like to avoid that approach in this case.

At this point, I'm really confused about how to hand off & manage data between laravel and vue for standard operations i.e. project list w/ pagination, CRUD w/ validation etc. How does the controller pass data if it can't be json as the blade view needs to be rendered? How is the data handed off for two way binding (e.g. if I needed to filter the project list)?

I've spent days, and am now more confused than ever! If anyone could point me in the right direction I'd really appreciate it.

Thank you!