AntLusher

AntLusher

Member Since 10 Months Ago

Experience Points
10,070
Total
Experience

4,930 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
67
Lessons
Completed
Best Reply Awards
1
Best Reply
Awards
  • start your 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-in-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 Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist 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 3
10,070 XP
Feb
25
1 month ago
Activity icon

Started a new Conversation New Find - Media Manager

Hey all, thought I'll share this if no one have seen.

It's very good

https://github.com/ctf0/Laravel-Media-Manager

Have fun

Activity icon

Replied to Media Manager Tips

@cmdobueno thank you for you philosophy. Here's one for you, if you dont have anything helpful to say, then don't say at all.

Anyways, found this sexy beast that I will play with.

https://github.com/talvbansal/media-manager/blob/master/README.md

Activity icon

Replied to Media Manager Tips

@wilk_randall yeah seen this, but I haven't really got the time to think. Haha. I'm sure you know what I mean.

Activity icon

Started a new Conversation Media Manager Tips

Hello all - does anyone have any experience with a good file manager. And is there any good ones for Laravel 6? I've tried some. Is there any better ones that has a pop up dialog/browser?

How would I associate files to Models (User, Company etc)

I've tried looking for vids on line, but not much out there

Has anyone used this: https://github.com/UniSharp/laravel-filemanager

Cheers

Feb
24
1 month ago
Activity icon

Replied to Laravel 6, Laravel-filemanager And CKeditor 5

@kylemilloy yep I sorted it this morning. The paths are incorrect. List the routes via artisan, then change to what it should be. This instance it's change from laravel-filemanager to filemanager. Stupid thing. Cheers

Feb
23
1 month ago
Activity icon

Started a new Conversation Laravel 6, Laravel-filemanager And CKeditor 5

Hey all - I've been having issues using laravel-filemanager. When I click to 'search server' the new 'dialog' window renders 404.

I've followed the guidelines on: https://unisharp.github.io/laravel-filemanager/ THREE TIMES OVER!

Have anyone had the same experience as me?

Thank you all! Ant x

Jan
28
2 months ago
Activity icon

Replied to Lara Nova

Brilliant. Thanks so much. I will try first thing tomorrow.

Activity icon

Replied to Lara Nova

@manelgavalda

So the Nova guy said:

Nova resources are not always resolved with an underlying Eloquent model instance. You need to check for the existence of $this->resource using the optional helper or similar.

That's the same what you said.

Activity icon

Replied to Lara Nova

@manelgavalda hey sorry, I think you maybe confused. The field/column exists, and it's a JSON type field. I'm trying to get the values within the JSON.

Jan
27
2 months ago
Activity icon

Replied to Lara Nova

I think it's returning the 'name' value as a string, thus Nova providing an error. Nova won't be able to find any properties as it's been rendered has string.

So I assume I need to turn the 'name' string into an object?

I'm surprised Nova doesn't have any helpers for this use case.

@manelgavalda @musa11971

Activity icon

Replied to Lara Nova

@manelgavalda I've tried all of the following casts: json, collection, object, array. None of which works. Booo.

Activity icon

Replied to Lara Nova

@manelgavalda I casted as a collection... I'll try now. Cheers

Activity icon

Replied to Lara Nova

@manelgavalda nope, doesn't work. Getting the same error as above.

Activity icon

Replied to Lara Nova

@musa11971 unfortunately that doesn't work. I get the following error:

Trying to get property of 'first' of non-object

Activity icon

Replied to Lara Nova

Agh amazing - I did read your suggestion somewhere, but I assumed there was a 'Nova' way of doing it. I'll get right back to once I've tried.

Thanks @manelgavalda BRB

Activity icon

Started a new Conversation Lara Nova

Good morning all!

Please could you help with the following:

I have a JSON field called name with keys as follows: first, last, title.

On the index page, I wish to join all into one column: Mr Anthony Lusher.

At the moment I have this:

Text::make('Name', function () { return $this->name->first.' '.$this->name->last; })

The above doesn't work.

But I can get this to work:

Text::make('Name', 'name->title'),

Above show the title

Any help please

Jan
23
2 months ago
Activity icon

