pmx

pmx

Member Since 5 Years Ago

Experience Points 3,865
Experience Level 1

1,135 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 40
Lessons
Completed
Best Reply Awards 1
Best Reply
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    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 Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

05 Apr
1 month ago

pmx left a reply on Laravel, Vue.js And Checkboxes: How To Check Only One?

You can create other javascript files. Just add them to webpack.mix.js like this:

mix.js('resources/js/myfile.js', 'public/js')

You can them include them in your blade view with

<script src="{{ mix('/js/myfile.js') }}"></script>
03 Apr
1 month ago

pmx left a reply on Php Artisan Command On Remote Host

Use supervisor to ensure the process is always alive. If if dies for some reason Supervisor will bring it back for you. http://supervisord.org/

14 Jan
4 months ago

pmx left a reply on Sequel Pro Stuck On Loading Database “db_name"

@MAC03733 - There is a free version yeah, Not sure what it's limitations are but it's worth trying it out :)

07 Jan
4 months ago

pmx left a reply on Sequel Pro Stuck On Loading Database “db_name"

I eventually gave up on sequel pro because of issues like these. I use Table Plus now and I'd never go back. https://tableplus.io/ I have it with my SetApp subscription but you can buy it standalone too.

09 Nov
6 months ago

pmx left a reply on SPA Apps + Authorisation

I'm specifically talking about 'should I show an edit button on this post?' type stuff rather than simple authentication.

pmx started a new conversation SPA Apps + Authorisation

I've been trying to find a nice way to deal with authorisation on SPA apps. I'm using Vue but I think the framework is irrelevant to the problem.

It feel like there are lots of options to the problem but none of them feel 'right'. We could pass down props, we could create an auth service on the framework as a plugin that replicates the functionality of the backend server, we could route authorisation requests back to the server - maybe by websocket to avoid tons of http requests. All of these come with downsides.

I had a thought that it might be worthwhile decoupling the permissions/roles from the PHP & JS logic. All of the configuration could be store on the server in a JSON file that can be consumed by both server side and front end code to generate the logic. On the server php could read the file to generate policies & gates. In the browser javascript could do the same to generate the same functionality client side. Updating the rules in the JSON would then affect both server and client side implementations.

I'm sure there are issues with this approach that i've overlooked and I'd love to hear what others thoughts are on it? Do you think it's feasible?

Cheers!

20 Jul
10 months ago

pmx left a reply on Cannot Make Eloquent Observer Fire For Specific Model

@burlresearch Thanks for that - that approach works so I'm just going to stick the code in the model and be done with it.

It's not the cleanest solution but I don't want to spend any more time working it.

Thanks for your help on this, much appreciated!

19 Jul
10 months ago

pmx left a reply on Cannot Make Eloquent Observer Fire For Specific Model

I've not added that to either the Order or Customer model..

pmx started a new conversation Cannot Make Eloquent Observer Fire For Specific Model

I've been pulling my hair out with this issue and I've finally given up and i'm asking for help here!

I have observers working perfectly on my Customer model but they just refuse to work on my Orders model.

It's not throwing any errors, there is nothing in the log file either. It's just not running the observer.

I've cleared the cache, dumped the autoload file, and banged my desk with my fist but to no avail!

Anyone know whats happening here? I'd really appreciate any advice!

Some Code:

AppServiceProvider.php

...
    public function boot()
    {
        Customer::observe(CustomerObserver::class);
        Order::observe(OrderObserver::class);
        User::observe(UserObserver::class);
        Schema::defaultStringLength(191);
        
    }
...

OrderObserver.php*

16 Sep
1 year ago

pmx started a new conversation SSH In 5.5?

The docs for 4.2 have a page on SSH connections to remote servers but I can't find that on 5.5 - has the functionality been removed? I wanted to use it with my Spark app. I've tried the Laravel collective remote package but it's won't install with spark.

Anyone have any ideas on how to get around this?

https://laravel.com/docs/4.2/ssh

Cheers!

10 Nov
2 years ago

