AntLusher

AntLusher

Member Since 4 Months Ago

Experience Points
5,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
39
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.

Level 2
5,070 XP
Oct
13
1 day ago
Activity icon

Replied to Use Model Factory To Assign A Job A Random User Id

Cheers - saved me having to think...

Oct
08
6 days ago
Activity icon

Started a new conversation Join Table On User Update View

Hello all -

I wish to ask how one would update a foreign keyed table via the related 'resource'. In this case User resource.

I have the following tables:

Users Table user_id name age

Options Table user_id (foreign) email mail tel

At the moment, I can show the 'Options' as a resource related to the User profile, but I don't want to have a seperate 'Create Option' resource. I want to be-able to edit the 'options' when I select 'Edit User'.

Hope this makes sense... Thank you all!

Sep
26
2 weeks ago
Activity icon

Replied to Laravel | Malware Issue

Dedicated or VPS? Close your ssh ports to the world, and add your ip. You will probably have a file deep in dir that's sporning more files. Could be your frontend too. Some dodgy JS that's been written via php.

I would check your db too.

Activity icon

Replied to Socialite With Google Complete Security

Good post this... I'm watching

Sep
25
2 weeks ago
Activity icon

Replied to Which Is The Best Way To Use Vuejs With Laravel?

API the backend, then split out the Vue.js... You then can use whatever front end you like

Sep
24
2 weeks ago
Activity icon

Started a new conversation Homestead Sequel Pro SSH Connection

Hello all, is anyone having issues with connecting Sequel Pro with Homestead DB? I only have this issue on MacOS Mojave, older versions of MacOS is fine... Error message:

debug1: read_passphrase: can't open /dev/tty: Device not configured debug1: Authentications that can continue: publickey,password debug1: No more authentication methods to try. [email protected]: Permission denied (publickey,password).

Cheers

Sep
23
3 weeks ago
Activity icon

Started a new conversation Nova - As Root Dir

As subject matter, I'm wondering if anyone has setup Nova as root directory, so when you hit the highlevel domain, Lara routes to the Nova login page. I want to use Nova as an API. Maybe, later on. Sometime in the future...

Cheers, Ant

Sep
22
3 weeks ago
Activity icon

Replied to How To Insert Json Data In Sql?

Make sure your column is set to json type too

Sep
20
3 weeks ago
Activity icon

Replied to Can't Update Spark Models Using Nova?

And does Spark intergates automaticly with Nova? Vice-versa

Activity icon

Replied to Can't Update Spark Models Using Nova?

@heykatieben sorry to ask, I'm wondering what sort of set-up (how you've gone about your current solution). I'm currently building a Saas app, with mulitiple DBs for multi-tenances. Forgive me if I'm wrong, your Nova install is completly agnostic to your front facing application?

Cheers!

Ant..

Activity icon

Replied to SSH Key Issue

Fixed. Didn't pass a user name when generating the.key. durrrrr me

Activity icon

Replied to Dropped Queries By ~29,980 But Still 30+ Seconds To Load...

If it's for the page to load, it might not even be a db issue... Open up chrome inspector and see.if you have any JS blocking.

Or before that, run the same SQL query via mysql too. Check the time. Then you will know if it's the db, backend or frontend.

Also,.spin up a test server, so others can investigate. All the best.

Sep
19
3 weeks ago
Activity icon

Replied to Dropped Queries By ~29,980 But Still 30+ Seconds To Load...

Agh sorry, I'm sure you said it was the time it took for your page to load...

Activity icon

Replied to Best Way To Handle Routing (+18 Only)

Any jobs going...

Activity icon

Replied to Dropped Queries By ~29,980 But Still 30+ Seconds To Load...

Have you got an external link?

Activity icon

Replied to Dropped Queries By ~29,980 But Still 30+ Seconds To Load...

Spin open browser tools. Could be some Js blocking the loading of data.

Also, do a page speed test, see what the time to bite is... Chrome lighthouse I think it's called.

Check your loops too.

Sounds like a get request that's being blocked by the JS (if you're using Ajax or somesort of SPA)

Or are you hitting the db without the frontend calls?

Sep
18
3 weeks ago
Activity icon

Replied to SSH Key Issue

Thank you - but the instance is managed by Lara Forge, so the keys are provide via the Forge interface... Just got an email from Forge saying I sould do what I've already done many times over. This is why I dislike using these sort of management consoles etc. Cheers

Activity icon

Replied to SSH Key Issue

Bump

Activity icon

Replied to Laravel: Drag And Drop Fields Funtionalities.

I believe you would have to save code in your database. Something I don't like to do. This said, it depends on how big your application will be.

Activity icon

Replied to Nova User Permissions

Cheers, I will check it. Have you used?