Started a new Conversation Laravel Nova - JSON

Hello all - I'm wondering if you could provide me with your thoughts on DB design.

I have a very large user table that I 'may' refactor into JSON. For instance, addresses, names, tel, emails and all.

Would this be ok, or doing the above effect the search functionality of Nova? My user table is growing very large. Around 50 fields, and more to add.

Thoughts?

Cheers

Jan
20
2 months ago
Activity icon

Replied to Nova Tool, Vue.js And Chart.js

All sorted, if anyone have this issue - use Single file components. Yup

Activity icon

Started a new Conversation Nova Tool, Vue.js And Chart.js

Hello all,

Has anyone created a Tool in Nova and uses Chart.js to render, a chart!

I can get it to work, but on if I remove the tags, but I need those to render text from a looped object.

Any advice?

Cheers

Activity icon

Replied to Vue.js Working With Nested Objects

@bugsysha all done FIXED! I've thought I had nest a v-for... So I was getting in a muddle.

    <div v-for="report in data.reports">
        <div style="margin-top: 50px;">
            <card style="padding:30px;">
                <h2>Campaign title: {{ report.campaign_title }}</h2>
                <h2>Hard bounces: {{ report.bounces.hard_bounces }}</h2>
                <h2>Emails sent: {{ report.delivery_status.emails_sent }}</h2>
                <h2>Clicks total: {{ report.clicks.clicks_total }}</h2>
            </card>
        </div>
    </div>
Jan
19
2 months ago
Activity icon

Replied to Vue.js Working With Nested Objects

@bugsysha I've removed the Route, no need to show as I've included the data Object

Cheers

Jan
18
2 months ago
Activity icon

Replied to Composer Being A Knob!

I know bro. In the pub atm, but I will Soon post the steps.

Activity icon

Replied to Composer Being A Knob!

@fylzero well, not really. Why building a Nova Tool make composer fail?

Activity icon

Replied to Composer Being A Knob!

@jlrdw fixed it. After loads of reinstalls, rolling back commits, I found it was to do with a Nova Tool I created. Random. I'll try and replicate the steps and post on Git.

Cheers anyways.

Activity icon

Started a new Conversation Vue.js Working With Nested Objects

Me again!

I'm having issues when working with nested objects (i.e the 'bounces:Object' in Vue.js. I have the following.

Lara route (just for test):

Returned object: chumps:Object

_links:Array[2]

reports:Array[10]

    0:Object
    _links:Array[14]

    abuse_reports:0
        bounces:Object
    campaign_title:"Request for missing postal addresses (HNW/Soph custom segment)"
        clicks:Object

Vue.js:

    <heading class="mb-6">Mailchump</heading>
    <div v-for="chump in chumps">
        <div v-for="reports in chump">
            <div style="width: 800px; background-color: #0b2e13; margin: 40px">
                    <h2 style="color: white;">{{ reports.campaign_title }}</h2>
                    <p style="color: white;">{{reports.preview_text}}</p>
                
            </div>
        </div>
    </div>
    
</div>

The Vue.js:

export default {
    data() {
        return {
            chumps: [],
        }
    },

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

    methods: {
        getRoutes() {
            Nova.request().get('/nova-vendor/mailchump/mailchump').then(response => {
                this.chumps = response.data;
            });
        },
    },
}

Cheers, all the best, Ant

Jan
17
2 months ago
Activity icon

Replied to Composer Being A Knob!

Yep, I've done all of the usual commands.

I'm going to slowly walk through and install each package one by one, it seems to hang on the final package which is Laravel. I don't understand why it's been ok, and now having issues... Sad times.

Jan
16
2 months ago
Activity icon

Started a new Conversation Composer Being A Knob!

Good day all,

Is anyone been having issues with composer of late? Both install, update and so on makes the laptop go wild.

-vvv shows composer is hanging at: repo.packagist.org / provider-laravel$laravel.json

And then loops through rule checks. And then im having memory issues to with composer (but Im not so fussed about this)

Please help... AGHhhhhhhh

Jan
13
2 months ago
Activity icon

Replied to Installation Issues When Moving From One Computer To Another

