Ady_Gould

Lecturer in IT (Software, Web and IoT Development) at North Metropolitan TAFE

Member Since 5 Years Ago

Perth

Experience Points
22,800
Total
Experience

2,200 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
215
Lessons
Completed
Best Reply Awards
0
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.

  • Community Pillar

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

Level 5
22,800 XP
May
04
6 days ago
Activity icon

Replied to Servicing An API And Web UI From Same Laravel Installation

Cheers @martinbean

Many thanks again, you've been superb in your explanations and taking the time to step through the process.

I'm giving you multiple 👍

May
03
1 week ago
Activity icon

Replied to Servicing An API And Web UI From Same Laravel Installation

@martinbean, Huge thank you!

Your explanations have been great! I do agree that using 'namespacing' is the better option.

I'm going to ask one more question based on your examples: The PostService contains what would be the traditional controller components... minus the response methods...

I found this article: https://blackdeerdev.com/laravel-services-pattern/ which matches that idea.

Apr
28
1 week ago
Activity icon

Replied to Servicing An API And Web UI From Same Laravel Installation

@martinbean thank you for the explanation.

The joy of being an educator (primarily) is that I often don't get to spend enough time developing code, so your explanation helps a great deal.

I'm used to doing the web front end + back end combined, but this need for API as well had myself, and my colleague debating best practice.

From my understanding, we put the majority of the logic in the model, returning results to both the API and WEB controllers that then handle how the data is then presented to their respective destinations.

This makes the models 'heavy' and the controllers 'light'.

The controllers could then handle the respective methods to validate requests etc.

With this in mind, creating controllers with names such as ProductsApiController and ProductsController would allow the two to be separate but relatively easy to maintain.

As for the API changes, we are attempting to have the students (and ourselves) understand how to implement APIs, so we are in a luxury situation that changes to the API are not going to affect the clients at this point and the students are very much in charge of both ends of the API loop.

Once again thanks.

Activity icon

Replied to Servicing An API And Web UI From Same Laravel Installation

@jlrdw thank you for the advice...

In this case, we need an API - or to be more precise, the students have to create an API as part of their assessable items.

We combine this with their Mobile App development so they consume the API when they implement the native app for mobile devices.

Activity icon

Started a new Conversation Servicing An API And Web UI From Same Laravel Installation

A fellow educator and I are wondering the best way to deal with a situation of having a Web UI and API being hosted from the same installation instance of Laravel.

We have a problem where we need an API to be served to a mobile application (to be developed), with tokens, etc, for security, plus a web UI for access from the desktop and browsers, for the administration of the application, and for general users to access the site when not on their phone/tablet.

We would like to know what the best ways are to:

  • use the same code base as much as possible
  • avoid problems of code reproduction
  • allow routes to be as similar as possible (just with API added as needed)
  • reduce the overhead of writing and maintaining code across two different instances of Laravel

We have thought of the likes of:

  • capturing the request and checking to see if it is an API call
  • Creating API controllers separate from the UI controllers
  • Making the Models 'heavy'

Is anyone able to give some guidance on the best way to structure and then implement this form of situation, and possibly a small example of a solution?

Many thanks in advance. Ady

Nov
22
5 months ago
Activity icon

Started a new Conversation Laravel Livewire: Returning Value From "cascaded Select" Child Component

I've followed a nice tute to give me a cascaded set of select boxes (https://talltips.novate.co.uk/livewire/dynamic-cascading-dropdown-with-livewire).

My version is used to display a list of categories, then on change of the category, show a list of icons.

What I want to be able to do, is embed this component, and receive the final selection of the item in the parent component.

Overall concept:

  • The equipment page/component shows a list of equipment, plus an "add new equipment" button.
  • "New Equipment" button opens a modal "new equipment dialog"
  • New Equipment dialog contains a form asking for the name of the equipment and the other details, one of which is...
  • A child "Icon selection component"
  • Child accepts the selection of a category, and when this changes the icons list with the filtered list of possible icons.
  • When an icon is selected and the save button pressed, the selected icon should be passed back to the parent for saving with the new equipment data.

I'm having problems where the icon is not getting back to the parent, and the validation is then failing.

Any direction would assist

Thanks