Activity icon

Started a new conversation Nova User Permissions

Has anyone used a user permissions package? If so, which one is the best and most supported? Cheers!

Sep
17
3 weeks ago
Activity icon

Replied to SSH Key Issue

Yeah bro. Word for word

Activity icon

Started a new conversation SSH Key Issue

Hello all - just spun up a new AWS instance VIA Forge.

Everything seems to be working fine, apart from being able to SSH in. I've added key to the Forge interface as per instructions, but I get the following:

Admins-iMac:~ admin$ ssh [email protected] -v OpenSSH_7.9p1, LibreSSL 2.7.3 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 20: Applying options for * debug1: Connecting to 18.130.145.49 [18.130.145.49] port 22. debug1: Connection established. debug1: identity file /Users/admin/.ssh/id_rsa type 0 debug1: identity file /Users/admin/.ssh/id_rsa-cert type -1 debug1: identity file /Users/admin/.ssh/id_dsa type -1 debug1: identity file /Users/admin/.ssh/id_dsa-cert type -1 debug1: identity file /Users/admin/.ssh/id_ecdsa type -1 debug1: identity file /Users/admin/.ssh/id_ecdsa-cert type -1 debug1: identity file /Users/admin/.ssh/id_ed25519 type -1 debug1: identity file /Users/admin/.ssh/id_ed25519-cert type -1 debug1: identity file /Users/admin/.ssh/id_xmss type -1 debug1: identity file /Users/admin/.ssh/id_xmss-cert type -1 debug1: Local version string SSH-2.0-OpenSSH_7.9 debug1: Remote protocol version 2.0, remote software version OpenSSH_7.6p1 Ubuntu-4ubuntu0.3 debug1: match: OpenSSH_7.6p1 Ubuntu-4ubuntu0.3 pat OpenSSH_7.0,OpenSSH_7.1,OpenSSH_7.2*,OpenSSH_7.3*,OpenSSH_7.4*,OpenSSH_7.5*,OpenSSH_7.6*,OpenSSH_7.7* compat 0x04000002 debug1: Authenticating to 18.130.145.49:22 as 'forge' debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: algorithm: curve25519-sha256 debug1: kex: host key algorithm: ecdsa-sha2-nistp256 debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: compression: none debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: compression: none debug1: expecting SSH2_MSG_KEX_ECDH_REPLY debug1: Server host key: ecdsa-sha2-nistp256 SHA256:g0NjiY9N8X2syR/YkWrPUDpWCUoOeMsd53c1LHHuJTI debug1: Host '18.130.145.49' is known and matches the ECDSA host key. debug1: Found key in /Users/admin/.ssh/known_hosts:1 debug1: rekey after 134217728 blocks debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: rekey after 134217728 blocks debug1: Will attempt key: /Users/admin/.ssh/id_rsa RSA SHA256:2yXMexgc6ttPEPAdgotR+C46tbCwrAB7psM+6jYPCiU debug1: Will attempt key: /Users/admin/.ssh/id_dsa debug1: Will attempt key: /Users/admin/.ssh/id_ecdsa debug1: Will attempt key: /Users/admin/.ssh/id_ed25519 debug1: Will attempt key: /Users/admin/.ssh/id_xmss debug1: SSH2_MSG_EXT_INFO received debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521> debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey debug1: Next authentication method: publickey debug1: Offering public key: /Users/admin/.ssh/id_rsa RSA SHA256:2yXMexgc6ttPEPAdgotR+C46tbCwrAB7psM+6jYPCiU debug1: Authentications that can continue: publickey debug1: Trying private key: /Users/admin/.ssh/id_dsa debug1: Trying private key: /Users/admin/.ssh/id_ecdsa debug1: Trying private key: /Users/admin/.ssh/id_ed25519 debug1: Trying private key: /Users/admin/.ssh/id_xmss debug1: No more authentication methods to try. [email protected]: Permission denied (publickey).

HEEEELLLLPPP PLEASE

Activity icon

Replied to How To Debug Maximum Execution Time Of 30 Seconds

Get your code on to a staging server, then debug. Thats what I would do first. Then debug

Sep
16
4 weeks ago
Activity icon

Replied to How To Debug Maximum Execution Time Of 30 Seconds

Something should be in your PHP logs? Also, check your loops... Is this in Dev? Or prod?

Activity icon

Started a new conversation Nova - Update User_verified_at

Hello all -

So I want to have a boolean option in the edit user view within Nova.

But if the admin switch true or false, I want to pass timestamp (for true) or Null (for false)... I'm triping up somewhere

Heres my code;

        Boolean::make('Verified?', 'email_verified_at')
            ->trueValue(function(){
                return date(DATE_ATOM, mktime(0, 0, 0, 7, 1, 2000));
            })
            ->falseValue(Null),