@swimmer brilliant, I'm happy you got it fixed. Please remember this issue, because it's very common when you move projects etc. Good luck.

Activity icon

Awarded Best Reply on Installation Issues When Moving From One Computer To Another

Almost there - check the error. It says: \xampp\htdocs\medici\bootstrap\cache\ directory must be present or writable.

Check in your directories for the above path, if [cache] folder not there, create it, if it is there, check the permissions and make sure its writable.

Jan
12
2 months ago
Activity icon

Awarded Best Reply on Lara Nova - Consuming External APIs

Agh cool, yes I agree, but I thought there was a 'Nova' way and best practices.

Have you seen any tuts of how this is done?

Activity icon

Replied to Lara Nova - Consuming External APIs

Agh cool, yes I agree, but I thought there was a 'Nova' way and best practices.

Have you seen any tuts of how this is done?

Activity icon

Replied to Installation Issues When Moving From One Computer To Another

No, no need to. Laravel writes cached files to it.

Jan
11
2 months ago
Activity icon

Replied to Installation Issues When Moving From One Computer To Another

Almost there - check the error. It says: \xampp\htdocs\medici\bootstrap\cache\ directory must be present or writable.

Check in your directories for the above path, if [cache] folder not there, create it, if it is there, check the permissions and make sure its writable.

Activity icon

Started a new Conversation Lara Nova - Consuming External APIs

As subject matter, could anyone guide me to a way of correctly consuming external APIs?

Would I need to create a Tool? Or another way of doing things? And any tutorials?

Cheers all!

Activity icon

Replied to Installation Issues When Moving From One Computer To Another

you should see a composer.lock file, delete that, then run composer install.

Could you run composer install inside your other project blog, see what happens

Activity icon

Replied to Installation Issues When Moving From One Computer To Another

composer install && update

Thats the line - lol

Activity icon

Replied to Installation Issues When Moving From One Computer To Another

Did you run 'composer install && update' after making the changes?

Composer will then install all of the packages you need to run application

Activity icon

Replied to Installation Issues When Moving From One Computer To Another

https://laravel.com/docs/6.x/upgrade

needs php 7.2

Make a back up of your files, then follow the steps

Activity icon

Replied to Installation Issues When Moving From One Computer To Another

Can you share the code? I'll see if I can install it?

Activity icon

Replied to Installation Issues When Moving From One Computer To Another

Yeah looks like that could be the issue.

I would first start updating the PHP and Laravel versions and go from there

Activity icon

Replied to How To Attach Remote User Information With Laravel User Model After Authentication

Ahaha. Hope you get it fixed. It's very interesting .

Activity icon

Replied to Installation Issues When Moving From One Computer To Another

@swimmer

\xampp\htdocs\try\vendor\composer/

Looking at your directories, you don't have the above path...

What dir are you running composer install?

when you run composer, you need to be within the project root folder, not the htdocs folder

Try running composer in your blog folder, see if it works, if successful, compare both composer.json files for each project. Check the paths etc

Activity icon

Replied to Installation Issues When Moving From One Computer To Another

delete your composer lock file... run composer install, the update.

and also, follow the path the error shows, see if it's there. check permissions on files/dirs too

Activity icon

Replied to File Permissions Not Working

Have a try of this?

https://vijayasankarn.wordpress.com/2017/02/04/securely-setting-file-permissions-for-laravel-framework/

Or even set up a remote dev server, then you only have one environment to manage,

Activity icon

Replied to Nova Tuts

@bobbybouwmann the money_format() is deprecated, so I've used this package... I don't tend to like using packages, but it seems good: https://github.com/cknow/laravel-money

The snippet now looks like:

use Cknow\Money\Money; ..........

                Text::make('Inv total', 'Investments', function (){
                    $value = $this->investments->sum('value');
                    return Money::GBP($value)->format();
                })->onlyOnIndex()->sortable(),
Jan
10
2 months ago
Activity icon

Replied to Testing Nova

Yep, I would echo @manelgavalda thoughts. Sounds plusable

Activity icon

Replied to Nova - Computed Field

@bugsysha hey thanks for the suggestion, I'll give it a go little later. Cheers!