lionslair

lionslair

Member Since 2 Years Ago

Perth

at The Crowd Co

Experience Points 14,880
Experience Level 3

120 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 134
Lessons
Completed
Best Reply Awards 2
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.

19 Mar
3 months ago
23 Feb
4 months ago

lionslair left a reply on Laracasts On Chromecast

Talk to pocketcasts they do it from the browser. Works great. I was just looking for the same feature while looking after my son. Multitasking.

Sorry for bumping an old topic Jeffery

02 Nov
8 months ago
30 Sep
9 months ago

lionslair left a reply on What Is The Best Way To Implement Self Reference? Laravel 5.5.4

From memory I think that package has some helpers for formatting. You still have to do the display yourself but it gives you options to help. Eg I think it returns a level so if you are in a dropdown you can use the level to repeat a "-" N times.

I also think it returned the result ordered so you only need to loop over the result set and output or return as needed. It's about 18 months since I actually hands on used the package.

18 Sep
9 months ago

lionslair started a new conversation Horizon:terminate And Queue:restart

I use envoy on forge to handle my deployments.

I have a task that runs

php artisan horizon:terminate php artisan queue:restart

However I often get the issue where I do not get the forge confirmation in slack that the deployment is finished from Forge however I do get the one I push from my Envoy.blade.php file.

Often the case is if I manually restart the queue for the site in Forge then run the deployment again then all works and I get the Forge slack notification that the deployment was successful.

This makes me think its a queue issues.

Because I run both the horizon terminate and the queue:restart command am i doubling up or introducing an issue which causes the queue not to correctly restart?

13 Sep
10 months ago

lionslair left a reply on Method Not Allowed Exception - No Message

Route route should be Route::patch not post for a patch.

05 Sep
10 months ago

lionslair left a reply on ReflectionException Class Not Found On Repository

Did you work out the issue?

01 Sep
10 months ago

lionslair left a reply on Updating Email Address Of A Related Table

I think it's because your relationship doesn't exist. You update the email on the user object but the teacher is not related at the moment because your using the email as the relationship.

Is the teachers table another type of users table? Why its your relationship not using the default

eg user => id teacher => user_id

lionslair left a reply on What Is The Best Way To Implement Self Reference? Laravel 5.5.4

Is this for use like a nested set? Example. A menu where you have a hierarchy.

I have used this package before when using tree like structures. Menus or categories etc.

https://github.com/lazychaser/laravel-nestedset

26 Apr
1 year ago

lionslair left a reply on How To Integrate Rowanwins/vue-dropzone?

Did you resolve this?

19 Apr
1 year ago

lionslair left a reply on Phpunit Test Not Running With Multiple Database Setup

@scottzirkel what does your connect and disconnect method look like in your Tenant class?

17 Apr
1 year ago

lionslair left a reply on Unit Testing With Sqlite And Multiple Databases

Did you work out how to use multiple sqlite databases?

26 Feb
1 year ago

lionslair left a reply on Polymorphic Relation Voteable

I am getting similar. I have a table alerts and alertable within it. ion my log im getting

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'voyager.voy_alertables' doesn't exist (SQL: insert into voy_alertables (alert_id, alertable_id, alertable_type) values (96, 80248, App\AccountBandwidth))

However my alerts table has the row minus a alertable_id andalertable_type populated

24 Mar
2 years ago

lionslair started a new conversation Validating Date And Time Fields

I am trying to find a way to validate a two date and time fields

The fields stored in the datebase are

  • state_datetime
  • end_datetime

However in the form submission the input is split into

start_datetime d F Y start_time H:i A

end_datetime d F Y end_time H:i A

What I am trying to achieve in the Request validation is that the end time is not before the start time and vise versa.

However I have tried every permutation I can think of

'on_sale_datetime' => 'required|date_format:"d F Y h:i A"|before:' . str_replace(',', '', $this->off_sale_datetime) . ' '. $this->off_sale_time, 'off_sale_datetime' => 'required|date_format:"d F Y h:i A"|after:' . str_replace(',', '', $this->on_sale_datetime) . ' '. $this->on_sale_time,

This fails because the submitted fields start_datetime is the format of d F Y and not d F Y h:i A

I have tried

$this->merge([
        'combined_start_datetime' => str_replace(',', '', $this->start_datetime) . ' '. $this->start_time,
        'combined_end_datetime' => str_replace(',', '', $this->end_datetime) . ' '. $this->end_time,
    ]);

And added the fields combined_start_datetime and combined_end_datetime to guarded in the model. However then the validation is skipped.

If I try

$this->merge([
        'start_datetime' => str_replace(',', '', $this->start_datetime) . ' '. $this->start_time,
        'end_datetime' => str_replace(',', '', $this->end_datetime) . ' '. $this->end_time,
    ]);
    

Then on failure the value of start_datetime back in the form is d F Y h:i A not d F Y

Is there any solution to validating these input for what I am trying to achieve?