pmx left a reply on Count Number Of Items In Queue That Match Specific Rules? $10 For Solution

@markLL you solved my nightmare! shoot me an email to dean at websetgo dot net and I'll reply with an amazon card. Thanks!

pmx left a reply on Count Number Of Items In Queue That Match Specific Rules? $10 For Solution

OH! So you're saying keep this as a separate list independent of the actual queue itself! Now I'm with you! I'd have to increment it when pushing an item to the queue and decrement it when i've processed a job, though since I need to know how many items are still waiting to be processed, is that right?

pmx left a reply on Count Number Of Items In Queue That Match Specific Rules? $10 For Solution

@markLL - That sounds interesting. I assume I'd need to override the queue provider to make this happen?

09 Nov
2 years ago

pmx left a reply on Count Number Of Items In Queue That Match Specific Rules? $10 For Solution

Thanks ill give that a try in the morning!

pmx started a new conversation Count Number Of Items In Queue That Match Specific Rules?

Evening Folks I have a queue running on redis, I've given the queue a name (campaignMessages). I can count how many items are in the queue with Redis::connection()->llen('queues:myqueue'); problem is the queue contains items from multiple campaigns and I'd like to be able to break out that number by campaign but I can't find a way to do it. I tried giving each campaign it's on queue but they have to be defined in the config file so I can' see how to create them at runtime? Anyone have any pointers please?

26 May
2 years ago

pmx left a reply on More Efficient Way - Delete Files And Rows

It might be worth adding the file deletes to a queue so if there are a lot of them the user doesn't have to wait too long. You could notify the user when all the files have been deleted via email or something.

pmx left a reply on Overly Fancy Work

I have my dev server, my staging server, and my live server. If I had to wipe out all my data whenever I wanted to modify the database then I'd never be able to update the live version of my apps. I don't work with a team but I can't imagine what a nightmare it would be to have to refresh the tables for each migration.

pmx left a reply on There Were Some Videos On Setting Up A New Mac For Dev Work, Can't Find Them Now... Halp?

Yes! Thank you! I guess I need to improve my search skills haha

pmx started a new conversation There Were Some Videos On Setting Up A New Mac For Dev Work, Can't Find Them Now... Halp?

I've just made the jump from ubuntu + windows to a mbp. I remember watching some videos of Jeff setting up his new mac for development. He installed all sorts of nifty tools, terminals, shortcut apps, etc.

Is this a false memory or did these videos used to exist?

Thanks folks

21 Aug
3 years ago

pmx left a reply on Where To Register Model Events / Observers?

Thanks folks, I created a service provider and controller to take care of this for me. Works like a charm!!

pmx started a new conversation Where To Register Model Events / Observers?

Sorry if this seems like a stupid question but I can't work it out from the docs. I want to register events for when certain models are modified / deleted etc. The docs show the how but not the where.

Where should I register these event listeners?

Thanks

19 Aug
3 years ago

pmx started a new conversation Filter Lessons By Major Version

Things have changed a lot between major versions and I'm finding it hard to find out how to do things in L5 via the site. It would be nice if there was an easy way to see/filter by Major laravel version when searching and browsing.

13 Aug
3 years ago

pmx left a reply on Creating Installable Applications With Laravel / Composer?

That sounds awesome! so the user only has to download a tiny installer stub and put that on their server! Genius :D

pmx started a new conversation Creating Installable Applications With Laravel / Composer?

In the bad old days if I wanted to sell my app (be it a forum, shopping cart, gallery, whatever) I'd package up all the files, write an installer script to initialize the database and set config options and call it a day.

Now with composer we don't keep our dependencies around, we pull them in with composer-install - and that's awesome! But something i've been thinking about as I'm about to start working on something that will be sold as self-hosted is - how do we have users install these things now?

I can't just write a script like I used to and I don't expect every user to install or use composer, but I also can't package up all the dependencies either.

Is this a solved problem? Is there an easy way to do it?

30 Jul
3 years ago

pmx left a reply on Differences Between The Laravel 4 And Laravel 5

Did you ever redo that series Jeffery?