Error is:

Preg match expects param 2 to be a string

Cheers - Ant

Activity icon

Replied to Updating To Php 7.3

I had the exact issues with Moj - so I used Homestead instead. Doing so will keep things all wrapped together in a little VM.

I love running native, but sometimes you can mess up your host envrionment

Activity icon

Started a new conversation Nova Permission Out Of The Box?

As subject matter - just want to set up groups and user perms. Something Nova does out of the box? Am I missing something?

Cheers

Activity icon

Replied to Updating To Php 7.3

Is this on Mojave?

Activity icon

Replied to Convert 'DD/MM/YYYY' Format To Timestamp

Agh man, php has this out of the box...

https://www.php.net/manual/en/function.strtotime.php

strtotime function.

Sep
15
4 weeks ago
Activity icon

Replied to Measuring Login User Time

Had a time-stamp of log in and out, then on logout. Sum the two values together

Activity icon

Replied to Adding New Method To Controller

Welcome sir.

Activity icon

Replied to Nova - Filter By Verified Users

@jlrdw I ment to say, that if user is verified, show a Boolean tick in the profile and user list. The verification returns a date. I can check isset, then return the bool. But yes, I will add said condition to the front end filter.

Cheers. Fixed

Activity icon

Replied to Updating To Php 7.3

Use homestead. Then you won't need to worry about your local environment

Activity icon

Replied to Laravel, Cant Fill Empty Table

I've always taken the hardcode approach first, then once I can insure everything is linking up, then I would do the logic.

Step through from the start - make sure the Controller is getting a value, then the route, then the POST, and then the handler thats receiving the POST data. I can't see your update table SQL logic?!

Activity icon

Replied to Laravel, Cant Fill Empty Table

Hard code a value first In you end point. Wait, shouldnt you be posting and not getting?

Activity icon

Replied to Laravel, Cant Fill Empty Table

Is that blade syntax correct? What does the DOM tree look like?

Activity icon

Replied to Laravel, Cant Fill Empty Table

I would debug the Ajax. Sounds like it's posting nothing. I guess you should do error checking. Spin open your browser inspection tools. See if you're geting any errors

Sep
14
1 month ago
Activity icon

Replied to 502 Bad Gateway Nginx - Laravel Valet

Homebrew can be a pig. I would recommend using Vagrant and Homestead. Then everything you need for Laravel dev is sandboxed in a VM.

Or try: brew services start php

If not: brew uninstall php brew install php --build-from-source valet install

Sounds like a PHP version issues.

Check the ngnix error logs too

Activity icon

Replied to Nova - Filter By Verified Users

Thank you sir. I will check it out

Activity icon

Started a new conversation Nova - Filter By Verified Users

Hello all - how do I tell if a user has been verified? I understand once a user has verified email, some field is updated with a time stamp. What is the verification field?

In the user list, I wish to display an indicator that's shows if a user has been verified.

Cheers all.

Activity icon

Replied to Polymorphic Approach For Routes?

// api.php

// Resource Management... Route::get('/{resource}', '[email protected]'); Route::get('/{resource}/count', '[email protected]'); Route::delete('/{resource}/detach', 'ResourceDetachCon[email protected]'); Route::put('/{resource}/restore', '[email protected]'); Route::delete('/{resource}/force', '[email protected]'); Route::get('/{resource}/{resourceId}', '[email protected]'); Route::post('/{resource}', '[email protected]'); Route::put('/{resource}/{resourceId}', '[email protected]'); Route::delete('/{resource}', '[email protected]');

Example above is from Nova

Example design below...

Http > Controllers > Resource{}Con... then Laravel\Nova\Http\Requests\ResourceIndexRequest;

I would stick to the above - I'm sure the creator has thought this through for a long time. Then any new dev can understand the code better. This said, if you chose to do things differently, then stick to that design and make it consistent throughout.

Sep
13
1 month ago
Activity icon

Replied to Can't Update Spark Models Using Nova?

Ohhh. Sounds like something we need. Thank you muchly. I'll check

Activity icon

Replied to Can't Update Spark Models Using Nova?

Hey what's Sparks? I'm new to Nova.

Activity icon

Replied to Git Clone Laravel Project Not Installing On Server

Are you running composer global or local to project. And does the path in error exist?

Activity icon

Started a new conversation Nova - Verify User By Email

Good afternoon all.

Not sure if I'm missing something here. I've set up the auth in lara, but does this automatically apply to Nova. My use case is: when new user added, they will receive a verification email. I've done this in a normal Lara build, but it doesn't fire in the Nova build...

Or if anyone could point me to a walkthrough?

Cheers all

Ant