AntLusher

AntLusher

Member Since 7 Months Ago

Experience Points
9,540
Total
Experience

460 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
66
Lessons
Completed
Best Reply Awards
1
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 2
9,540 XP
Jan
20
1 day 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 days 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
3 days 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
4 days 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
5 days 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
1 week 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
1 week 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
1 week 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
1 week 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!

Activity icon

Replied to Nova Tuts

@bobbybouwmann I've sorted, had to go back to the basics:

                Text::make('Investments total', 'Investments', function (){
                    $value = $this->investments->sum('value');
                    setlocale(LC_MONETARY,"en_GB.UTF-8");
                    return money_format('%n',  $value);
                }),

Note the .UTF-8 on en_GB, I didn't know you could do that...

Activity icon

Replied to Nova Tuts

@bobbybouwmann heres one for you. I'm trying to format currency within a computed field. It seems one can't use the new Currency field to allow callback and then format(),

I have this for the moment:

                Text::make('Investments total', 'Investments', function (){
                    return '£' .  $this->investments->sum('value');
                }),

Returns example: £122000

I need: 122,000

Or 12,000.00

And so on

Activity icon

Replied to File Permissions Not Working

I would change your dev environment tbh.

When on Windows, I ran Linux sub-system, a'la: https://docs.microsoft.com/en-us/windows/wsl/install-win10, helped massively with your said issues

Activity icon

Started a new Conversation Nova - Computed Field

Anyone figured how to make computed fields sortable? I understand base Nova doesn't support it? I have the following:

                Text::make('Investments total', 'Investments', function (){
                    return $this->investments->sum('value');
                })
Activity icon

Replied to Sync

Like a pivot table in your db. So if you have say, and user table, and a post table, you make another one called user_post, with user_id and post_id. It's a naming convention. And it will use that to connect the two tables

Activity icon

Replied to Nova Tuts

@bobbybouwmann a quick, creepy Google reveals all... Ha.

And your Laracast stats says something.

Cheers for your offer to help.

I have many questions, I just need to articulate them correctly first. Speak soon and have a good day.

Jan
09
1 week ago
Activity icon

Replied to Nova Tuts

@bobbybouwmann hey, I read you're a Laravel king? I'm grateful for your comments and replies. I'm a fan dude!

Activity icon

Replied to Nova Tuts

I know. Kinda sucks. I sometimes feel as though I'm having to hack things, and I don't like that feeling.

For instance, I ended up creating a custom field just so I could SUM some values related to a user. Seems overkill.

Was speaking to the guy from Laravel Daily, he's really good. I might see if he would do a deeper dive.

Activity icon

Started a new Conversation Nova Tuts

Hey all - do anyone know of some real 'deep dive' tuts for Nova? The one on here is rather overview of Nova, and it doesn't really go far.

Cheers all

Jan
08
1 week ago
Activity icon

Started a new Conversation Nova Fields - Dynamic Css Classes

Hello all - how would you all add a css class to a wrapping element of a field... I have the following, and I hate it. Suggestions?

Text::make('Reg Stage', 'registration_stage', function () { return '' . $this->registration_stage . ''; }) ->sortable() ->asHtml() ->hideFromDetail() ->hideWhenUpdating()

I need the class so I can add a related icon.

All the best

Jan
04
2 weeks ago
Activity icon

Replied to MySql GUI Choice (Mac)

Thanks all - I'm going to give TablePlus a shot. Interface looks great. And it's free. I will only be using it for creating tables, exporting and importing.

Activity icon

Started a new Conversation MySql GUI Choice (Mac)

Morning all - does anyone recommend a MySql GUI. I've been using SequalPro for a longtime, but it always crashes. So buggy and flakey.

Recommendations?

Ant

Dec
31
3 weeks ago
Activity icon

Started a new Conversation Telescope - Log SQL Errors

As title - I'm using Nova and Telescope, and I wish to log SQL errors (statements) to Telescope.

Anyone have do this?

Cheers and have a great NYE.

Dec
29
3 weeks ago
Activity icon

Replied to The Value Of The Checkbox Is Null When I Saved It To Database

Prob your {{old('is_current')}} is returning a Null

Activity icon

Started a new Conversation Nova JSON Field

Good day to all,

I'm struggling to make a decision and wonder if someone could point me in the right direction.

I currently have lots of fields related to a user table, but I'm wondering if it would be better to refractor them into a json meta column?

Thoughts?

Dec
28
3 weeks ago
Activity icon

Started a new Conversation Nova And Envoyer

Hello all,

I'm trying to deploy latest nova version via Envoyer and composer, but when the composer script runs in Envoyer, the Nova update fails.

I believe I need to provide Auth creds so that the Nova update can be installed. Does anyone know how to do this?

All the best

Dec
17
1 month ago
Activity icon

Started a new Conversation Socailite - 404 Redirect

Morning/afternoon/evening all!

When using Socialise to reg user, I keep getting 404 on the final step (callback redirect). Apart from that, everything works fine (apart from new user being created of course)

Code as follows:

LoginController....

........ use Socialite; use App\User;

/**
 * Redirect the user to the GitHub authentication page.
 *
 * @return \Illuminate\Http\Response
 */

public function redirectToProvider()

{
    return Socialite::driver('linkedin')->redirect();
}



public function handleProviderCallback($driver)


{
    try {
        $user = Socialite::driver('linkedin')->user();
    } catch (\Exception $e) {
        return redirect()->route('login');
    }

    $existingUser = User::where('email', $user->getEmail())->first();

    if ($existingUser) {
        auth()->login($existingUser, true);
    } else {
        $newUser                    = new User;
        $newUser->provider_name     = $driver;
        $newUser->provider_id       = $user->getId();
        $newUser->name              = $user->getName();
        $newUser->email             = $user->getEmail();
        $newUser->email_verified_at = now();
        $newUser->save();

        auth()->login($newUser, true);
    }

    return redirect($this->redirectPath());
}

Routes....

Route::get('login/linkedin', 'Auth\[email protected]'); Route::get('login/linkedin/callback', 'Auth\[email protected]');

config/auth...

'socialite' => [
    'drivers' => [
        'linkedin',
        'google',
    ],
],

config/services

'linkedin' => [
    'client_id' => '77j6ee1o3q7yj4',
    'client_secret' => 'nMN700rONnc84Ijc',
    'redirect' => 'http://midas.test/login/linkedin/callback',
],

I don't believe its a code issue, could it be Nginx?

Telescope...

Time December 17th 2019, 11:41:22 AM (22m ago) Hostname Anthonys-MacBook-Pro.local Method GET Controller Action App\Http\Controllers\Auth\[email protected] Middleware web, guest Path /redirect/linkedin Status 302 ^^^ differs to the 404 Duration 15 ms Memory usage 1 MB

Thank you all for your help! Ant

Dec
06
1 month ago
Activity icon

Replied to Spatie Tags

Bang on that brother!

@foreach ($post->tags as $tag)
    <h2> {{ $tag->name }} </h2>
@endforeach

Worked!